Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elseif (labelName == "Bank") then
- local withdrawManas = (MaxMana-Self.ItemCount(ManaID))*ManaPrice
- local withdrawHealths = (MaxHealth-Self.ItemCount(HealthID))*HealthPrice
- local withdrawArrows = (MaxArrow-Self.ItemCount(ArrowID))*ArrowPrice
- setWalkerEnabled(false)
- Self.SayToNpc({"hi", "deposit all", "yes"}, 65)
- if (withdrawHealths > 0) then
- Self.SayToNpc({"withdraw " .. withdrawHealths, "yes"}, 65)
- end
- if (withdrawManas > 0) then
- Self.SayToNpc({"withdraw " .. withdrawManas, "yes"}, 65)
- end
- if (withdrawArrows > 0) then
- Self.SayToNpc({"withdraw " .. withdrawArrows, "yes",}, 65)
- end
- Self.SayToNpc({"hi", "withdraw 1000", "yes"}, 65)
- wait(1500,2000)
- Self.SayToNpc({"balance"}, 65)
- setWalkerEnabled(true)
- sleep(math.random(600, 1100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement