Bushu
07-29-2012, 07:37 PM
Hello.
I have a script where I did this:
pots1 = (MPotprice*(Pots-Self.ItemCount(PotID)))
pots2 = (HPotprice*(HPots-Self.ItemCount(HPotID)))
spears1 = (Spearprice*(SpearAmnt-Self.ItemCount(Speartype)))
and usage of it looks like:
elseif (labelName == "Bank") then
delayWalker(1200)
setWalkerEnabled(false)
NpcConv("hi","deposit all","yes")
wait(900, 1200)
Self.WithdrawMoney((pots1)+(pots2)+(spears1))
wait(900, 1200)
Self.SayToNpc("yes")
wait(900, 1200)
NpcConv("yes","balance", "bye")
wait(15000,19000)
setWalkerEnabled(true)
and my problem is that it is counting fine only at the first time I execute the script, next time it uses the same previous value. I have no clue what is wrong with this one.
DarkstaR, do you know something about it? ;p
I have a script where I did this:
pots1 = (MPotprice*(Pots-Self.ItemCount(PotID)))
pots2 = (HPotprice*(HPots-Self.ItemCount(HPotID)))
spears1 = (Spearprice*(SpearAmnt-Self.ItemCount(Speartype)))
and usage of it looks like:
elseif (labelName == "Bank") then
delayWalker(1200)
setWalkerEnabled(false)
NpcConv("hi","deposit all","yes")
wait(900, 1200)
Self.WithdrawMoney((pots1)+(pots2)+(spears1))
wait(900, 1200)
Self.SayToNpc("yes")
wait(900, 1200)
NpcConv("yes","balance", "bye")
wait(15000,19000)
setWalkerEnabled(true)
and my problem is that it is counting fine only at the first time I execute the script, next time it uses the same previous value. I have no clue what is wrong with this one.
DarkstaR, do you know something about it? ;p