Jump to content

automated login


sirmike
 Share

Recommended Posts

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

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 by rawrr
Link to comment
Share on other sites

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

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

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

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.

Posted Image1st 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.

Posted Image

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?

Posted Image

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 by sirmike
Link to comment
Share on other sites

This is basically what you need to do (psuedo-code):

move mouse to server name

click

move mouse to ch

click

move mouse to account name box

click

input acc name

move mouse to password box

click

input password

move mouse to connect button

click

move mouse to place to select character

click

move mouse to "OK"

click

Now 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!!!!!!
    
endfunc

Note: 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 by zeropoint
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...