Jump to content

Help Debugging bot script for flash game


Recommended Posts

Here is my Autoit v3 code:

HotKeySet("{ESC}", "Terminate")
HotKeySet("!s", "Start")
HotKeySet("!c", "whenToTp")
 
Global $color
Global $point
 
Func Terminate()
   Exit 1
EndFunc
 
Func whenToTp()
   $point = MouseGetPos()
   $color = PixelGetColor($point[0], $point[1])
   MsgBox(0, "Position found", "Position found")
EndFunc
 
Func Start()
   $point = MouseGetPos()
   $color = PixelGetColor($point[0], $point[1])
   MsgBox(0, "Position found", "Position found" & $point)
   While true
 if $color Not == PixelGetColor($point[0], $point[1]) Then
send("r")
 EndIf
 Sleep(100)
   Wend
 
EndFunc
 
While 1
   sleep(100)
WEnd
 
It is designed to get you to get you safe (click the r key) when you are on low hp.  You set the point and it will press r when it below that.  It is not working and it compiles correctly but does not work.
 
ps. The game is Realm Of The Mad God
UPDATE: don't mind the whitespace it is correct in the editor
Edited by rjcobourn
Link to comment
Share on other sites

Have you read the forum rules?
 
Forum rules

 

1. Do not ask for help with AutoIt scripts, post links to, or start discussion topics on the following subjects:

  • Malware of any form - trojan, virus, keylogger, spam tool, "joke/spoof" script, etc.
  • Bypassing of security measures - log-in and security dialogs, CAPTCHAs, anti-bot agents, software activation, etc.
  • Automation of software/sites contrary to their EULA (see Reporting bullet below).
  • Launching, automation or script interaction with games or game servers, regardless of the game.
  • Running or injecting any code (in any form) intended to alter the original functionality of another process.
  • Decompilation of AutoIt scripts or details of decompiler software.
Edited by Michiel
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...