Help with that script.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
chusski
Posts: 31
Joined: 28 Jan 2018, 03:12

Help with that script.

04 Jun 2019, 17:12

Hello guys.

I mount a private server of dragon ball online, but dont want play alone.
And want do a party bot for heal, and follow my character. (on dualboxing)

I find a code that copy that do on one character to another one.
But how can do the bot, find me HP bar and if it get down, he heal me ? and continue following me.

Thx very much guys.

I find that code:

Code: Select all

WinGet, wowid, List, DBO.exe
;***********************************************
;Standard Keyboard keys
;***********************************************
~1::
~2::
~3::
~4::
~5::
~6::
~7::
~8::
~9::
~0::
~-::
~=::
~q::
~e::
~r::
~t::
~f::
~g::
;~;::
~'::
~z::
~x::
~c::
~v::
~,::
~.::
~`::
~/::
IfWinActive, ahk_id %wowid1%
{
StringTrimLeft, ThisKey, A_ThisHotKey, 1
ControlSend,, %ThisKey%, ahk_id %wowid2%
Return
}
 
WinGet, wowid, list, DBO.exe
 
~WheelUp::
IfWinActive, ahk_id %wowid1%
{
global wowid2
ControlClick,,ahk_id %wowid2%,,WheelUp
Return
}
 
 
WinGet, wowid, list, DBO.exe
 
~WheelDown::
IfWinActive, ahk_id %wowid1%
{
ControlClick,,ahk_id %wowid2%,,WheelDown
Return
}
 
;***********************************************
;Shift + Standard Keyboard keys
;***********************************************
~+1::
~+2::
~+3::
~+4::
~+5::
~+6::
~+7::
~+8::
~+9::
~+0::
~+-::
~+=::
~+q::
~+w::
~+e::
~+r::
~+t::
~+f::
~+g::
;~+;::
~+'::
~+z::
~+x::
~+c::
~+v::
~+,::
~+.::
~+`::
~+/::
IfWinActive, ahk_id %wowid1%
{
StringTrimLeft, ThisKey, A_ThisHotKey, 1
ControlSend,, {shift down}%thiskey%{shift up}, ahk_id %wowid2%
Return
}
chusski
Posts: 31
Joined: 28 Jan 2018, 03:12

Re: Help with that script.

04 Jun 2019, 20:10

If cant do that.

I have 3 monitors, i can have one screen with my character, and second (bot healer), in other one.
But the script for healer bot can work in background?

soemthign like that no?

Code: Select all

PixelSearch, Px, Py, 200, 200, 300, 300, 0x9d6346, 3, Fast
if ErrorLevel
    ;select this player
    ;heal
else
     ;select player
     ;follow

thx guys.
chusski
Posts: 31
Joined: 28 Jan 2018, 03:12

Re: Help with that script.

05 Jun 2019, 00:50

Controlsend are not working... some one can help ? plz

Code: Select all

Loop
{
    CoordMode, Pixel, Window
    PixelSearch, FoundX, FoundY, 225, 82, 225, 82, 0xF31C45, 0, Fast RGB
    If ErrorLevel = 0
    {
        ControlClick, Target1, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688,, Left, 1,  x2021 y337 NA
        Sleep, 10
        ControlSend, Follow, {/}, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688
        ControlSend, no0, {Enter}, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688
        ControlSend, no1, {a}, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688
        ControlSend, no2, {Enter}, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688
    }
    Else
    {
        ControlClick, Target1, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688,, Left, 1,  x2021 y337 NA
        Sleep, 10
        ControlSend, Heal, {3}, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688
        ControlSend, Follow, {/}, DragonBallOnline ahk_class DragonBall ahk_exe DBOG.exe ahk_id 0x80f5e ahk_pid 135688
    }
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, Spawnova and 345 guests