10-17-2014, 02:30 PM
(10-17-2014, 06:17 AM)mr. Kris Wrote: Try this:
Code:1000 {Logout when low ammo} Misc.ItemCountEx(ID AMMO)<10 Cavebot.Stop() Status.Battle()==0 Self.Logout() Exit()
Add ID AMMO in: Misc.ItemCountEx(ID AMMO)
You must have opened BP with ammo.
Just a type, you don't need Cavebot.Stop() and Status.Battle() because Self.Logout() will pause the Cavebot and wait for Status.Battle()==0 automatically
Also use [ macro ] forum tags, like:
[macro]1000 {Logout low ammo} ID_AMMO:=1000 Misc.ItemCountEx(!ID_AMMO!)<10 Self.Logout()[/macro]