withdraw x money, buy x items - 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: withdraw x money, buy x items (/thread-2001.html) |
withdraw x money, buy x items - andy1995 - 03-03-2012 Hello. I have problem. Anyone know how to do macro like this example? max = 26; now = getItemCount(spear); howmuchtowithdraw = (max-now)*9; hi withdraw !howmuchtowithdraw!; yes thanks RE: withdraw x money, buy x items - Dexter - 03-03-2012 Here is: Code: 5000 {Spear Reffil} VarSetEx(Total, 26) VarSet(spear) Misc.ItemCountEx(3277) VarSub(Total, !spear!) VarMult(Total, 9) HUD.Display(!Total!) Self.Say(hi) Macro.Wait(2000) NPC.Say(withdraw) Macro.Wait(2000) NPC.Say(!Total!) Macro.Wait(2000) NPC.Say(yes)) RE: withdraw x money, buy x items - andy1995 - 03-03-2012 its possible to count spears on hand? RE: withdraw x money, buy x items - Paul - 03-03-2012 (03-03-2012, 04:42 PM)andy1995 Wrote: its possible to count spears on hand? Unfortunately its not.. lets hope Bmega will fix it soon.. RE: withdraw x money, buy x items - Dexter - 03-03-2012 Use this "macro" below before the count of spears: Code: 1000 {Unequip Spears} Self.UnEquip.LeftHand(IDdaSPEAR) Macro.Wait(1200) And this one can be placed after the check, purchase of "potions", etc.: Code: 1000 {Equip Spears} Self.Equip.LeftHand(IDdaSPEAR) Macro.Wait(1200) RE: withdraw x money, buy x items - andy1995 - 03-03-2012 Don't work, it move to bp only 1 spear |