Code:
Global $Paused
; This can be started from the character screen, make sure resume game starts you off where you need to be for this script
; It is working fine while completely AFK * at least for me it does, though you WILL die once in a while :P
HotKeySet("-", "Leave") ; the bot is started by pressing - (next to right shift, i believe is normal on all keyboards)
HotKeySet("{PGUP}", "Pause") ; the bot can be paused by pressing Page Up
HotKeySet("{PGDN}", "Stop") ; the bot can be stopped by pressing Page Down
$go = True
$Leave = False
While $go
if($Leave) Then
Send("{space}")
Sleep(Random(980, 1050, 1))
MouseClick("left", 1587, 878) ;where your character goes to on screen on the first move
Sleep(Random(1190, 1230, 1))
MouseClick("right", 1712, 858, 2) ;where your character will right click (place traps for example)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1718, 853, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1716, 851, 2)
Sleep(Random(10, 100, 1))
MouseClick("right", 1715, 852, 2)
Sleep(Random(10, 100, 1)); it's the same all the way down here, all right clicks on same spot
Sleep(Random(1450, 1500, 1))
Send(2)
Sleep(Random(90, 200, 1))
MouseClick("left", 299, 35)
Sleep(Random(20, 50, 1))
Send(1)
Sleep(Random(200, 250, 1)) ; exiting the door now
MouseClick("left", 622, 207, 2)
;yeah you should be out by now :P
Sleep(Random(2550, 3150, 1))
Send("{Escape}")
MouseClick("left", 956, 579)
Sleep(Random(10000, 10720, 1))
Send("{Escape}")
Sleep(Random(100, 140, 1))
Send("{Escape}")
Sleep(Random(2800, 3100, 1))
MouseClick("left", 230, 416)
Sleep(Random(5700, 5900, 1))
EndIf
WEnd
Func Pause()
$Leave = False
EndFunc
Func Stop()
Exit
EndFunc
Func Leave()
$Leave = True
EndFunc