BBot - The best bot of the world
Inmortal Macro [Energy Ring] - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Free Scripts (https://forums.bmega.net/forum-10.html)
+--- Thread: Inmortal Macro [Energy Ring] (/thread-18890.html)



Inmortal Macro [Energy Ring] - Mexes - 12-06-2015

Hello Guys, I Bring My First Macro For BBot. I Hope You Like It Smile

500
{Inmortal}
Self.Health%<=50 [jump]
Self.Equip.Ring(3051)
Exit()
Self.Health%<=90
{jump}
Self.UnEquip.Ring(0)
Exit()


RE: Inmortal Macro [Energy Ring] - byko - 12-07-2015

Rep given


RE: Inmortal Macro [Energy Ring] - Mexes - 12-07-2015

(12-07-2015, 01:28 PM)byko Wrote: Rep given

Thanks!


RE: Inmortal Macro [Energy Ring] - Fury - 12-13-2015

Hm... it wear ring whe i have 90% hp and less. It should wear when 50%?


RE: Inmortal Macro [Energy Ring] - Catar - 12-14-2015

Edit: better macro here:
Equip Energy ring or Might ring depending on Health



I made a better one macro for that some time ago.

It consideres if u have enough mana to be able to heal after u take off ur ring.
It also Puts back ring u want (ZM variable) to use beside energy

Code:
CurHP:=Self.Health%()
coR:=Self.inventory.Ring()

ZM:=3052
MinHP:=45
MaxHP:=95
MinMana:=300



!CurHP!<!MinHP!
[need]
      !coR!<>3088
        [zaklada]
        Self.Equip.Ring(3051)
    exit()
    
    {zaklada}
    exit()

{need}
!CurHP!>=!MaxHP!
Self.Mana>=!MinMana!
!coR!==3088

Misc.ItemCountEx(!ZM!)>=1    
        [zmiana]
        Self.Equip.Ring(!ZM!)
        exit()
        {zmiana}
        Self.UnEquip.Ring(0)
        exit()


exit()
To be clear I made it in Notepad, havent actually test it on any higher level MS/ED because i don't have any.
I was starting getting know BBOT macro language, and I made this when I was bored Smile


RE: Inmortal Macro [Energy Ring] - Mexes - 12-15-2015

(12-13-2015, 04:04 PM)Fury Wrote: Hm... it wear ring whe i have 90% hp and less. It should wear when 50%?

wear ring on 50% hp and remove on 90%