Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Nov 23, 2024 9:15 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: HP&Stamina (Windowed) (Memory)
Thanked: 0 time(s)  Unread post Posted: Wed Feb 22, 2012 1:09 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Wed Feb 08, 2012 10:22 am
Posts: 117
Been thanked: 6 time(s)
Has thanked: 0 time(s)
Contribution Points: 393
I created this simple HP and Stamina macro to run alongside my bot.

It pots using memory and will switch stamina automatically.

Code:
 begin
     Variable.Set("StaminaSwitch", "0")
     Variable.Set("HPPots", "17")
 end
 begin loop()
     Memory.Get value("SomaWindow", "006d8600,254", "4", "Stamina")
     Memory.Get value("SomaWindow", "006d8600,240", "4", "HP")
     if  Variable.Is equal to("StaminaSwitch", "0")
          begin
               if  Variable.Is less than (Math)("Stamina", "15")
                    begin
                         Variable.Set("StaminaSwitch", "1")
                         Keyboard.Press key("{<lcontrolkey>}")
                    end
          end
     if  Variable.Is equal to("StaminaSwitch", "1")
          begin
               if  Variable.Is greater than (Math)("Stamina", "900")
                    begin
                         Variable.Set("StaminaSwitch", "0")
                         Keyboard.Press key("{<lcontrolkey>}")
                    end
          end
     if  Variable.Is less than (Math)("HP", "400")
          begin
               Macro.Do nothing()
               begin loop("{HPPots}")
                    Macro.Pause("300")
                    Keyboard.Press key("{<f4>}")
               end
          end
 end
 


Top
 Profile  
Reply with quote  
 Post subject: Re: HP&Stamina (Windowed) (Memory)
Thanked: 0 time(s)  Unread post Posted: Wed Feb 29, 2012 12:37 pm 
Contributor
Contributor



Joined: Tue Feb 28, 2012 11:21 am
Posts: 64
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 30
What is the purpose of it switching to stamina?
Is this so u can continue to globally shout?


Top
 Profile  
Reply with quote  
 Post subject: Re: HP&Stamina (Windowed) (Memory)
Thanked: 0 time(s)  Unread post Posted: Wed Feb 29, 2012 12:54 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Wed Feb 08, 2012 10:22 am
Posts: 117
Been thanked: 6 time(s)
Has thanked: 0 time(s)
Contribution Points: 393
if AFK and you run out of stamina it will make you run again once stamina is near full.


Top
 Profile  
Reply with quote  
 Post subject: Re: HP&Stamina (Windowed) (Memory)
Thanked: 0 time(s)  Unread post Posted: Wed Feb 29, 2012 1:19 pm 
Contributor
Contributor



Joined: Tue Feb 28, 2012 11:21 am
Posts: 64
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 30
Ok Fair enough.


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