Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ABSOLUTE_TOP:
- var CurrentScript deathwatch
- INIT:
- action instant goto END_SCRIPT when ^What do you want to stop\?
- action instant goto EXIT_NOW when eval $dead = 1
- action instant goto EXIT_NOW when eval $health < 70
- SCRIPT.BEGIN:
- # if matchre("$scriptlist" , "ztrade.cmd|htrade.cmd|hunter.cmd|testhunter.cmd|archmaster.cmd") then action remove ^What do you want to stop\?
- LOOP:
- delay 60
- goto LOOP
- END_SCRIPT:
- delay 0.2
- put #parse DEATHWATCH SCRIPT ABORTED!
- put #script abort %CurrentScript
- exit
- EXIT_NOW:
- gosub QUIT
- delay 0.2
- echo
- echo **** DEATHWATCH EXIT INITIATED ****
- echo
- put #script abort
- exit
- QUIT:
- matchre QUIT ^\.\.\.wait|^Sorry\,
- matchre RETURN ^\[\d+\:\d+\] Connection closed\.
- put QUIT
- matchwait
- RETURN:
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement