|
You last visited: Today at 23:32
Advertisement
Guide AHK Pixel/Imagesearch Bot (DarkRO)
Discussion on Guide AHK Pixel/Imagesearch Bot (DarkRO) within the Ragnarok Online forum part of the MMORPGs category.
07/25/2020, 15:47
|
#31
|
elite*gold: 0
Join Date: Nov 2008
Posts: 15
Received Thanks: 0
|
holy shete hirap pag begginer sa ganto heheh pero Maraming Salamat po
|
|
|
07/25/2020, 17:09
|
#32
|
elite*gold: 0
Join Date: Dec 2012
Posts: 122
Received Thanks: 18
|
Quote:
Originally Posted by gmalexis
holy shete hirap pag begginer sa ganto heheh pero Maraming Salamat po
|
if you can master this you can easily make a treasure hunter bot.
add another imagesearch the botchecker as PNG make a png of the text "You are suspected as a bot-user" (again not 100% exact with this since i no longer play.)
Code:
#include <Vis2>
CoordMode, Pixel, Relative
CoordMode, Mouse, Relative
F2::Reload
F1::
{
telecounter := 0
WinWaitActive, DarkRO: Rebirth
WinSetTitle, DarkRO: Rebirth
WinGetActiveStats, Title, www, hhhh, X, Y
Loop
{
sleep 200
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, botchecker.png
if (ErrorLevel = 0)
{
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, countchars.png
if (ErrorLevel = 0)
{
text := OCR([x, y, w, h])
text := StrLen(text)
text :=StrReplace(text, "[", "")
text :=StrReplace(text, "]", "")
text :=StrReplace(text, " ", "")
text :=StrReplace(text, "|", "")
sleep 5000
send {enter}
sleep 5000
send %text%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, add.png
if (ErrorLevel = 0)
{
gosub, addsubtract
}
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, sub.png
if (ErrorLevel = 0)
{
gosub, addsubtract
}
}
else
{
Sleep 500
ImageSearch, FoundX, FoundY, 0, 0, www, hhhh,*50 orc.png
if (ErrorLevel = 0)
{
sleep 200
Send {H}
}
else if (ErrorLevel = 1)
{
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, www, hhhh,*50 grand.png
if (ErrorLevel = 0)
{
Click, %FoundX%, %FoundY%
sleep 500
telecounter++ ;; You need this so pixel bot will not get stuck if peco cannot be reached
if telecounter > 15 ;; It will force teleport every 15seconds with or without peco
{
send {H} ;; Assuming your teleport or flywing is Letter H
}
}
else if (ErrorLevel = 1)
{
send {H}
telecounter = 0
}
Sleep 500
}
}
}
}
addsubtract:
{
text := OCR([x, y, w, h])
text :=StrReplace(text, "[", "")
text :=StrReplace(text, "]", "")
text :=StrReplace(text, " ", "")
text :=StrReplace(text, "|", "")
Loop, parse, text, `*/+-
{
if A_Index = 1
number1 := A_LoopField
if A_Index = 2
number2 := A_LoopField
}
If InStr(text, "-")
{
number := number1 - number2
sleep 5000
send {enter}
sleep 5000
send %number%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
If InStr(text, "+")
{
number := number1 + number2
sleep 5000
send {enter}
sleep 5000
send %number%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
}
return
|
|
|
07/26/2020, 00:15
|
#33
|
elite*gold: 0
Join Date: Nov 2008
Posts: 15
Received Thanks: 0
|
meron na ako token bot
botchecker autocaptcha na lang kulang ko ^^,
pag aralan ko tlaga to
Maraming salamat po talga...
|
|
|
07/26/2020, 00:53
|
#34
|
elite*gold: 0
Join Date: Jul 2009
Posts: 9
Received Thanks: 0
|
Quote:
Originally Posted by nozomi.gusta
Have not test the code since i no longer play DarkRO if there is problem please post again
Code:
F1::
{
telecounter := 0
Loop
{
Sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, Orc.png
if (ErrorLevel = 0)
{
sleep 200
Send {H}
}
else if (ErrorLevel = 1)
{
sleep 500
ImageSearch, FoundX, FoundY, 1, 1, A_ScreenWidth, A_ScreenHeight, Grand.png
if (ErrorLevel = 0)
{
Click, %FoundX%, %FoundY%
sleep 500
telecounter++ ;; You need this so pixel bot will not get stuck if peco cannot be reached
if telecounter > 15 ;; It will force teleport every 15seconds with or without peco
{
send {H} ;; Assuming your teleport or flywing is Letter H
}
}
else if (ErrorLevel = 1)
{
send {H}
telecounter = 0
}
Sleep 500
}
}
}
return
|
will definitely gonna try this but maybe not now because the new management of darkro rebirth is a bit vigilant in hunting botters >.<
by the way how about for the detection of gepard? kind of wondering what remedy can be with that problem...
|
|
|
07/26/2020, 05:52
|
#35
|
elite*gold: 0
Join Date: Nov 2008
Posts: 15
Received Thanks: 0
|
i got this error when im trying to run the script
the autocaptcha
#include <Vis2>
CoordMode, Pixel, Relative
CoordMode, Mouse, Relative
F2::Reload
F1::
{
telecounter := 0
WinWaitActive, DarkRO: Rebirth
WinSetTitle, DarkRO: Rebirth
WinGetActiveStats, Title, www, hhhh, X, Y
Loop
{
sleep 200
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, botchecker.png
if (ErrorLevel = 0)
{
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, countchars.png
if (ErrorLevel = 0)
{
text := OCR([x, y, w, h])
text := StrLen(text)
text :=StrReplace(text, "[", "")
text :=StrReplace(text, "]", "")
text :=StrReplace(text, " ", "")
text :=StrReplace(text, "|", "")
sleep 5000
send {enter}
sleep 5000
send %text%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, add.png
if (ErrorLevel = 0)
{
gosub, addsubtract
}
sleep 500
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, sub.png
if (ErrorLevel = 0)
{
gosub, addsubtract
}
}
}
}
addsubtract::
{
text := OCR([x, y, w, h])
text :=StrReplace(text, "[", "")
text :=StrReplace(text, "]", "")
text :=StrReplace(text, " ", "")
text :=StrReplace(text, "|", "")
Loop, parse, text, `*/+-
{
if A_Index = 1
number1 := A_LoopField
if A_Index = 2
number2 := A_LoopField
}
If InStr(text, "-")
{
number := number1 - number2
sleep 5000
send {enter}
sleep 5000
send %number%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
If InStr(text, "+")
{
number := number1 + number2
sleep 5000
send {enter}
sleep 5000
send %number%
sleep 1000
send {enter}
sleep 1000
send {enter}
sleep 1000
}
}
return
|
|
|
07/26/2020, 06:10
|
#36
|
elite*gold: 0
Join Date: Dec 2012
Posts: 122
Received Thanks: 18
|
Quote:
Originally Posted by gmalexis
i got this error when im trying to run the script
the autocaptcha
|
Sorry replace "addsubtract::" with "addsubtract:"
1 : only
|
|
|
07/26/2020, 15:31
|
#37
|
elite*gold: 0
Join Date: Nov 2008
Posts: 15
Received Thanks: 0
|
where do i put the subtract/ count the char // add .png file??
and their 1 more new captcha Enter The Generated Text
how can i add that
|
|
|
07/28/2020, 19:10
|
#38
|
elite*gold: 0
Join Date: Sep 2012
Posts: 3
Received Thanks: 0
|
Quote:
Originally Posted by nozomi.gusta
Sorry replace "addsubtract::" with "addsubtract:"
1 : only
|
Got this working but Gepard Shield still detects it after around 10-15 minutes. It says bot tool detected and client crashes. Is there a fix for that?
I tried adding random delays between key strokes, jitter movements on mouse etc. to simulate a more human like behavior but it still does not work.
|
|
|
07/28/2020, 20:01
|
#39
|
elite*gold: 0
Join Date: Jul 2020
Posts: 1
Received Thanks: 0
|
hi, can this macro/bot do auto farm and auto storage?
|
|
|
08/01/2020, 13:43
|
#40
|
elite*gold: 0
Join Date: Nov 2009
Posts: 2
Received Thanks: 0
|
is this still working? any updates?
|
|
|
08/04/2020, 19:33
|
#41
|
elite*gold: 0
Join Date: Aug 2020
Posts: 3
Received Thanks: 0
|
During the 15th step, the message box appears as "Not found" even if I'm seeing the mob.
Any suggestions?
I guess I'm having difficulties in coloring the sprites.
|
|
|
08/05/2020, 16:59
|
#42
|
elite*gold: 0
Join Date: Dec 2012
Posts: 122
Received Thanks: 18
|
Quote:
Originally Posted by JohnIsland
During the 15th step, the message box appears as "Not found" even if I'm seeing the mob.
Any suggestions?
I guess I'm having difficulties in coloring the sprites.
|
have you tried this
|
|
|
08/05/2020, 22:54
|
#43
|
elite*gold: 0
Join Date: Aug 2020
Posts: 3
Received Thanks: 0
|
Quote:
Originally Posted by nozomi.gusta
have you tried this

|
Hey man, thanks for your support. Apparently I was having troubles when coloring the sprite. For some reason I couldn't get the same color ID for the whole monster, so the script would never find a square that matches perfectly with the monster.
First I tried to color it my way, since the monster I wanted to hunt is the Alligator and not the Grand Peco, but I couldn't at all get the same color.
So I gave up and just changed the Alligator sprite for your Grand Peco sprite and it worked fine. Now I'm hunting Alligators that are blue Grand Peco shaped hahahahaha but it's fine for me.
Thank you and nice script!! I'm new at this, but I found really nice the many possibilities we have by using them.
|
|
|
08/06/2020, 12:32
|
#44
|
elite*gold: 0
Join Date: Dec 2012
Posts: 122
Received Thanks: 18
|
Quote:
Originally Posted by JohnIsland
Hey man, thanks for your support. Apparently I was having troubles when coloring the sprite. For some reason I couldn't get the same color ID for the whole monster, so the script would never find a square that matches perfectly with the monster.
First I tried to color it my way, since the monster I wanted to hunt is the Alligator and not the Grand Peco, but I couldn't at all get the same color.
So I gave up and just changed the Alligator sprite for your Grand Peco sprite and it worked fine. Now I'm hunting Alligators that are blue Grand Peco shaped hahahahaha but it's fine for me.
Thank you and nice script!! I'm new at this, but I found really nice the many possibilities we have by using them.
|
You can also do it like this.
1. Extract the alligator.act
2. Open it in Act Editor
3. Act Editor > Edit > Import Pallete
4. Find my Grand_peco.act
5. Save
Now your Alligator should be the same color as the grand peco.
|
|
|
08/06/2020, 21:41
|
#45
|
elite*gold: 0
Join Date: Aug 2020
Posts: 3
Received Thanks: 0
|
It worked fine!
Thanks
|
|
|
All times are GMT +1. The time now is 23:34.
|
|