Advertisement
Cavitt

Untitled

Mar 17th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  2.  
  3. function onWalkerSelectLabel(labelName)
  4.     if (labelName == "bank") then
  5.         delayWalker(10000)
  6.         Self.Say("hi")
  7.         wait(1000, 2000)
  8.         Self.SayToNpc("deposit all")
  9.         wait(1000, 2000)
  10.         Self.SayToNpc("yes")
  11.         wait(1000, 2000)
  12.     elseif (labelName == "check") then
  13.         delayWalker(10000)
  14.         if (count(268) < 55) then
  15.             gotoLabel("leave")
  16.         else
  17.             gotoLabel("check1")
  18.         end
  19.     elseif (labelName == "check1") then
  20.         delayWalker(10000)
  21.         if (Self.Cap() < 100) then
  22.             gotoLabel("leave")
  23.         else
  24.             gotoLabel("hunt")
  25.         end
  26.     elseif (labelName == "gate") then
  27.         Self.UseItemFromGround(32729, 31199, 5)
  28.     elseif (labelName == "gate2") then
  29.         Self.UseItemFromGround(32734, 31199, 5)
  30.     elseif (labelName == "deposit") then
  31.         Self.DepositItems(7436, 7454, 3415, 7386, 9103, 3428, 8072, 3391, 3318, 5885, {10293, 1}, {10311, 1}, {5894, 1}, {3033, 1}, {3027, 1}, {9662, 1}, {9668, 1}, {9656, 1}, {3052, 2}, {3049, 2})
  32.     elseif (labelName == "withdraw") then
  33.         Self.WithdrawItems(4, 268) -- withdraw manapots from 3rd backpack in depot
  34.     end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement