Advertisement
Cavitt

Untitled

Mar 20th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.22 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.         sleep(math.random(1000, 2000))
  8.         Self.SayToNpc("deposit all")
  9.         sleep(math.random(1000, 2000))
  10.         Self.SayToNpc("yes")
  11.         sleep(math.random(1000, 2000))
  12.         Self.SayToNpc("withdraw 200")
  13.         sleep(math.random(1000, 2000))
  14.         Self.SayToNpc("yes")
  15.         sleep(math.random(1000, 2000))
  16.     elseif (labelName == "boat") then
  17.         Self.Say("hi")
  18.         sleep(math.random(1000, 2000))
  19.         Self.SayToNpc("passage")
  20.         sleep(math.random(1000, 2000))
  21.         Self.SayToNpc("yes")
  22.         sleep(math.random(1000, 2000))
  23.     elseif (labelName == "boat2") then
  24.         Self.Say("hi")
  25.         sleep(math.random(1000, 2000))
  26.         Self.SayToNpc("passage")
  27.         sleep(math.random(1000, 2000))
  28.         Self.SayToNpc("yes")
  29.         sleep(math.random(1000, 2000))
  30.     elseif (labelName == "depot") then
  31.         -- itemid or {itemid, depot backpack}
  32.         Self.DepositItems(10291, {9659, 0})
  33.     elseif (Self.ItemCount(268) < 75) then
  34.         -- slot, item1, item2, etc. (item can be a table like {itemid, backpack slot, count} or just itemid)
  35.         Self.WithdrawItems(0, 3502, {268, 1, 3})
  36.     end
  37. end
  38.  
  39. ---???? do these fit???? nope....
  40. end
  41. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement