-
AutoIT bot for RO2
This is a simple code to bot for RO2
it's work for me~
but you can try to modify it to get your code also~
:)
Code:
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
WinWaitActive("Ragnarok Online2 - Legend of The Second","")
;~ Local $pos = MouseGetPos()
;~ MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1])
Local $mobs
Local $HP
send("{TAB}")
Do
$mobs = PixelGetColor(688, 164)
$HP = PixelGetColor(517, 164)
if Not($HP == 8506130) Then
send("{9}")
EndIf
;~ MsgBox(0, "The decimal color is", $var)
;~ MsgBox(0, "The hex color is", Hex($var, 6))
if ($mobs == 1313537) Then
send("{TAB}")
Sleep(500)
Send("{1}")
Sleep(500)
Else
Send("{1}")
Sleep(500)
EndIf
until 1=2
Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
-
:good:
set display resolution = ?
thank you very musch
-
After bypassing hackshield, I still cannot send any keys or click to the game. What am I missing?
-
Thanks for releasing your source. It is a good template to start with.
dazerk,
u may try to compile the script into an application, then run the application as admin.
-
what if you want it to work only on the 2nd client running in the background? whats the code for that?
-
Hey guys,
I've tried numerous way to try to get this bot working.
Weird thing is when I tried
Send("{Tab}") it's not working at all in the game, tried using the AutoIt as administrator and also the RO2 as well.
To no avail, it didn't work either way.
I will look into it more later.
In the mean time anyone has any idea to get it working?
Thanks.
-
kkeyboard insert is not working...
but mouse click command is ok...
how to fix this??
-
can u explain more about your code please?
-
it's not working for me too. do i need to mod anything before i can use it?
-
So i got the position except for that "if Not($HP == 8506130) Then" how do i get that color? mine is just in hex.. it just keeps on tabbing if i changed that hex to decimal.. help?