Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1.     elseif (labelName == "Bank") then
  2.             local withdrawManas = (MaxMana-Self.ItemCount(ManaID))*ManaPrice
  3.             local withdrawHealths = (MaxHealth-Self.ItemCount(HealthID))*HealthPrice
  4.             local withdrawArrows = (MaxArrow-Self.ItemCount(ArrowID))*ArrowPrice
  5.             setWalkerEnabled(false)
  6.             Self.SayToNpc({"hi", "deposit all", "yes"}, 65)
  7.             if (withdrawHealths > 0) then
  8.                 Self.SayToNpc({"withdraw " .. withdrawHealths, "yes"}, 65)
  9.             end
  10.             if (withdrawManas > 0) then
  11.                 Self.SayToNpc({"withdraw " .. withdrawManas, "yes"}, 65)
  12.             end
  13.             if (withdrawArrows > 0) then
  14.                 Self.SayToNpc({"withdraw " .. withdrawArrows, "yes",}, 65)
  15.             end
  16.             Self.SayToNpc({"hi", "withdraw 1000", "yes"}, 65)
  17.             wait(1500,2000)
  18.             Self.SayToNpc({"balance"}, 65)
  19.             setWalkerEnabled(true)
  20.         sleep(math.random(600, 1100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement