Timer IDs ??
Where or How do you find Timer IDs to use with
quest::settimer(Timer ID,180); ??? |
you can use any integer you want. Its just used to be able to tell which timer went off within your EVENT_TIMER routine, and is local to the specific quest, so you can reuse the same timer ID everywhere.... just use 0 if you dont care.
|
Pretty sure timer id is a char, i use stuff like "mob_name_timer" and it works perfect.
|
Well ive got it set like
sub EVENT_SPAWN { quest::settimer(1,180); } trying to set a timer upon spawn , but i guess it should be sub EVENT_TIMER { quest::settimer(1,180); } ??? When i use it like i have it , it crashes zone exe |
If you want to start a timer on spawn use:
Code:
sub EVENT_SPAWN { |
Ok thanks , but one more question , What do I name the timer? or where would I find the name for it? sorry for being a pain and thanks for the help
|
Name it whatever works for you. In the EVENT_TIMER sub you must check the value of $timer, which will be set to the name of the timer that is being triggered.
|
Ok thanks alot guys , really appriciate this :)
|
All times are GMT -4. The time now is 06:21 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.