Advertisement
kolton

Untitled

Dec 13th, 2011
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. RegisterEvent(EVENT_SCRIPTMSG, HostileHandler);
  2. var _hostilepause = false;
  3.  
  4. function HostileHandler(msg){
  5. if(msg == "pause"){
  6. if(_hostilepause){
  7. Print(COLOR_3 + "Resuming...");
  8. _hostilepause = false;
  9. }
  10. else {
  11. Print(COLOR_1 + "Pausing to kill hostiles...");
  12. _hostilepause = true;
  13. ClickMap(NTC_CLICK_LUP, NTC_SHIFT_NONE, null);
  14. ClickMap(NTC_CLICK_RUP, NTC_SHIFT_NONE, null);
  15. while(_hostilepause)
  16. NTC_Delay(250);
  17. }
  18. }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement