Eliminator Posted March 7, 2009 Posted March 7, 2009 Hi! I tried Auto-IT 3 to make a bot for one online game that collects EXP points (Basic rules - your character walks and encountering the random battles, battle is turn based, then you get EXP for winning the encounter). First, i used Visual Basic 6 but i dont know how to simulate pressing arrow buttons... I used the ScriptWriter but it executes all comands too fast and character is failing to encounter enemies. Its possible to make AutoIT know if the screen already changed to battle screen?
Eliminator Posted March 7, 2009 Author Posted March 7, 2009 OK i have another problem. 1)Game client often crashes. How do i know if it was happen to relogin? 2)Sometimes there appears a blue screen that allows to add a new moves. How to tell my script to click the "proceed" button? thanks for advice.
TerarinK Posted March 7, 2009 Posted March 7, 2009 ahhh, a new person who needs help. For number one, using a Adlib will guarntee that it will check that status or else you could implement another autoit script that just checks on that and when it crashes send data to halt everything and relogin. However most games don't play like that and it is simple check for one things that the window has and if not there continue, easiest way of them all. Number two would check the proceed button on a check on pixels, else slep for about 10 - 250 mmsec. Just one thing what game is it, where is it, can we all play it? 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E
Bert Posted March 8, 2009 Posted March 8, 2009 How about playing the game as it was intended? The Vollatran project My blog: http://www.vollysinterestingshit.com/
myxomatosii Posted March 8, 2009 Posted March 8, 2009 (edited) How about playing the game as it was intended?Oh thats no fun! Haha, for those of us with the time and fortitude, we ARE playing. We just accelerate our response time through way of advanced interfacing. Part (sometimes all) of the game for me is just creating a tool to master it. Edited March 8, 2009 by myxomatosii
Eliminator Posted March 8, 2009 Author Posted March 8, 2009 Im intresting not so much to play this game so making a bot for it. At this moment my bot : Launches a game Enters username and password stored in ini file Do a login to game Walk around Kill monsters (i check if game is in the battle mode by checking 2 pixels of battle window ) BUT i have one problem... I dont know how to realise without GOTOs this events: If game crashed then we wait for 10 seconds and run it again, enter login password and pressing enter to login. If nothing happens for 1 minute (server is full or other error) then turn game client off and run it again.
BrianCJ Posted March 8, 2009 Posted March 8, 2009 Ive found that with writing bots for games, you can do a TON with pixelsearch $pos = PixelSearch(70,58,165,76,0x00CD00, 10, 2) if @error then ; do whatever action if the color isnt found sleep (10000); wait 10 seconds LogIn() Else ; whatever you want to do if the color is found EndIf Func LogIn() ; Enter LogIn information ; Press the enter button ; look for some color that is only on the log-in screen While $x < 10 $pos = PixelSearch(70,58,165,76,0x00CD00, 10, 2) if @error then ; do whatever action if the color isnt found, wait 1 miniute sleep (6000) $x = $x+1 Else PlayGame() EndIf Wend Restart() EndFunc func PlayGame() ; this is where you put in what you want the game to do endfunc func Restart() ; this is where you put the code to restart the game endfunc
Bert Posted March 9, 2009 Posted March 9, 2009 Oh thats no fun! Haha, for those of us with the time and fortitude, we ARE playing. We just accelerate our response time through way of advanced interfacing. Part (sometimes all) of the game for me is just creating a tool to master it. In other word, you cheat. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Gondus Posted March 9, 2009 Posted March 9, 2009 In other word, you cheat.So your saying, in ALL the time you have scripted in autoit you have NEVER made a bot for a game...If this was the truth i would be VERY amazed. -----------Current Programming Language Status:Beginner: J#, Ruby Intermediate: Autoit, Java, C#, C++Advanced: Basic, Visual Basic, Fortran
Inverted Posted March 9, 2009 Posted March 9, 2009 (edited) So your saying, in ALL the time you have scripted in autoit you have NEVER made a bot for a game...If this was the truth i would be VERY amazed.You know, some people program serious stuff and not button-clicking shit for online gridfests.It may seem strange to you, I know, but take my word for it.Now act amazed Edited March 9, 2009 by Inverted
Eliminator Posted March 9, 2009 Author Posted March 9, 2009 BrianCJ Hey i dont knew that we can use functions! So i can make logging in and battle mode as a function! Yep this is a cheating. But cheating is fun sometimes.
DeSwa Posted March 9, 2009 Posted March 9, 2009 You cant make bot on Autoit. you must use vb.net or C++
Eliminator Posted March 9, 2009 Author Posted March 9, 2009 DeSwa but it works. Bot written on autoit script. language. Now i planning to add a log to it
Moderators JLogan3o13 Posted October 18, 2016 Moderators Posted October 18, 2016 @Moaz did you not notice this thread is over 7 years old? It is also against the forum rules. Please familiarize yourself with those rules before you post again, and please do not resurrect old threads. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts