View Single Post
  #2  
Old 02-02-2015, 10:32 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by epilz View Post
All,

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
Reply With Quote