Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
withdraw x money, buy x items
#1
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
#2
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))

Big Grin
#3
its possible to count spears on hand?
#4
(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..
#5
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)
#6
Don't work, it move to bp only 1 spear


Forum Jump:


Users browsing this thread: 1 Guest(s)