Can anyone provide a small example on how to make an NPC shout a message every 5 minutes or so? Either in the same zone or all zones.
I am still very new in the development of my own eqemu server and this community has been awesome in assisting me. Thank you!
Code:
sub EVENT_SPAWN {
quest::settimer ("shouting",1);
}
sub EVENT_TIMER {
if ($timer eq "shouting") {
quest::stoptimer ("shouting");
quest::we(258,"Shout shout shouting something to the entire server");
quest::shout ("Shout shout shouting something in just the zone");
quest::settimer ("shouting", 300);
}
}
Last edited by ghanja; 02-02-2015 at 10:37 PM..
Reason: To show just zone shout as well
quest::stoptimer(NAME); Stops whatever timer you pass to it, meaning the "shouting" timer is no longer running, allowing either it, or another timer to be ran through quest::settimer(NAME, SECONDS);
Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.