EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   npcs saying things on a timer (https://www.eqemulator.org/forums/showthread.php?t=14974)

bbum 07-23-2004 06:48 PM

npcs saying things on a timer
 
how do you make npcs say something every xx minutes?

Dave987 07-24-2004 12:27 AM

Code:

sub EVENT_TIMER
{
quest::say("Where did I put that darn cloth??");
}
#############
{
quest::say("If I can't find it..");
}

#############

sub EVENT_SPAWN
{
quest::settimer(1,300);
quest::settimer(2,400);
}

That should make the NPC say "Where did I put that darn cloth??" every 300 seconds, and also say "If I can't find it..." every 400 seconds.

I think the sub EVENT_TIMER will need a TimerID put in somewhere . If someone can verify this? My PERL is abit rusty, been a while ;)

bbum 07-24-2004 10:48 AM

what about "quest::starttimer()"

doesnt that need to be somewhere?

Dave987 07-25-2004 03:46 AM

Quote:

quest::settimer(timerID,seconds) - Starts timer for use with EVENT_TIMER You can have multiple "timerID"'s that trigger every "seconds".
-shrug- Try that ... the best I can recommend.


All times are GMT -4. The time now is 07:54 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.