bps works but:
"error in Action script wptid:10:
[" if (gold() ~= TOTAL) then"]:Action: 10:24 attempt to call global 'gold' (a string value)"
and wptid:10
while (windowcount(SuppBP["name"]) == 0) do
closewindows()
waitping()
openitem(MainBP["name"], 'back')
waitping()
resizewindows()
waitping()
openitem(SuppBP["name"], MainBP["name"], true)
waitping()
resizewindows()
waitping()
end
local CASH = {
AMMO = positive(getuseroption("MpToBuy") - itemcount("great mana potion")) * 120,
MANA = positive(getuseroption("SdToBuy") - itemcount("sudden death rune")) * 118,
SOFTS = getuseroption("SoftBootsRefiller") and itemcount("worn soft boots")*10000 or 0,
TRAVEL = 5000
}
local TOTAL = CASH.AMMO + CASH.MANA + CASH.SOFTS + CASH.TRAVEL
if (gold() ~= TOTAL) then
reachcreature("Murim")
wait(1000,1200)
npctalk("hi", "deposit all", "yes", "withdraw " .. TOTAL, "yes", "balance")
end
wait(1000)
if (gold() ~= TOTAL) then
gotolabel($wptid-1)
end