BBot - The best bot of the world
Spear Refill - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Spear Refill (/thread-5400.html)



Spear Refill - fabiomiguelp - 11-16-2012

Hello, i want bot in ank tombs, but i just have a problem , about the spears...

i searched about some macros , and atm i can pick up spears and equip it on my hand ..
but i want a macro like that: i have 15 spears on the floor and 13 equiped , and 31 cap , i want pick up one spear only of that 15 spears on the floor to my bp and equip that on my hand . that's possible?

because on my macros i just can get that 15 spears on the floor if i have cap or just can equip it when i don't have spears ..


anyone can help me ?


i give repu Big Grin


RE: Spear Refill - spiff26 - 11-17-2012

Code:
2000 {Pick Up Spear} spear:=3277 cap:=Self.Capacity() VarDiv(cap, 20) X:=Self.X() Y:=Self.Y() Z:=Self.Z() Map.PickUpEx(!spear!, !cap!, 0, !X!, !Y!, !Z!, 2) Self.Equip.LeftHand(!spear!)
No need change anything.