I dont run in 1920 so I cant test it but one or two things for the future of your bot writing.
Make sleep times random. sleep(random($min,$max)), make different min/max sets so you get your 1500, 2500 aso ms. same goes with coords. If you get problems with navigation build in checks like if x> 504 next random x is smaller than intended. Sure it adds code and work but it is safer at least imo.
Your Pause / Leave function can be put together:
func pause()
$pause = NOT $pause // switch between true and false
endfunc
WIth that users only have to remember two buttons. They use a bot so they are lazy. 3 buttons might be to complex
If you want people to be able to change your script try to use variables for the coords. for example: $xEntrance $yResumeGame
That also helps to understand the code. No offence or anything intended just stuff I got as feedback during the years.
@neversaynever
if you google "autoit" you find it.
Download the full install, start the program and copy paste the code. save file,
Now if you want to just run it, go to Tools and click GO (shortcut F5)
If you want to compile it. Tools -> Compile (shortcut ctrl+f7)
@Purse
maybe a check while using teleport. If you loose hp then use a pbae that damages everything around you. search for the hp bar of the npc, move mouse to it, and atk. while target-not-dead atk else use teleport.
aLumix