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.
|
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.
|
So, basically would it be something like this:
Code:
sub EVENT_ENTERZONE{ |
Yep, that's exactly it, except that timer is for 30 seconds.
|
Haha, yeah because I was planning on testing it and didn't want to wait 10 minutes to see if it ported me.
|
Yeah I do the same. :)
|
Another quick question, if I wanted a monster to spawn based on the person's class that enters the zone, would I just do something like if
Code:
if ($class eq "Warrior"){ |
I see no reason why that wouldn't work.
|
Alright, I don't think my timers are working. In the player.pl I made it like this
Code:
sub EVENT_ENTERZONE{ Code:
EVENT_SPAWN{ |
Are you sure the timer isn't working? Or could it be the period instead of a comma in the movepc() commands?
|
quest::ze ?
|
I fixed the commas thing, but its still not working. Now the monsters arent even spawning when I zone in.
|
Hopefully you didn't change the periods in the spawn() statements. Only the movepc() statements.
Did you change anything else or is it still the same script as above? |
Same, just changed the commas in the timers.
|
Is the zone static? I am not sure if once it triggers, it will allow it to trigger again if the zone is still up. I've never tried.
|
All times are GMT -4. The time now is 07:13 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.