Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ USAGE: closeBackpacks() ]]--
- function closeBackpacks()
- while(true) do
- local tempBP = Container:GetFirst()
- if(tempBP:isOpen()) then
- Self.UseItem(tempBP:ID())
- else
- break
- end
- wait(600, 1500)
- end
- end
- --[[ USAGE: openBackpacks({id1, parentContainerIndex},{id2, parentContainerIndex}) ]]--
- --[[ SET parentContainerIndex TO WHATEVER BACKPACK YOU CAN FIND THE ID IN ]]--
- function openBackpacks(...)
- Self.UseItem(Self.Backpack().id)
- wait(900, 1700)
- for _, input in ipairs(arg) do
- local Bp = Container.GetFromIndex(input[2])
- for spot = 0, Bp:ItemCount() do
- local item = Bp:GetItemData(spot)
- if(item.id == input[1]) then
- Bp:UseItem(spot)
- break
- end
- end
- wait(900, 1700)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement