Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
  2.  
  3. function onWalkerSelectLabel(labelName)
  4. if (labelName == "Depot") then
  5. delayWalker(2000)
  6. setWalkerEnabled(false)
  7. Self.ReachDepot()
  8.  
  9. local validBackpacks = {3083, 6299, 3037, 3067, 3371, 3324, 812, 3063, 811, 3332, 3039, 3038, 3041, 3554, 6499, 3030, 5887, 282, 239, 3032, 5944, 3057}
  10. local lootContainer = Container.New(8860, 2869)
  11.  
  12. repeat
  13. Self.DepositItems({10323, 0}, {10451, 0}, {10385, 0}, {10390, 0}, {10438, 0}, {10384, 0}, {813, 0}, {811, 0}, {10388, 0}, {8061, 0}, {8057, 0}, {3360, 0}, {3392, 0}, {11691, 0}, {11674, 0}, {4033, 0}, {11688, 0}, {11651, 0}, {11657, 0}, {10387, 0}, {7402, 0}, {10389, 0}, {7430, 0}, {3027, 1}, {3029, 1}, {3032, 1}, {5944, 1}, {10316, 1}, {3342, 0}, {812, 0}, {9057, 1}, {3370, 0}, {238, 1}, {7643, 1}, {9058, 1}, {6499, 1}, {7368, 1}, {7404, 0}, {11693, 0}, {11674, 0}, {3028, 1}, {10316, 1}, {3041, 0}, {10386, 0})
  14.  
  15. if (table.contains(validBackpacks, lootContainer:GetItemData(0).id)) then
  16. lootContainer:UseItem(0, true)
  17. wait(500)
  18. end
  19. until
  20. lootContainer:GetItemData(0).id == 0
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement