forked from HerculesWS/Hercules
-
Notifications
You must be signed in to change notification settings - Fork 0
Stopnpctimer
Mike Kao edited this page Jun 16, 2023
·
1 revision
- stopnpctimer {<attach></attach>};
- stopnpctimer {""};
- stopnpctimer {""{, <attach></attach>}};
This script command acts as a partner to the initnpctimer and startnpctimer script commands. When called, it will stop any active NPC timer from ticking but will not reset the tick value to 0. When startnpctimer is called after this command, the timer will resume from the tick that it was stopped at.
See initnpctimer.
- Stop an NPC timer after 30 seconds of processing.
[[OnTimer|OnTimer]]30000:
[[Announce|announce]] "30 seconds has expired.", bc_all|bc_npc;
stopnpctimer;
end;