Tratando de crear un Bot para partys

Las preguntas relacionadas con la automatización de juegos van aquí.

Moderator: Flipeador

chusski
Posts: 31
Joined: 28 Jan 2018, 03:12

Tratando de crear un Bot para partys

04 Jun 2019, 13:02

Hola compañeros.

Me gustaría crear un bot para dualboxing en el juego de Bola de Dragón Online.

He encontrado este código por el foro, pero no es bien bien lo que quiero. Esto se limita a duplicar lo que hace un personaje a otro, o eso he entendido.

Yo no me se muy bien el lenguaje del AHK, por eso es que neceistaria algo de ayuda, si es posible.

La idea es:
Jugar con un personaje, y poder llevar uno o varios en party, asistiendo o curando.
Ya sea, que cuando apretase una tecla escriba un comando y el otro sea capaz de leerlo, y reaccione en consecuencia, o por medio de lectura de imágenes.

Por ejemplo, si pulsas auto ataque (que seria el 1) el resto lo realice igual, pero si baja la vida de alguno, el healer lo cure.

Esto seria posible?

Muchas gracias por la ayuda.

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, World of Warcraft
 
~WheelUp::
IfWinActive, ahk_id %wowid1%
{
global wowid2
ControlClick,,ahk_id %wowid2%,,WheelUp
Return
}
 
 
WinGet, wowid, list, World of Warcraft
 
~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: Tratando de crear un Bot para partys

05 Jun 2019, 00:49

Estoy probando este script pero no funciona el controlsend, sabeis que hago mal ?

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 “Automatización de Juegos”

Who is online

Users browsing this forum: No registered users and 75 guests