Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2009, 11:41 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default Time limit on zone

How would I make a quest that did this: I want a timer to start when the person zones in, and then 10 minutes later kick them back to Pok. I don't know where I would put that quest if I wrote it.
Reply With Quote
  #2  
Old 04-17-2009, 12:19 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Easily done. You'd use player.pl, and set a 10 minute timer under sub EVENT_ENTERZONE. Then, under sub EVENT_TIMER when it expires, move them to PoK. The timer would be on the individual player, so you will have multiple timers going at once for multiple players.
Reply With Quote
  #3  
Old 04-17-2009, 12:35 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

So, basically would it be something like this:
Code:
sub EVENT_ENTERZONE{
quest::settimer("zonekick",30);
}
sub EVENT_TIMER{
if ($timer eq "zonekick"){
 quest::stoptimer("zonekick");
 quest::movepc(202, -107,-190.-156);
 }
}
I have never used timers in any quests before, so I'm not sure what I'm doing
Reply With Quote
  #4  
Old 04-17-2009, 12:47 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Yep, that's exactly it, except that timer is for 30 seconds.
Reply With Quote
  #5  
Old 04-17-2009, 12:50 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

Haha, yeah because I was planning on testing it and didn't want to wait 10 minutes to see if it ported me.
Reply With Quote
  #6  
Old 04-17-2009, 01:06 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Yeah I do the same.
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:06 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3