BBot - The best bot of the world
EQUIP IMBUIE x % HP and UnEquip for NO IMBUIE ITEM in x % HP - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: EQUIP IMBUIE x % HP and UnEquip for NO IMBUIE ITEM in x % HP (/thread-21232.html)



EQUIP IMBUIE x % HP and UnEquip for NO IMBUIE ITEM in x % HP - mostppl - 11-22-2020

Example:

Total HP IS: 7000

lower HP 3500 <= UP Imbui Armor
above HP 6500 => UnEquip Imbui Armor and UP Normal Armor ( no imbui )

IS POSSIBLE?

Thank !!!!

I TEST:

[ IMBUI ITEM UP ]
200 {eq} HP:=Self.Health%() !HP!<=50 Self.Equip.Armor(3399) Exit()

[ IMBUI ITEM DOWN ]
200 {unq} HP:=Self.Health%() !HP!>=51 Self.UnEquip.Armor(3399) Exit()

[ NORMAL ITEM BUG Sad ]
200 {eq} HP:=Self.Health%() !HP!>=52 Self.Equip.Armor(16110) Exit() <----- THIS MACRO UP AND DOWN ITEM AUTOMATIC IN LOOP ( I NEED TO PUT ARMOR IN SLOT AND NO MOVE MORE IF HP IS ABOVE 52%)


RE: EQUIP IMBUIE x % HP and UnEquip for NO IMBUIE ITEM in x % HP - doxmey - 11-23-2020

(11-22-2020, 12:24 AM)mostppl Wrote: Example:

Total HP IS: 7000

lower HP 3500 <= UP Imbui Armor
above HP 6500 => UnEquip Imbui Armor and UP Normal Armor ( no imbui )

IS POSSIBLE?

Thank !!!!

I TEST:

[ IMBUI ITEM UP ]
200 {eq} HP:=Self.Health%() !HP!<=50 Self.Equip.Armor(3399) Exit()

[ IMBUI ITEM DOWN ]
200 {unq} HP:=Self.Health%() !HP!>=51 Self.UnEquip.Armor(3399) Exit()

[ NORMAL ITEM BUG Sad ]
200 {eq} HP:=Self.Health%() !HP!>=52 Self.Equip.Armor(16110) Exit() <----- THIS MACRO UP AND DOWN ITEM AUTOMATIC IN LOOP ( I NEED TO PUT ARMOR IN SLOT AND NO MOVE MORE IF HP IS ABOVE 52%)

Well you're missing the function to check if the item is already equipped.

Code:
200 {eq} Self.Health%()>=52 Self.Inventory.Armor<>16110 Self.Equip.Armor(16110) Exit()

Do the same for the rest of your macros, or else it will equip and unequip the item nonstop.

And yes it's possible.

Code:
200 {SwitchArmor By DOX} Self.Health()<=3500 [else] Self.Inventory.Armor()<>IMBUARMORID Self.Equip.Armor(IMBUARMORID) Exit()  {else} Self.Health()>=6500 Self.Inventory.Armor()<>NOIMBUARMORID Self.Equip.Armor(NOIMBUARMORID) Exit()

REP UP IF THIS HELPED YOU


RE: EQUIP IMBUIE x % HP and UnEquip for NO IMBUIE ITEM in x % HP - mostppl - 11-24-2020

(11-23-2020, 10:01 PM)doxmey Wrote:
(11-22-2020, 12:24 AM)mostppl Wrote: Example:

Total HP IS: 7000

lower HP 3500 <= UP Imbui Armor
above HP 6500 => UnEquip Imbui Armor and UP Normal Armor ( no imbui )

IS POSSIBLE?

Thank !!!!

I TEST:

[ IMBUI ITEM UP ]
200 {eq} HP:=Self.Health%() !HP!<=50 Self.Equip.Armor(3399) Exit()

[ IMBUI ITEM DOWN ]
200 {unq} HP:=Self.Health%() !HP!>=51 Self.UnEquip.Armor(3399) Exit()

[ NORMAL ITEM BUG Sad ]
200 {eq} HP:=Self.Health%() !HP!>=52 Self.Equip.Armor(16110) Exit() <----- THIS MACRO UP AND DOWN ITEM AUTOMATIC IN LOOP ( I NEED TO PUT ARMOR IN SLOT AND NO MOVE MORE IF HP IS ABOVE 52%)

Well you're missing the function to check if the item is already equipped.

Code:
200 {eq} Self.Health%()>=52 Self.Inventory.Armor<>16110 Self.Equip.Armor(16110) Exit()

Do the same for the rest of your macros, or else it will equip and unequip the item nonstop.

And yes it's possible.

Code:
200 {SwitchArmor By DOX} Self.Health()<=3500 [else] Self.Inventory.Armor()<>IMBUARMORID Self.Equip.Armor(IMBUARMORID) Exit()  {else} Self.Health()>=6500 Self.Inventory.Armor()<>NOIMBUARMORID Self.Equip.Armor(NOIMBUARMORID) Exit()

REP UP IF THIS HELPED YOU

Thank BRO! I Give Rep +