Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Nov 23, 2024 9:46 am

All times are UTC




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Mon Aug 08, 2011 8:37 am 
Active User
Active User



Joined: Mon Aug 01, 2011 2:45 pm
Posts: 40
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 410
Need help with finding monsters to auto attack but i have the basics started also need help with going through portals so it doesn't telly you to the safe spot and close the game but this is what i have so far

It will auto pot while you fight when you run out of pots it will press F6 (for a wing or key to telly to town) end the game and stop the macro

Ill add more to it if someone can help me figure out how to target monsters or loot gold or walk to the shop for more pots feel free to edit it

Code:
 if  Color.At coordinate is not (RGB)("255", "0", "0", "125", "28")
     // Color of Hp bar 50%+
     begin
          Keyboard.Press keys("{<F7>}")
          Macro.Pause("50")
          Keyboard.Release keys("{<F7>}")
     end
 if  Color.At coordinate is not (RGB)("82", "132", "255", "33", "45")
     // Color of Mp bar 15%+
     begin
          Keyboard.Hold keys("{<F8>}")
          Macro.Pause("50")
          Keyboard.Release keys("{<F8>}")
     end
 if  Color.At coordinate is not (RGB)("57", "173", "255", "1011", "730")
     or
     Color.At coordinate is not (RGB)("214", "173", "214", "975", "729")
     // Hp and Mp pot in Quick Slot
     begin
          Keyboard.Hold keys("{<F6>}")
          Macro.Pause("5000")
          Keyboard.Press key("{<Esc>}")
          Mouse.Click at coordinate("547", "114", "Left")
          // Position of End Game
          Macro.Pause("50")
          Mouse.Click at coordinate("557", "412", "Left")
          // Position of Yes
          Keyboard.Hold keys("{<Ctrl>}b")
     end
 


Last edited by zyphyr on Mon Aug 08, 2011 8:46 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Mon Aug 08, 2011 10:43 am 
Partner / Developer
Partner / Developer
User avatar



Joined: Mon Jan 18, 2010 11:51 am
Posts: 4525
Been thanked: 1346 time(s)
Has thanked: 133 time(s)
Contribution Points: 33209
Nice work, which screen resolution is this macro made for?

_________________
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: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Mon Aug 08, 2011 8:19 pm 
Active User
Active User



Joined: Mon Aug 01, 2011 2:45 pm
Posts: 40
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 410
Well my laptop says 1366 by 768 pixels
but screen shots come out at 1024 by 768 pixels but i think that's what you asked for

and thanks for the help yesterday =D

Is there a function to search the screen for a color or like 3 points of color so it wont mistake someones equip as the monster then it scans across the screen for those pixel's


Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Mon Aug 08, 2011 9:48 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Sun Feb 07, 2010 9:11 pm
Posts: 207
Been thanked: 5 time(s)
Has thanked: 19 time(s)
Contribution Points: 5596
I'm not sure it's this you are looking for, but take a look at:

http://blueeye-macro.com/viewtopic.php?f=162&t=307

and else look at:

http://blueeye-macro.com/viewforum.php?f=162

There you can see all the documentation for color. I have found that really useful, and I hope that can take you a step further.

_________________
Code:
Martin

Full-time Macroholic


Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Thu Aug 11, 2011 2:14 am 
Active User
Active User



Joined: Mon Aug 01, 2011 2:45 pm
Posts: 40
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 410
Well... that helped with another project im working on but it didn't work out too well for trickster mabye im doing something wrong but it could be cuz the monsters turn in like 8 directions so the paturn can't be found i got it working on a blue monster with only 1 (RGB) listed but i can't get it working on most monsters if someone needs i can post a screen shot of a monster so someone can gimme a example how to let BEM scan for it...

Thanks to the last poster the 2nd link helped understand BEM alot better

( Can't post screen shot for about 8 hrs as the game patch's every Wednesday )


Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Thu Aug 11, 2011 7:17 am 
Silver Contributor
Silver Contributor
User avatar



Joined: Sun Feb 07, 2010 9:11 pm
Posts: 207
Been thanked: 5 time(s)
Has thanked: 19 time(s)
Contribution Points: 5596
I'm glad I could help :).

Sure try to post a screenshot when the maintenances is over!

_________________
Code:
Martin

Full-time Macroholic


Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Thu Aug 11, 2011 10:59 am 
Active User
Active User



Joined: Mon Aug 01, 2011 2:45 pm
Posts: 40
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 410
http://img855.imageshack.us/img855/6852 ... xample.png

There's the screen shot with a few monsters in it if you wouldn't mind helping me get it to click on them i can handle the skills

i did find a way to make a buff attack using
chi ( makes bigger range sword )
and
Zerker ( Makes them hit any target in range for like 15~20 seconds with 10 second cool down time )

only problem with that is only a pure buff 170tm+ could do it and you don't pick up anything

Can make 2~3 million a hr if i could get it picking up


Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Thu Aug 11, 2011 12:16 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Sun Feb 07, 2010 9:11 pm
Posts: 207
Been thanked: 5 time(s)
Has thanked: 19 time(s)
Contribution Points: 5596
Well I just tried to locate the "monster" on the screenshot you just uploaded.

I could locate it with the following:

Code:
 begin
     when  Color.Pixel pattern can be located on screen("255,235,211,-3,-1,255,235,211,0,-3,242,234,211,4,0,242,242,242,2,-3,255,246,211,-2,0,255,246,211,5,3,255,235,211,-3,4,255,235,211,0,4,255,235,211", "2")
          begin
               Mouse.Click("Right")
          end
 end


This is just a stupid example, but it works - so when the mob appears on the screen it start to right click :p

Now I have only tested it on a screenshot (becauseI haven't the game installed), so maybe it wouldn't work out ingame, because I don't know if the mob is affected by night / day light or even what direction the mob is looking at.

So to be honest the only thing you can use from this example is just:

Code:
 when Color.Pixel pattern can be located on screen()


And then you should use Investigator to create a pixel pattern - I clicked a few different places in the mobs face. But you can try some different places and see what works best for you!

Another thing is, I used a ranged of 2 - again try out what works best.

I hope this can get you started! Good luck :)

_________________
Code:
Martin

Full-time Macroholic


Top
 Profile  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Thu Aug 11, 2011 11:13 pm 


hmm k... i found that function today messing around with it trying to make some macro for millionair city (facebook game) cuz some friend asked but yea... the mob changes direction and gets darker as it turns night time... i got one currently whacking away at tree's but at night it stops so i think its gonna be hard to figure something out without making the range too big then it clicks all over the place i did however set a nite time and a day time and just have the macro press the shortcut if the color at cords (where the sun is turns to a moon) so it swich's over to scan for the corect colors for that time period ill probably update it later if it works out as planed

still a work in progress wish there was a tab key function like in eden...


Top
  
Reply with quote  
 Post subject: Re: Hp Mp auto pot + telly to safe spot & close game
Thanked: 0 time(s)  Unread post Posted: Mon Aug 15, 2011 8:59 am 
Silver Contributor
Silver Contributor
User avatar



Joined: Sun Feb 07, 2010 9:11 pm
Posts: 207
Been thanked: 5 time(s)
Has thanked: 19 time(s)
Contribution Points: 5596
Aww, but yes that would be a good work around. It's gonna be nice to see what you come up with :)

Yes the tab key is always a life saver ;D - Well I also hate when you can't use the tab key in those kind of games, even when you are not botting!

_________________
Code:
Martin

Full-time Macroholic


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 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:  


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