Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
- function onWalkerSelectLabel(labelName)
- if (labelName == "Depot") then
- delayWalker(2000)
- setWalkerEnabled(false)
- Self.ReachDepot()
- local validBackpacks = {3083, 6299, 3037, 3067, 3371, 3324, 812, 3063, 811, 3332, 3039, 3038, 3041, 3554, 6499, 3030, 5887, 282, 239, 3032, 5944, 3057}
- local lootContainer = Container.New(8860, 2869)
- repeat
- 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})
- if (table.contains(validBackpacks, lootContainer:GetItemData(0).id)) then
- lootContainer:UseItem(0, true)
- wait(500)
- end
- until
- lootContainer:GetItemData(0).id == 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement