Quote:
Originally Posted by alpines
It depends which kind of bot it is. There are variable methods for a bot to work. ControlSend, Memory Manipulation, SendMessage and many other ways.
|
can my bot work on background
and need help in making moving or turning arround in game
thanks
Global $Paused
HotKeySet("{Home}", "TogPause")
HotKeySet("{END}", "TogExit")
WinWaitActive("CABAL2 - DX9")
WinMove("CABAL2 - DX9","",0,0)
$r=0
Do
auto_attack()
find_monster()
Until $r=1
While 1
Sleep(100)
WEnd
Func TogPause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc
Func TogExit()
Exit 0
EndFunc
Func auto_attack()
If PixelGetColor(504, 10) == 0xFFA800 Then ;Mob Attack HP full/Dying Mob
Do
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send ("{F}")
Sleep(150)
Until PixelGetColor(504, 10) <> 0xFFA800 ;Mob Attack HP Down
EndIf
EndFunc
Sleep (400)
Func find_monster()
If PixelGetColor(04, 10)<> 0xFFA800 Then ;TAB No More Mob/Hp Down
Do
Send("{TAB down}")
Sleep(100)
Send("{TAB up}")
Sleep(100)
Until PixelGetColor(504, 10) == 0xFFA800 ;Change this for Specific Mob
EndIf ;TAB
EndFunc
Sleep(300)
_Degree(_ATan2($targetY - $currentY, $targetX - $currentX)
Func _rotateLeft($ntimes)
AutoItSetOption("SendKeyDownDelay", $ntimes * 21)
Send("a")
EndFunc ;==>_rotateLeft
Sleep (300)
Func _rotateRight($ntimes)
AutoItSetOption("SendKeyDownDelay", $ntimes * 21)
Send("d")
EndFunc ;==>_rotateRight
Sleep(300)