Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Refiller
#2
1000 {Withdraw} VarSetEx(Total, X) VarSet(Potnow) Misc.ItemCountEx(Y) VarSub(Total, !Potnow!) VarMult(Total, Z) HUD.Display(!Total!) NPC.Say(!Total!)

Where:
X - lidzba potow do kupna
Y - ID pota
Z - koszt 1 sztuki potiona

przyklad:

Quote:Fixed (32338 32836 7)
Say (32338 32836 7:hi)
NPCSay (32338 32836 7:withdraw)
Macro (32338 32836 7:1000 {Withdraw} VarSetEx(Total, 100) VarSet(Potnow) Misc.ItemCountEx(268) VarSub(Total, !Potnow!) VarMult(Total, 50) HUD.Display(!Total!) NPC.Say(!Total!))
NPCSay (32338 32836 7:yes)


----------------------------------------------------------------------------------

1000 {Potions Reffiler} VarSetEx(Total, X) VarSet(Potnow) Misc.ItemCountEx(Y) VarSub(Total, !Potnow!) HUD.Display(!Total!) NPC.Buy(Y, !Total!, 1)

Where:
X - lidzba potow do kupna
Y - ID potiona



przyklad:

Quote:Fixed (32345 32810 7)
Say (32345 32810 7:hi)
NPCSay (32345 32810 7:trade)
Macro (32345 32810 7:1000 {Potions Reffiler} VarSetEx(Total, 100) VarSet(Potnow) Misc.ItemCountEx(268) VarSub(Total, !Potnow!) HUD.Display(!Total!) NPC.Buy(268, !Total!, 1))
NPCSay (32345 32810 7:bye)












Pamietaj, dodaj fixed point i saye.
Rep


Messages In This Thread
Refiller - by Kubequ - 08-10-2012, 12:45 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)