Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. ABSOLUTE_TOP:
  2. var CurrentScript deathwatch
  3. INIT:
  4. action instant goto END_SCRIPT when ^What do you want to stop\?
  5. action instant goto EXIT_NOW when eval $dead = 1
  6. action instant goto EXIT_NOW when eval $health < 70
  7. SCRIPT.BEGIN:
  8. # if matchre("$scriptlist" , "ztrade.cmd|htrade.cmd|hunter.cmd|testhunter.cmd|archmaster.cmd") then action remove ^What do you want to stop\?
  9. LOOP:
  10. delay 60
  11. goto LOOP
  12. END_SCRIPT:
  13. delay 0.2
  14. put #parse DEATHWATCH SCRIPT ABORTED!
  15. put #script abort %CurrentScript
  16. exit
  17. EXIT_NOW:
  18. gosub QUIT
  19. delay 0.2
  20. echo
  21. echo **** DEATHWATCH EXIT INITIATED ****
  22. echo
  23. put #script abort
  24. exit
  25. QUIT:
  26. matchre QUIT ^\.\.\.wait|^Sorry\,
  27. matchre RETURN ^\[\d+\:\d+\] Connection closed\.
  28. put QUIT
  29. matchwait
  30. RETURN:
  31. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement