Hi guys, I have just registered to the forum. This is my first Thread. I hope, I could be helpful to the community.
If you are AFK in the game or running bot(macro) and you might get disconnected then this bot comes handy.
This bot is for Blue Eye Macro (BEM)
Code:
begin
// Bring Aika Client to the front
Window.Bring to front("AikaClient", "No")
// Check if user is loged out
if Image.Can be located on screen near coordinate("C\BlueEyeMacro\login.jpg", "99", "960", "635", "100")
// If sometimes user can't log in (server problem, lag), it repeats the same process again and again to login
begin loop()
// This is just to be on a safe side, this will click the cancel button if there is "Would you like to exit the game windows (if ESC button was pressed while on login in mode)" if not then it will just click on a blank space.
Mouse.Click at coordinate("1026", "342", "left")
Macro.Pause("1000")
// Click on the right most side of the User Name text box
Mouse.Click at coordinate("1036", "672", "left")
// Delete everything that is already there (when some micro running, it does not know user is loged out so there will be some garbage text)
Keyboard.Hold keys("{<backspace>}")
Macro.Pause("1000")
Keyboard.Release keys("{<backspace>}")
Keyboard.Press keys("userName")
Macro.Pause("2000")
// Click on the right most side of the Password text box
Mouse.Click at coordinate("1030", "704", "left")
Keyboard.Hold keys("{<backspace>}")
Macro.Pause("1000")
Keyboard.Release keys("{<backspace>}")
Keyboard.Press keys("password")
Macro.Pause("2000")
Keyboard.Press key("{<enter>}")
Macro.Pause("5000")
// Choose world
Mouse.Click at coordinate("955", "660", "left")
Macro.Pause("10000")
// Choose Channel
Mouse.Double click at coordinate("935", "617", "left")
Macro.Pause("5000")
// Click on the char (My char is on the left most side so it always works, if you have multiple characters then you have to provide the exact X & Y Coordinates of your char)
Mouse.Double click at coordinate("620", "615", "left")
Macro.Pause("2000")
// You have to save yours PIN number Pictures, if your pin is 1739 then you have to save 1.jpg, 7.jpg, 3.jpg and 9.jpg. Save picture from Investigate by taking screen shots.
Mouse.Click at image("C\BlueEyeMacro\1.jpg", "100", "left")
Macro.Pause("1000")
Mouse.Click at image("C\BlueEyeMacro\7.jpg", "100", "left")
Macro.Pause("1000")
Mouse.Click at image("C\BlueEyeMacro\3.jpg", "100", "left")
Macro.Pause("1000")
Mouse.Click at image("C\BlueEyeMacro\9.jpg", "100", "left")
Macro.Pause("50000")
// You have to save this picture too to make sure you are already in the game
if Image.Can be located on screen near coordinate("C\BlueEyeMacro\loginsuccessful.jpg", "99", "1770", "113", "50")
begin
// This is the part where you write other micro or link other micro after successfull login. I usually port my char to save point and start grinding ;)
end
end
end
You need these .jpg files.
You need four .jpgs of your pin number.
Login.jpg
LoginSuccessful.jpg (It is a picture of World Map Opener(it is on the left side of the mini map)
************************************************** ***********************************
This bot is for UoPilot
This bot has some limitations.
> You PIN numbers must not contain 1 and 8.
> You have to replace some code according to your PIN requirement.
> This bot is on test mode, you have to uncomment 1 line of code to make it work.
Code:
// Infinite loop, even after login to the game, system keep checking if user is loged out
repeat -1
//Always bring the aika client to the front (It will click on the center of the mini map)
move 1828, 97
kleft 1828, 97
//********** If user loged out
//Check the color and coordinates of L of Login Text, I of ID text and P of Password text
if 933, 632 12507614 and 905, 675 12507614 and 864, 700 12507614
//**** Loop until successfully loged in to the game (If sometimes user can't log in (server problem, lag), it repeats the login process
//Check the color and coordinate of Dice Roloer (center dot), World Map Opener (Center of W) >> Both are located left to the mini map
// You have to place your mini map at the right most top (please check the coordinates if not working)
while_not 1771, 51 9532025 and 1761, 103 10267309
// This is just to be on a safe side, this will click the cancel button if there is "Would you like to exit the game windows (if ESC button was pressed while on login mode)" if not then it will just click on a blank space.
move 1028, 340
left 1028, 340
wait 2s
// Click on the right most side of the User Name text box
move 1036, 672
left 1036, 672
wait 1s
// Delete everything that is already there (when some micro running, it does not know user is loged out so there will be some garbage text)
send {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace}
Wait 2s
//User Name
send username
wait 2s
// Click on the right most side of the Password text box
move 1030, 704
left 1030, 704
wait 1s
send {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace} {Backspace}
send password
wait 2s
send {Enter}
wait 5s
//Choose world
left 956, 660
wait 10s
//Choose Channel (PVP)
move 947,620
left 947, 620 //Double left click does not work
left 958, 700 //Click on select
wait 5s
// Click on the char (My char is on the left most side so it always works, if you have multiple characters then you have to provide the exact X & Y Coordinates of your char)
double_left 620,615
wait 2s
// ***************** Click on PIN Numbers
// ******** Number 1 and 8 Does not work so don't include 1 and 8 in your pin code ***********
//***
for #i 0 3 1 //PIN has 4 numbers so loop runs 4 times
//Set the values between the number (vertical and horizental, I have manually measured it)
set #right 61 // Go to the right side
set #down 34 // Go Down
set #color 12507614 //Color of the numbers
//********************************************************************
// If your pin is 2739, copy four sets of values of x,y for 2, 7, 3, 9
// You don't need all values of x, y for 0,1,2,3,4,5,6,7,8,9
// Remember number 1 and 8 does not work
//********************************************************************
//************* for 2
if #i = 0 //This is your first pin number (2)
set #x1 865
set #y1 457
set #x2 870
set #y2 457
set #x3 864
set #y3 462
set #x4 870
set #y4 462
end_if
//********for 7
if #i = 1 //This is your second pin number (7)
set #x1 864
set #y1 458
set #x2 870
set #y2 455
set #x3 867
set #y3 461
set #x4 865
set #y4 465
end_if
// ********** for 3
if #i = 2
set #x1 865
set #y1 457
set #x2 866
set #y2 460
set #x3 870
set #y3 462
set #x4 865
set #y4 463
end_if
//********* for 9
if #i = 3
set #x1 863
set #y1 458
set #x2 867
set #y2 455
set #x3 869
set #y3 462
set #x4 865
set #y4 465
end_if
//*********** Running another loop to check the number for row and coloum
for #j 0 9 1 //It checks all the numbers to match our each pin number
// If the number matches it click on that number
if #x1 , #y1 #color and #x2,#y2 #color and #x3,#y3 #color and #x4,#y4 #color
move #x1 , #y1 //Move mouse to this coordinate
//click on that button
//****************************************************************************
// You have to uncomment this line for bot to work
// It won't click on the number until you uncomment
// Three times wrong pin will unlock your character
// Please run this code to see if it works before uncommenting this line
// It will just move the mouse to the number so you will know if it works
//left #x1, #y1 //*** Uncomment this line
//****************************************************************************
break //If number found then no need to check that number just check another number
end_if
//(second, third and fourth num pad) Increament right
if #j = 0 or #j = 1 or #j = 2
set #x1 #x1 + #right
set #x2 #x2 + #right
set #x3 #x3 + #right
set #x4 #x4 + #right
end_if
// After finished with right (row) need to check the down box
if #j = 3 or #j = 4
set #y1 #y1 + #down
set #y2 #y2 + #down
set #y3 #y3 + #down
set #y4 #y4 + #down
end_if
//After right and down then go to left
if #j = 5 or #j = 6 or #j = 7
set #x1 #x1 - #right
set #x2 #x2 - #right
set #x3 #x3 - #right
set #x4 #x4 - #right
end_if
if #j = 8 or #j = 9
set #y1 #y1 - #down
set #y2 #y2 - #down
set #y3 #y3 - #down
set #y4 #y4 - #down
end_if
end_for //End for loop for J
end_for //End for loop for I
//** End of Click on PIN Numbers
//Wait until games loged in
wait 1m
end_while
//Control comes here when successfully Login //When it succssfully see the color of Dice Roloer, World Map Opener (W) ** Left to the mini map
//You can write other macro or control go back to check if user loged out
end_if //Close of end if which is checking if user loged out
end_repeat
Copy the required code from here for your PIN number and replace with the above code.
Keep in mind that number 1 and 8 don't work, so please do not include 1 and 8 in your PIN.
Code:
//************* for 0
set #x1 863
set #y1 459
set #x2 867
set #y2 455
set #x3 870
set #y3 459
set #x4 866
set #y4 462
//********* for 2
set #x1 865
set #y1 457
set #x2 870
set #y2 457
set #x3 864
set #y3 462
set #x4 870
set #y4 462
// ********** for 3
set #x1 865
set #y1 457
set #x2 866
set #y2 460
set #x3 870
set #y3 462
set #x4 865
set #y4 463
//********* for 4
set #x1 864
set #y1 462
set #x2 868
set #y2 455
set #x3 871
set #y3 462
set #x4 869
set #y4 463
//************** for 5
set #x1 870
set #y1 455
set #x2 865
set #y2 460
set #x3 870
set #y3 462
set #x4 864
set #y4 463
//********* for 6
set #x1 869
set #y1 452
set #x2 863
set #y2 458
set #x3 870
set #y3 460
set #x4 866
set #y4 462
//********* for 7
set #x1 864
set #y1 458
set #x2 870
set #y2 455
set #x3 867
set #y3 461
set #x4 865
set #y4 465
//********* for 9
set #x1 863
set #y1 458
set #x2 867
set #y2 455
set #x3 869
set #y3 462
set #x4 865
set #y4 465