Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Oct 22, 2014 4:44 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Wartune macro help.
Thanked: 0 time(s)  Unread post Posted: Sat Nov 23, 2013 1:09 am 
New User
New User



Joined: Fri Nov 15, 2013 6:32 am
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
Hello BE Community, I'm requesting some help with a "sylph farm" macro, for the game Wartune.

Basically, what I need is to have my mouse detect when there's one in the map, hover the mouse over it, click it and engage battle. Here I attach some screen shots to show what I need to do:
Attachment:
File comment: Those are the sylphs
Sketch1.png
Sketch1.png [ 1.27 MiB | Viewed 1449 times ]


Attachment:
File comment: Hovering mouse over them changes it to a sort of hand.
Sketch2.png
Sketch2.png [ 1.27 MiB | Viewed 1449 times ]


Attachment:
File comment: Caution that hovering over players changes it to a hand, but pointing to them.
Sketch3.png
Sketch3.png [ 1.26 MiB | Viewed 1449 times ]


Attachment:
File comment: Here is the "collecting" animation, which leads to a chance for a safe collect (low chance) or engage in battle.
Sketch4.png
Sketch4.png [ 1.3 MiB | Viewed 1449 times ]


Attachment:
File comment: This is the after battle message.
Sketch5.png
Sketch5.png [ 1.28 MiB | Viewed 1449 times ]


Attachment:
File comment: This is the safe collect (no battle) message.
Sketch6.png
Sketch6.png [ 1.21 MiB | Viewed 1449 times ]


At the times it engages in battle, I can do pixel recognition to automatically do the skills, but I can't find a safe way to recognize the "sylphs" floating there.

There is no hotkey to target them, such as tab or anyother, which kind of makes it hard for me to figure a way.

Again, I'd appreciate any suggestions and ideas for it, if there's something not clear enough, I will be glad to try and make it clearer, just let me know.

One last thing, excuse me if I messed up something, english is not my native language, feel free to correct me.

Thank you all a lot for your help.


Top
 Profile  
Reply with quote  
 Post subject: Re: Wartune macro help.
Thanked: 0 time(s)  Unread post Posted: Thu Nov 28, 2013 10:34 pm 
Developer
Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4472
Been thanked: 783 time(s)
Has thanked: 118 time(s)
Contribution Points: 31724
The mouse cursor which is shown when you hover the mob, is that unique? or does it look the exact same when you hover something else?

Im thinking about possibly reading the type of cursor currently shown from memory, that would let us know if we currently have the mouse on a potential target.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Wartune macro help.
Thanked: 0 time(s)  Unread post Posted: Thu Nov 28, 2013 11:01 pm 
New User
New User



Joined: Fri Nov 15, 2013 6:32 am
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
The mouse cursor is unique when on that map, except when hovering over other players as shown, which looks like pointing at them.

If I remember correctly, it looks the same when on a farm (nothing to do there).

I have managed to do my best effort with pixel recognition but it fails quite often, probably works 70% of the time.

Thanks for your help and time.

Attachment:
File comment: EDIT; Here's the same icon at the farm, but to get there you have to leave that map, so no worries there (I think?)
Farm Icon.png
Farm Icon.png [ 1.19 MiB | Viewed 1390 times ]


Top
 Profile  
Reply with quote  
 Post subject: Re: Wartune macro help.
Thanked: 0 time(s)  Unread post Posted: Mon Dec 02, 2013 4:52 pm 
Developer
Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4472
Been thanked: 783 time(s)
Has thanked: 118 time(s)
Contribution Points: 31724
I was hoping we could use the mouse cursor to determine if we should click at its current location, like the macro could move the mouse in a pattern to sorta scan the entire window for things to click on, but if the cursor dont change, that wont work.

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Wartune macro help.
Thanked: 0 time(s)  Unread post Posted: Mon Dec 02, 2013 8:44 pm 


Maybe I didn't explain myself good enough, the mouse cursor is the default mouse arrow the whole time, except when hovering over the "sylphs" which turns into that "grab hand" and when hovering over player, which turns into the "point hand"


Top
  
Reply with quote  
 Post subject: Re: Wartune macro help.
Thanked: 0 time(s)  Unread post Posted: Wed Dec 04, 2013 12:43 am 
Developer
Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4472
Been thanked: 783 time(s)
Has thanked: 118 time(s)
Contribution Points: 31724
Alright that would be a good way to detect what your currently pointing at then.

In memory the different cursors are probably stored as 0, 1, 2, 3 etc. depending on how many different cursors there are - a few quick searches with cheat engine should get you the addresses.
Try finding it in memory using cheat engine, if you can find it, then try to locate the base pointers (there are several good youtube videos showing how to, including one I made myself)

_________________
Blue Eye - Developer / Moderator
Code:
Gigus


Please read the rules about contribution points - click here

Do you know everything about BE, the forum, licenses and contribution points?
Please take a minute to read this introduction & guidelines.


Top
 Profile  
Reply with quote  
 Post subject: Re: Wartune macro help.
Thanked: 1 time(s)  Unread post Posted: Fri Jan 03, 2014 4:08 am 
New User
New User



Joined: Fri Jan 03, 2014 3:41 am
Posts: 4
Location: Denmark
Been thanked: 1 time(s)
Has thanked: 1 time(s)
Contribution Points: 110
lazyman did a macro for wartune that works for farming both iris and pan.
It basically checks for the red color heading of the sylph, moves the coordinates a bit down to the right and makes a mouse click.
The full macro has a battle screen part of it as well.
I personally dont like that part and have made an edited version that works on my monitor (1920x1080) when browser is maximized.

viewtopic.php?f=43&t=16231


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

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:  


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