Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 7:30 pm

All times are UTC




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Basic Macro for Melee/Range Range/Melee classes
Thanked: 2 time(s)  Unread post Posted: Thu Feb 06, 2014 4:37 pm 
New User
New User



Joined: Thu Feb 06, 2014 4:28 pm
Posts: 16
Been thanked: 4 time(s)
Has thanked: 0 time(s)
Contribution Points: 64
Hello guys! New here and noticed this part of the forums is fairly fresh and still needs a few contributions to get it kicking and running.

This is my basic script to safely macro-away in this game, nothing fancy or anything yet.. still learning the ropes with the codes and all.. expect me to whip up something a little more complex in the long run though! which will HOPEFULLY include valuable treasure chest clicking and selling ( although I believe these requires pixel recognizers and is very user-dependent in terms of resolution )

but enough chit-chat here's my script : (I tried to make it as understandable as possible, if you have any questions or requests please send me a message through my inbox...also, I'll post the script along with my own personal skills, please edit to your needs.)

Edit: Ver. 1.1 - modified code to include HP detector with active window checker -

HP Investigate Area

Heres an image of the area where you'll need to click on using the investigator tool Image , it's totally personal preference but this area worked for me given the damage I deal with my skills.


Image

Code:
 begin
     Function.Execute("Check")
     if  Window.Title of active window is("Aura Kingdom Online", "Yes")
          begin
               Function.Execute("Target")
          end
 end

function("Target")
     // use the investigate tool to look up the coordinates for the enemy's HP bar, preferrably around 20% to insure it kills it before switching
     if  Color.At coordinate is not (RGB)("", "", "", "", "")
          begin
               Keyboard.Hold keys("{<tab>}")
               Humanly.Pause("100", "200")
               Keyboard.Release keys("{<tab>}")
               Function.Execute("{Movement}")
               Humanly.Pause("100", "200")
          end
function
     // same coordinates as what you investigated above
 if  Color.At coordinate is (RGB)("", "", "", "", "")
     begin
          Function.Execute("Attack")
     end

function("Attack")
     // same coordinates as what you investigated above -- you cant use the investigator on this one so just type the same coords
     while  Color.At coordinate is (RGB)("", "", "", "", "")
          begin
               Function.Execute("Movement")
               Keyboard.Press key("1")
               Keyboard.Press key("2")
               Keyboard.Press key("6")
               Keyboard.Press key("7")
               Keyboard.Press key("5")
               Macro.Pause("200")
          end
function

function("Movement")
     // random movement generator to make you less suspicious
     begin
          Variable.Set random text("Movement", "1", "w,a,s,d,q,e")
          Keyboard.Hold keys("{Movement}")
          Humanly.Pause("100", "200")
          Keyboard.Release keys("{Movement}")
     end
function

function("Check")
     // active window checker so the macro stops if you alt-tabbed out of the game
     begin
          if  Window.Title of active window is not("Aura Kingdom Online", "Yes")
               begin
                    Macro.Abort()
               end
     end
function
 


Suggestions to improve it are most welcome! It's all about the learning experience for me~ also don't forget to hit thanks if it helped you in anyway!

Edit:

Modified according to your suggestions, hope its understandable now and less "clutter-ish". I used less functions this time. :D


Last edited by Xhinigami on Sun Feb 23, 2014 7:27 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 1 time(s)  Unread post Posted: Thu Feb 06, 2014 8:24 pm 
Moderator
Moderator



Joined: Tue Feb 05, 2013 5:45 am
Posts: 280
Been thanked: 50 time(s)
Has thanked: 11 time(s)
Contribution Points: 5372
Thanks for the share. I always prefer learning from an experience and sharing is caring :)

Some suggestions from my perspective :)

>> Looks like you are over using functions, u can put those codes nicely together without loosing it's performance.

>> You can use   Humanly.Pause("100", "200") instead of the pause function.

>> I don't know the mechanism of the game but
* You have to make sure the target is selected (press Tab until it is selected).
* You have to wait until you kill the selected target (by checking target's Hp)
* Repeat the same task.

_________________
Heavy Duty Mod, always watching with both eyes open 8-)

Please --- Please --- Please DO NOT reply to spam thread/post.
I will give you CP if you report spam thread/post instead of replying to it. :)

Click Here>> Let's make BEM forum out of spammers

-------------------------
Check out my Bots
-------------------------

Auto login to the game


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Fri Feb 07, 2014 2:57 am 
New User
New User



Joined: Thu Feb 06, 2014 4:28 pm
Posts: 16
Been thanked: 4 time(s)
Has thanked: 0 time(s)
Contribution Points: 64
Thanks for the insight! I kind of wanted to have each specific function have its own section since I just wanted it to use specific skills instead of everything from 1-9 , ctrl+1-9 , alt+1-9.

for the pause function, I was kind of thinking of reworking it to have a human pause ( which you suggested, TY btw! ) and a "skill pause" or a pause before each skill/key is pressed. I've had the game crash on me when it didnt have a delay on the presses so I'm trying to figure out the workaround it.

As for the targeting a mob, we have eidolons ( combati A.I partners, like Prans in Aika. ) that auto-aggro whatever you hit or hits you, and usually they tend to finish off the mob by the time the macro switches to a next target or they kill the first target before moving to the next.


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Sat Feb 08, 2014 3:38 pm 
New User
New User



Joined: Tue Feb 04, 2014 10:25 am
Posts: 18
Been thanked: 2 time(s)
Has thanked: 5 time(s)
Contribution Points: 36
GJ for the mouse movement ;D was wondering how to do it


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Mon Feb 10, 2014 1:54 am 
New User
New User



Joined: Thu Feb 06, 2014 4:28 pm
Posts: 16
Been thanked: 4 time(s)
Has thanked: 0 time(s)
Contribution Points: 64
Glad it helped a bit, I will be working on an updated version of this soon, been swamped with IRL stuff and finally now have time to explore BEM again.


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Mon Feb 10, 2014 6:45 am 
New User
New User



Joined: Tue Feb 04, 2014 10:25 am
Posts: 18
Been thanked: 2 time(s)
Has thanked: 5 time(s)
Contribution Points: 36
bah I got just that simple macro for hunting I asked other ppl 2 help me input a command to press q or e if no target if i manage 2 put it in it will be the perfect simple killing bot and then just put it 1 more thing and it will be perfect :) do fell 2 help,ur code is nice but 2 complicated for me xD


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 1 time(s)  Unread post Posted: Sun Feb 23, 2014 6:37 pm 
New User
New User



Joined: Fri Apr 20, 2012 11:23 pm
Posts: 27
Been thanked: 5 time(s)
Has thanked: 5 time(s)
Contribution Points: 45
thanks share..very helpul :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Sun Feb 23, 2014 7:29 pm 
New User
New User



Joined: Thu Feb 06, 2014 4:28 pm
Posts: 16
Been thanked: 4 time(s)
Has thanked: 0 time(s)
Contribution Points: 64
Updated with a modified version!

as always suggestions on how to improve it is most welcome~ ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Mon Feb 24, 2014 1:30 pm 
Silver Contributor
Silver Contributor



Joined: Wed Feb 05, 2014 2:29 am
Posts: 241
Been thanked: 30 time(s)
Has thanked: 3 time(s)
Contribution Points: 211
here you can learn much from the pros :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Basic Macro for Melee/Range Range/Melee classes
Thanked: 0 time(s)  Unread post Posted: Mon Feb 24, 2014 2:59 pm 
Gold Contributor
Gold Contributor



Joined: Tue Oct 29, 2013 11:36 pm
Posts: 405
Been thanked: 16 time(s)
Has thanked: 19 time(s)
Contribution Points: 63
THX BEM RULES!!!!!

_________________
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group