sirmike Posted February 25, 2008 Share Posted February 25, 2008 Hi im playing a game called metin-2 and before you start playing you always have to manually add your username and password before playing. Not only does it require a login, it also requires a server to pick, and a character to choose(since you can play up to 4 characters per account) anyway how can i with the help of autoIT make a little bot that makes it possible for me to skip this procedure, and how can i join the server right away using this bot without having to fill in my account stuff and character and server stuff.. Link to comment Share on other sites More sharing options...
rawrr Posted February 25, 2008 Share Posted February 25, 2008 (edited) Check out MouseClick MouseGetPos Sleep MouseClickDelay All in the help menu, I did this for world of warcraft. =] Edit: This is V2, not sure if it works for V2. Are you sure you are using V2? Edited February 25, 2008 by rawrr Link to comment Share on other sites More sharing options...
sirmike Posted February 25, 2008 Author Share Posted February 25, 2008 thnx for your fast reply, yet i dont know what u mean i havent worked with auto it before? Link to comment Share on other sites More sharing options...
rawrr Posted February 26, 2008 Share Posted February 26, 2008 Ahh, okay. You posted in the "Old" Autoit section. Download the new one. Its much better, IMO. http://www.autoitscript.com/autoit3/downloads.shtmlThen to start, http://www.autoitscript.com/forum/index.php?showtopic=21048It's great. Good luck man! Link to comment Share on other sites More sharing options...
sirmike Posted February 26, 2008 Author Share Posted February 26, 2008 Yes i have downloaded that version, and im learning the tuts about hello world and stuff. what my question is, how can i make a bot so that i dont need to sign in the game anymore, and dont have to choose a server anymore and dont have to choose my character anymore? Link to comment Share on other sites More sharing options...
uPod Posted February 26, 2008 Share Posted February 26, 2008 He just told you what functions to look at in the helpfile. Basically you want to do the tutorials for a little background. Then look up those functions and read about them, the helpfile tells you how they are used and it gives examples that really help explaining. Try that. Link to comment Share on other sites More sharing options...
uPod Posted February 26, 2008 Share Posted February 26, 2008 (edited) EDIT: Sorry for the double, the site lagged and then it posted 2. Mods please delete this. Edited February 26, 2008 by uPod Link to comment Share on other sites More sharing options...
Thetan Posted February 26, 2008 Share Posted February 26, 2008 CODE Run("Enter the filepath here") WinWaitActive("Enter window name") Sleep(5000) ;five seconds Send("Enter Account Name") Send ( "{TAB}" ) Send("Enter Password") Send( "{ENTER}" ) That will most likely Log you into the game but you still have to figure out how to choose your server and your character. Also you may need to chance the Sleep function to wait longer than 5 seconds depending on your load time... Good Luck. So you will probably have to look up: MouseClick MouseGetPos Sleep MouseClickDelay Link to comment Share on other sites More sharing options...
sirmike Posted February 26, 2008 Author Share Posted February 26, 2008 well i did find a file inside the game that could manually let me edit the server to 1 or 2 or 3 or 4. there are 4 servers i can connect to. if i could find a way to make it automaticly choose one of the 4. Link to comment Share on other sites More sharing options...
sirmike Posted February 26, 2008 Author Share Posted February 26, 2008 it seems that the code that was mentioned, i tried but i get an error. when i fill in the command line Run and fill in the place the file needs to be executed i get an unterminated string error. the screen is attached. Link to comment Share on other sites More sharing options...
sirmike Posted February 26, 2008 Author Share Posted February 26, 2008 (edited) In order for you people to make it easier to help i made some screenshots on how the game normally loads.in numberic order you will see how the login-process goes.1st picture.When entering the game you will always see this first, the serverlist.This is the first that i want to happen automaticly using AutoIT so that i dont have to choose that again.2nd picture.This is the login page for your character. As you can see it asks for your ID and password and then to click ENTER.I would like that to be evaded aswell using autoIT.As it will first ask for your server to join and then to login makes it even harder i think?3rd picture.Here is the place where you can choose your character.As you can see I have only 1. But you are able to make atleast 4 characters, so I would have to make an option to be able to choose from 4 characters?But how can i also make it automatic choose my character?after this screen the game will load, and start where you last finished.hope this explains the loading method of this game. Edited February 26, 2008 by sirmike Link to comment Share on other sites More sharing options...
zeropoint Posted February 26, 2008 Share Posted February 26, 2008 (edited) This is basically what you need to do (psuedo-code):move mouse to server nameclickmove mouse to chclickmove mouse to account name boxclickinput acc namemove mouse to password boxclickinput passwordmove mouse to connect buttonclickmove mouse to place to select characterclickmove mouse to "OK"clickNow read the manual and figure out how to move the mouse, click, ect.Thetan above covered how to run the game from script.For reference, this is my quick logon code for another game, that assumes the game is already started, and you are at the menu screen:Func AutoLogon() _MouseMovePlus(-1280, -1024);mouse to top left _MouseMovePlus(640, 435);mouse to the account button Sleep(20) MouseClick("left") ;clicks on logon button Sleep(20) _MouseMovePlus(100, 240) ;moves down to OK button Sleep(20) Send("{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}");clear out any previous input in password box Sleep(20) Send("PASSWORD") ;send the password Sleep(20) MouseClick("left") ;clicks on OK button Sleep(20) _MouseMovePlus(-100, -280) ;move up to select char Sleep(20) MouseClick("left") ;clicks char name Sleep(20) _MouseMovePlus(0, 550) ;move down to click log In Sleep(20) MouseClick("left") ;LOGON!!!!!! endfuncNote: I use _MouseMovePlus instead of normal MouseMove, because that doesn't work with game.The move code is crappy because I can't read the location of the cursor, so i must use movement relative to the top left corner of the screen. if anyone has solution, see my thread at http://www.autoitscript.com/forum/index.php?showtopic=64959 Edited February 26, 2008 by zeropoint 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