Blue Eye Logo

Blue Eye Macro

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

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: potion macro ( from memory)
Thanked: 1 time(s)  Unread post Posted: Thu Nov 25, 2010 4:37 pm 
New User
New User



Joined: Thu Jun 10, 2010 4:32 pm
Posts: 16
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 156
Here’s an alternative pot macro that will work in windowed mode as well as full screen although I have only tried it on one server( soma dev test server) so the base pointers may be different on other servers in which case you would have to find them using cheat engine. If you want full screen replace “somawindow” with “SomaFull”

Also remember you need to add the variable names to the variables box in the bottom left hand corner of create a macro.

Code:
Hp bot script

begin loop()
     Macro.Pause("300")
     Memory.Get value("SomaWindow", "SomaWindow.exe+2E6710,278,240", "4", "currentHP")
     Memory.Get value("SomaWindow", "SomaWindow.exe+2E6710,278,244", "4", "maxHP")
     Variable.Evaluate (Math)("({currentHP} / {maxHP}) * 100", "HPpercentage")
     if  Variable.Is less than (Math)("HPpercentage", "60")
          begin
               Keyboard.Press key("{<f1>}")
          end
 end


Mp bot script

begin loop()
     Macro.Pause("300")
     Memory.Get value("SomaWindow", "SomaWindow.exe+2E6710,278,248", "4", "currentMP")
     Memory.Get value("SomaWindow", "SomaWindow.exe+2E6710,278,24c", "4", "maxMP")
     Variable.Evaluate (Math)("({currentMP} / {maxMP}) * 100", "MPpercentage")
     if  Variable.Is less than (Math)("MPpercentage", "50")
          begin
               Macro.Pause("300")
               Keyboard.Press key("{<f2>}")
          end
 end


Top
 Profile  
Reply with quote  
 Post subject: Re: potion macro ( from memory)
Thanked: 0 time(s)  Unread post Posted: Thu Nov 25, 2010 5:13 pm 
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
Well done :)

This is way better than using pixel analysis to determine when to use a pot!

Any chance you could also submit this macro to the repository please?

_________________
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: potion macro ( from memory)
Thanked: 0 time(s)  Unread post Posted: Thu Nov 25, 2010 9:06 pm 
New User
New User



Joined: Thu Jun 10, 2010 4:32 pm
Posts: 16
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 156
I've submitted the macro's to the repository I did try have mp and hp monitored in 1 macro but it seemed to lag for me so I separated them into 2 macro's and added pauses which made the macro’s much smoother, also your video on how to find base pointers was very helpful and now I understand cheat engine I will start attempting more macro’s for soma.


Top
 Profile  
Reply with quote  
 Post subject: Re: potion macro ( from memory)
Thanked: 0 time(s)  Unread post Posted: Thu Nov 25, 2010 10:03 pm 
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
Separating them in to two macros will also check for both mp and hp at the same time, so yea, that will probably be the best solution.

I'm glad you found the video useful!

And thank you for submitting them to the repository, it does make it a lot easier for others to benefit from them as well :)

_________________
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: potion macro ( from memory)
Thanked: 0 time(s)  Unread post Posted: Tue May 01, 2012 5:18 pm 


where do I paste this on?


Top
  
Reply with quote  
 Post subject: Re: potion macro ( from memory)
Thanked: 0 time(s)  Unread post Posted: Tue Sep 15, 2015 10:13 pm 
New User
New User



Joined: Tue Sep 15, 2015 9:51 pm
Posts: 8
Been thanked: 0 time(s)
Has thanked: 3 time(s)
Contribution Points: 25
Works perfect for me, Thanks :D


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