Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2004, 06:48 PM
bbum
Banned
 
Join Date: Apr 2004
Posts: 245
Default npcs saying things on a timer

how do you make npcs say something every xx minutes?
Reply With Quote
  #2  
Old 07-24-2004, 12:27 AM
Dave987
Discordant
 
Join Date: Jun 2003
Location: England
Posts: 267
Default

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
__________________
;o)
Reply With Quote
  #3  
Old 07-24-2004, 10:48 AM
bbum
Banned
 
Join Date: Apr 2004
Posts: 245
Default

what about "quest::starttimer()"

doesnt that need to be somewhere?
Reply With Quote
  #4  
Old 07-25-2004, 03:46 AM
Dave987
Discordant
 
Join Date: Jun 2003
Location: England
Posts: 267
Default

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.
__________________
;o)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:21 PM.


 

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.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3