PDA

View Full Version : RoBot without openkore - pixelsearch


vardump
20th May 2009, 18:15
Hi Forum,
I'm registered on the private ro server SeireiteiRo. The Server has a room called "hard treasure" with porings(99kk hp). Killing them is not the problem, but you cant use openkore for it, because they have a capture code at the npc to warp in. So i used autoit and let autoit found the pink pixels, where the porings are. Now the problem: after a few clicks, or maybe if no poring is there, it clicks to top left(completly), top right and waits the 14 secs. I dont know, why pixelsearch founds something at a black or white point.
First screens:
http://yfrog.com/5escreenseireiteiro025j
http://yfrog.com/7gscreenseireiteiro026j
Now script:

;Auflösung: 1400x1050, 10x von der nahesten Ansicht aus mit Mausrad zurückgezoomt
;Kamera so drehen, dass die Porings mit den Augen nach unten rechts gucken
Dim $farbfeld[4]

$farbfeld[0] = "f78e84"
$farbfeld[1] = "ce7973"
$farbfeld[2] = "e77d7b"
$vor = '0x'

Dim $pos[3][3]

;mittleres rechteck (um den char herum)
$pos[1][1] = 615
$pos[1][2] = 319
$pos[2][1] = 817
$pos[2][2] = 548

Dim $resolution[2]
;Bildschirm Auflösung
$resolution[0] = 1400
$resolution[1] = 1050

sleep(10000)

While 1

For $i = 0 to 3 Step +1

$coord = PixelSearch( 0, 36, $resolution[0]-1, $resolution[1]-30, $vor&$farbfeld[$i], 5)

If IsArray($coord) = True and @error = 0 Then
If ($coord[0] < $pos[1][1] or $coord[0] > $pos[2][1]) and ($coord[1] < $pos[1][2] or $coord[1] > $pos[2][2]) Then
MouseClick("left", $coord[0], $coord[1], 2, 15)

sleep(14000)
EndIf
EndIf

Next
MouseClick("left", Random(1, $resolution[0]-1, 1), Random(36, $resolution[1]-30), 2, 15)
sleep(2500)

WEnd

Shadowraze
30th May 2009, 10:33
can you plss make a tutorial on how to do it??