Difference between revisions of "Stopnpctimer"

From Hercules Wiki
Jump to: navigation, search
(Created page with "==Syntax== * '''stopnpctimer''' {<attach flag>}; * '''stopnpctimer''' {"<NPC name>"}; * '''stopnpctimer''' {"<NPC name>"{, <attach flag>}}; ==Description== This script comman...")
 

Latest revision as of 08:14, 9 June 2013

Contents

Syntax

  • stopnpctimer {<attach flag>};
  • stopnpctimer {"<NPC name>"};
  • stopnpctimer {"<NPC name>"{, <attach flag>}};

Description

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.

Syntax

See initnpctimer.

Examples

  • Stop an NPC timer after 30 seconds of processing.
OnInit:
    initnpctimer;
    end;

OnTimer30000:
    announce "30 seconds has expired.", bc_all|bc_npc;
    stopnpctimer;
    end;