Alex1 Posted June 14, 2007 Share Posted June 14, 2007 Hi, I'm trying to cheat on this game and this is what I'd like to accomplish It's some sort of "auto hunter." Each monster has a green name above it. What I'd like the script to do would be to find each name, right click below it, and if a certain box appears at the top of the screen (which means that the target is selected), I'd like it to press "1'. If target is not hit, then I'd like the pixel finder to run again. After each monster is killed (the target is selected box at top disappears), I'd like it to search again. By searching, I'd like it to first rotate the camera by pressing the right arrow key, and then use the pixel finder to find the name. What would be the best way to build a script for such an objective? Thanks for your help. Link to comment Share on other sites More sharing options...
evilertoaster Posted June 14, 2007 Share Posted June 14, 2007 (edited) PixelGetColor() and PixelSearch() are your bread and butter. Short of writing the thing for you, not to much else you can say... Edited June 14, 2007 by evilertoaster Link to comment Share on other sites More sharing options...
Alex1 Posted June 15, 2007 Author Share Posted June 15, 2007 Could you link me to where i can find out the syntaxes of these codes and how to use them? I am a beginner and I'd like to know where i can find some tutorials. For example, where to search and how to make it select a certain color. ALSO, how do I find out a color on my computer screen? Should I take a screenshot and then put it in photoshop and find it then? Link to comment Share on other sites More sharing options...
Richard Robertson Posted June 15, 2007 Share Posted June 15, 2007 If you installed AutoIt, go to Start>Programs>AutoIt v3>AutoIt Help File. Otherwise just look for the help file from your downloaded zip. Link to comment Share on other sites More sharing options...
Alex1 Posted June 16, 2007 Author Share Posted June 16, 2007 Hmm this is kind of difficult Link to comment Share on other sites More sharing options...
Mast3rpyr0 Posted June 16, 2007 Share Posted June 16, 2007 Hi, I'm trying to cheat on this gamelol nice intro. depending on what kinda game it is(played on browser like runescape or an actual game like call of duty)it may not even work.if its got gameguard then your wasting your time My UDF's : _INetUpdateCheck() My Programs : GameLauncher vAlpha, InfoCrypt, WindowDesigner, ScreenCap, DailyRemindersPick3GeneratorBackupUtility! Other : Bored? Click Here! Link to comment Share on other sites More sharing options...
Alex1 Posted June 17, 2007 Author Share Posted June 17, 2007 lol nice intro. depending on what kinda game it is(played on browser like runescape or an actual game like call of duty)it may not even work.if its got gameguard then your wasting your timeThanks, I wanted to be concise and frank. Hence my intro.But I know that with the thing I'm trying to use, it will work. Can someone link me to the tutorials of this? or better yet write the code for me? But tutorials would be fine, I just have no idea how to use the syntax for this type of code. Link to comment Share on other sites More sharing options...
FreeFry Posted June 17, 2007 Share Posted June 17, 2007 (edited) I can tell you right away, no one is even going to be able to make any sort of bot for whatever game you are talking about.How can you assume that someone would/could just make it for you, especially when you don't provide any kind of info about the game(game name, printscreen, etc.)?I don't think there's any real tutorial about how to do such specific tasks as you want to accomplish, there might be some examples in the help file(which you first of all need to find)And you to read up about the PixelSearch() and MouseMove() functions.If you search the forum for PixelSearch I think you'll find lot's of threads just like yours(for all kinds of games). Edited June 17, 2007 by FreeFry Link to comment Share on other sites More sharing options...
Alex1 Posted June 17, 2007 Author Share Posted June 17, 2007 yeah I knew no one would be able to make the script right now, I was saying, if someone offered to, I'd give them more information (print screen, etc.) Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 17, 2007 Share Posted June 17, 2007 yeah I knew no one would be able to make the script right now, I was saying, if someone offered to, I'd give them more information (print screen, etc.)See 'RentACoder' in my sig... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Alex1 Posted June 18, 2007 Author Share Posted June 18, 2007 how much does that cost? can I pay with appreciation, thanks, and hugs? Link to comment Share on other sites More sharing options...
Alex1 Posted June 18, 2007 Author Share Posted June 18, 2007 i guess i should take that as a no? Link to comment Share on other sites More sharing options...
FreeFry Posted June 18, 2007 Share Posted June 18, 2007 Try learning to do it yourself instead of begging others to do it for you (that won't gain many friends around here I'm afraid). Link to comment Share on other sites More sharing options...
ofLight Posted June 18, 2007 Share Posted June 18, 2007 Like has already been Mentioned, reading the Help file is your best bet. However I also find it Extremely helpfull when someone will post some example code for me to play with. expandcollapse popupHotKeySet("`","_find") HotKeySet("~","record") HotKeySet('{esc}', '_Exit') Global $msg = "Press Shift+tilde to Record " & @LF & _ "Press tilde to Find " & @LF & _ "info saved in Pixel.ini" Global $xy,$currentpixel ;If $pixel = -1 Or $chksum = -1 Then ; MsgBox(4096,"Error","Could not read INI") ; Exit ;EndIf While 1 $xy = MouseGetPos() $currentpixel = PixelGetColor($xy[0],$xy[1]) ToolTip("Pixel color = " & $currentpixel & @LF & $msg) Sleep(100) WEnd Func record() IniWrite(".\Pixel.ini","Main","PixelColor",$currentpixel) Local $chksum = PixelChecksum($xy[0]-5, $xy[1]-5, $xy[0]+5, $xy[1]+5) IniWrite(".\Pixel.ini","Main","PixelCheckSum",$chksum) MsgBox(4096,"","Pixel Area Recorded." & @LF & @LF & "See INI file for details.", 2) ;Exit EndFunc Func _find() Local $pixel = Int(IniRead(".\Pixel.ini","Main","PixelColor","-1")) Local $chksum = Int(IniRead(".\Pixel.ini","Main","PixelCheckSum","-1")) $sv = 0 $w = 1 $x = 5 ;LEFT pixel of Total Area to Search for $pixel $y = 5 ;TOP $xpixel = @DesktopWidth - 5 ;Right $ypixel = @DesktopHeight - 5 ;Bottom While $w = 1 $xy = PixelSearch($x,$y,$xpixel,$ypixel,$pixel, $sv) If $w = 3 Then Exit EndIf If @error And $ypixel = (@DesktopHeight - 5)Then MsgBox(4096,"@Error ","Could not find Checksum" & @LF & ' Finished Searching all of Screen', 4) SetError(1) Return 0 ElseIf @error Then $y = $ypixel + 1 $ypixel = (@DesktopHeight - 5) $x = 0 ;MsgBox(4096,"@Error","Could not find Checksum" & @LF & ' looking again in 2sec', 2) ElseIf $chksum = PixelCheckSum($xy[0]-5, $xy[1]-5, $xy[0]+5, $xy[1]+5) Then $w = 3 ;PixelCheckSum(left, top, right, bottom [, step] ) MouseMove($xy[0],$xy[1], 30) ToolTip("Found Checksum") $pos = MouseGetPos() MouseMove( $pos[0], $pos[1] -5, 20) ;Top MouseMove( $pos[0] +5, $pos[1], 20) ;Right MouseMove( $pos[0], $pos[1] +5, 20) ;Bottom MouseMove( $pos[0] -5, $pos[1], 20) ;Left ;Exit Else $y = $xy[1] $ypixel = $y $x = $xy[0] + 1 EndIf WEnd EndFunc Func _Exit() ToolTip(' '&@CRLF&' EXITING '&@CRLF&' ') Sleep(500) Exit EndFunc There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly Link to comment Share on other sites More sharing options...
Alex1 Posted June 18, 2007 Author Share Posted June 18, 2007 ofLight is there a way i can contact you through say, msn or AIM? Link to comment Share on other sites More sharing options...
Phat Phil Posted June 18, 2007 Share Posted June 18, 2007 Perhaps this thread will help you.http://www.autoitscript.com/forum/index.php?showtopic=47779 Link to comment Share on other sites More sharing options...
Alex1 Posted June 19, 2007 Author Share Posted June 19, 2007 Thanks fort the link, but i'm still a little fuzzy about how to do all this. Is there someone who can help me through AIM or MSN? Link to comment Share on other sites More sharing options...
FreeFry Posted June 20, 2007 Share Posted June 20, 2007 Hmm, sure, add me to my msn, look in my profile for the address Link to comment Share on other sites More sharing options...
ofLight Posted June 20, 2007 Share Posted June 20, 2007 Sorry for the Late response, I sent you my contact info in a Private message just in case you still needed it. There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly Link to comment Share on other sites More sharing options...
Alex1 Posted June 21, 2007 Author Share Posted June 21, 2007 Thank you guys Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now