BBot - The best bot of the world
Turn off Attacker when 2 royal spears - 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: Turn off Attacker when 2 royal spears (/thread-18335.html)



Turn off Attacker when 2 royal spears - lordekbyku - 08-08-2015

Hello!
Could someone make a makro which will stop attacker when character got less than 2 royal spears?
And another macro which will start attacker when 30 royal spears?

I'll give rep+ ofc Smile

thanks in advance


RE: Turn off Attacker when 2 royal spears - kaiquegabriel - 08-08-2015

Code:
1000 {STOP ATK} Self.Inventory.LeftHand(IDSPEAR)=<2 Self.Stop() Killer.Stop()

Code:
1000 {CONTINUE ATK} Self.Inventory.LeftHand(IDSPEAR)>29 Killer.Start()

Try it.


RE: Turn off Attacker when 2 royal spears - lordekbyku - 08-08-2015

(08-08-2015, 03:14 PM)kaiquegabriel Wrote:
Code:
1000 {STOP ATK} Self.Inventory.LeftHand(IDSPEAR)=<2 Self.Stop() Killer.Stop()

Code:
1000 {CONTINUE ATK} Self.Inventory.LeftHand(IDSPEAR)>29 Killer.Start()

Try it.

Its really ok, thank you but is it possible to make this macro counting all royal spears character got (i meant in left hand and in backpack) and than stop/start attacker?

Ofc rep + Smile


RE: Turn off Attacker when 2 royal spears - kaiquegabriel - 08-08-2015

Code:
1000 {STOP ATK} Self.Inventory.LeftHand(IDSPEAR)=<2 Misc.ItemCountEx(IDSPEAR)=<2 Self.Stop() Killer.Stop()

Code:
1000 {CONTINUE ATK} Self.Inventory.LeftHand(IDSPEAR)>29 Misc.ItemCountEx(IDSPEAR)>29 Self.Stop() Killer.Stop()

Try, idk if works.

I recommend you to put one macro: equip spears on your left hand slot when 10-