Sign in to follow this  
Followers 0
nhd1986

Code: "locate A Monster". Anyone Help Me!

14 posts in this topic

in a game, 2D or 3D, how can we write a code to locate a monster?

i want to know about a gamebot, can anyone help me know about locating a monster in a gamebot

Share this post


Link to post
Share on other sites



I can't help much because I don't knwo what game it is so take a look in the helpfile for these.

PixelGetColor

PixelSearch

MouseClick

That's all I can help. :think:

Share this post


Link to post
Share on other sites

Has this Monster a specific color?

What game are you talking about?

Share this post


Link to post
Share on other sites

Silkroadonline, i knew a bot for this game , but i dun know how the bot can find monsters?

Share this post


Link to post
Share on other sites

what bot are you talking about SROBOT 1.6? or LXY or what, but the way they find it is when the hook is called to change the cursor to a sword to attack it will then double click simple as that, i unsure if autoit can do such a thing especialy since it has GG on it

Share this post


Link to post
Share on other sites

change the cursor to a sword to attack it will then double click simple as that

u wanted to talk about LXY, right? yes, it's simple

but i want to ask about some bot can locate monster, it dun need move mouse include: Srobot all version.

I want to know: how it can do that

Share this post


Link to post
Share on other sites

i havent really used any SRObots but what u mean how does it locate a monster? do they have boxes around them saying theres a monster there or does it just attack cuz then that would probaly mean it is way advanced and cant explain in simple terms how exactly it does it, its kinda like Counter strike hacks

Share this post


Link to post
Share on other sites

iSROBOT simply attacks, but iSROBOT injects itself and its "silk.dll" into the game and hooks alot of different addresses waiting for those hooks to turn on then responds to it accordingly. I don't think autoit can do this, so (he) will need a different way to detect if they're is a monster either attack-able or attacking the player. ;P

(by the way, GG gets disabled by iSROBOT so its possible *somehow*)

Share this post


Link to post
Share on other sites

thanks about it.

but i wanted to ask about another way, a way which can be made by autoit

as realizing change of the cursor(code?)

Share this post


Link to post
Share on other sites

#11 ·  Posted

my bot :think:

I for one, am not going to run any executable files from people I dont know.

Post the source.


AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

Share this post


Link to post
Share on other sites

#12 ·  Posted

my bot :think:

Look, if you run this foo's executable, then you deserve to have your account, computer and whatever else hacked into oblivion.

nhd...post the source and we'll compile it ourselves.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

sleep(1000)
Func _check()
$coord = PixelSearch(146,132,179,135,0x5a555a)

if not @error Then
            send("{F1}")
            sleep(10000)
        EndIf
EndFunc
$i=0
$a=0
$b=0
while $i<100
    $x = 460
$y = 150
$toado = PixelSearch(202,104,875,565,0x00FF00);<===color of moster's name(here is green)
if not @error Then
    For $a=0 To 100
        for $b=0 to 30
            if hex(PixelGetColor($toado[0]+$a,$toado[1]+$b),6)="00FF00" Then
                    _MouseMovePlus(($toado[0]+$a+20)*(65535/@DesktopWidth), ($toado[1]+$b+30)*(65535/@DesktopHeight),1)
                    MouseClick("left")
                send("{F2}")
                $i=$i+1
                sleep(1000)
                $c = PixelSearch(457,149,471,151,0xffffff)
                if not @error Then
                    if hex(PixelGetColor($c[0],$c[1]),6)="ffffff" then
                        while hex(PixelGetColor($x,$y),6)="ffffff"
                            $c = PixelSearch(457,149,471,151,0xffffff)
                            if not @error then 
                                $x = $c[0]
                                $y = $c[1]
                            EndIf
                        WEnd
                    EndIf
                EndIf
                _check()
            EndIf
        Next
    Next
EndIf
Send("{F3}")
sleep(1000)
WEnd

Func _MouseMovePlus($X, $Y,$absolute = 0)
        Local $MOUSEEVENTF_MOVE = 1
    Local $MOUSEEVENTF_ABSOLUTE = 32768
    DllCall("user32.dll", "none", "mouse_event", _
            "long",  $MOUSEEVENTF_MOVE + ($absolute*$MOUSEEVENTF_ABSOLUTE),  "long",  $X,   "long",  $Y,    "long", 0,  "long",  0)
        EndFunc

Edited by nhd1986

Share this post


Link to post
Share on other sites

sleep(1000)
Func _check()
$coord = PixelSearch(146,132,179,135,0x5a555a)

if not @error Then
            send("{F1}")
            sleep(10000)
        EndIf
EndFunc
$i=0
$a=0
$b=0
while $i<100
    $x = 460
$y = 150
$toado = PixelSearch(202,104,875,565,0x00FF00);<===color of moster's name(here is green)
if not @error Then
    For $a=0 To 100
        for $b=0 to 30
            if hex(PixelGetColor($toado[0]+$a,$toado[1]+$b),6)="00FF00" Then
                    _MouseMovePlus(($toado[0]+$a+20)*(65535/@DesktopWidth), ($toado[1]+$b+30)*(65535/@DesktopHeight),1)
                    MouseClick("left")
                send("{F2}")
                $i=$i+1
                sleep(1000)
                $c = PixelSearch(457,149,471,151,0xffffff)
                if not @error Then
                    if hex(PixelGetColor($c[0],$c[1]),6)="ffffff" then
                        while hex(PixelGetColor($x,$y),6)="ffffff"
                            $c = PixelSearch(457,149,471,151,0xffffff)
                            if not @error then 
                                $x = $c[0]
                                $y = $c[1]
                            EndIf
                        WEnd
                    EndIf
                EndIf
                _check()
            EndIf
        Next
    Next
EndIf
Send("{F3}")
sleep(1000)
WEnd

Func _MouseMovePlus($X, $Y,$absolute = 0)
        Local $MOUSEEVENTF_MOVE = 1
    Local $MOUSEEVENTF_ABSOLUTE = 32768
    DllCall("user32.dll", "none", "mouse_event", _
            "long",  $MOUSEEVENTF_MOVE + ($absolute*$MOUSEEVENTF_ABSOLUTE),  "long",  $X,   "long",  $Y,    "long", 0,  "long",  0)
        EndFunc
does pixelgetcolor work for you ingame coz mine only returns none. somehow i think gameguard blocks pixelgetcolor. i cant ever seem to get any color no matter how or whatever color i click in SRO. everything returns 0<<===signifies black or simply nothing. =( can someone confirm is pixelsearch and pixelgetcolor works in SRO ingame?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0