BBot - The best bot of the world
Drop Spears if above x - 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: Drop Spears if above x (/thread-11294.html)



Drop Spears if above x - mageq - 08-12-2013

Hello, Im trying to bot on my Paladin, but he just collects spears from trolls and has no cap all the time, I'm in need of a script, to drop spears if the spear count is above 8.

Thanks,


RE: Drop Spears if above x - kamill - 08-12-2013

Try this macro. 3277 is ID of spear, but I'm not sure. If cap<=20 then bot should drop spear.

2000 {Drop Spear}
Misc.ItemCountEx(3277)>8
Self.Capacity<=20
X:=Self.X
Y:=Self.Y
Z:=Self.Z
Map.Thrown(3277, -1, !X!, !Y!, !Z!)

Or you can also equip spears from dead bodies:

1000 {Spear} Misc.ItemCountEx(3277)<8 Self.Equip.LeftHand(3277)

It won't equip more than 8 spears. Delete spear from looter.