Jump to content

Just wondering can this be used for RPG game bot?


-=HWD=-
 Share

Recommended Posts

what do you want to use? autoit?

i don't get your question (maybe i don't wanna get it :o)

ya to make a bot with auto it though i dunno how to make =( cuz i really need a pro to teach me on how to set the cursor to click on monsters automatically :">

Link to comment
Share on other sites

is the monster moving that fast?

while 1
$coord = pixelsearch (0,0,@desktopwidth,@desktopheight,0xFF0000,0,2)
;check the whole desktop for the color red
mouseclick ("left",$coord[0],$coord[1],1); click it
wend
try this Edited by Nuffilein805
Link to comment
Share on other sites

Shouldn't there be a WEnd at the nd of that.

The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Link to comment
Share on other sites

could you post the errors?

it supposed to search the entire desktop for the color red (0xFF0000)

you've got to look for the colour of your monster so it can click there (autoitwindowinfo)

maybe you should use scite

http://www.autoitscript.com/autoit3/scite/

its a lot easier to read

here is the autoitbeta

http://www.autoitscript.com/autoit3/files/beta/autoit/

cause i don't know if you might need that as well

Link to comment
Share on other sites

it doesn't find the color

while 1
$coord = pixelsearch (0,0,@desktopwidth,@desktopheight,0xFF0000,0,2)
;check the whole desktop for the color red
if not @error then
mouseclick ("left",$coord[0],$coord[1],1); click it
endif
wend

just updated the script

Link to comment
Share on other sites

well i pasted this into notepad :

while 1

$coord = pixelsearch (0,0,@desktopwidth,@desktopheight,0xFF0000,0,2)

;check the whole desktop for the color red

mouseclick ("left",$coord[0],$coord[1],1); click it

wend

and then ran it with autoit and also with a RPG game opened to Window mode but then it poped up

-----------------------------------------------------------

Line 18 (File "C:\..................................."):

Mouseclick("left",$coord[0],$coord[1],1);click it

mouseclick("left",$coord^ERROR

Error: Subscript used with non-Array variable

------------------------------------------------------------

Link to comment
Share on other sites

as i said it's because of the color

try this 1, open this thread first

winactivate ("Just wondering can this be used for RPG game bot?")
send ("{lctrl}{home}")
while 1
$coord = pixelsearch (0,0,@desktopwidth,@desktopheight,0x000084,0,2)
if not @error then
mouseclick ("left",$coord[0],$coord[1],1); click it
msgbox (0, "", "Wow, I've just found this color!!!")
endif
wend
Edited by Nuffilein805
Link to comment
Share on other sites

i just told you, that you have to find the color!!! use autoitwindowinfo or this script

hotkeyset("!{f10}", "getcolor"); press alt+f10 to get the color
while 1
sleep (10)
wend
func getcolor()
$a = mousegetpos()
$b = pixelgetcolor ($a[0],$a[1])
msgbox (0, "", "The color is: " & $b)
endfunc

the time you have the color post it here and i'll help you

Link to comment
Share on other sites

ok here is you script

hotkeyset("!{f9}", "start");alt+f9
hotkeyset("!{f8}", "stop");alt+f8

while 1
sleep (50)
wend

func start()
while 1
$coord = pixelsearch(0,0,@desktopwidth,@desktopheight,"0x"&hex(10850939,6),0,2)
if not @error then
mouseclick("left",$coord[0],$coord[1],1)
sleep(5000);sleeps 5 sec before next click
endif
wend
endfunc

func stop()
while 1
sleep (50)
wend
endfunc

start the script when you're in your game-window

it will sleep 5 sec between each click

good luck have fun

if you need more help just ask

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...