07-10-2019, 11:17 PM
Hello.
It will drop the following items on the specific locations and will also open the next backpacks inside.
It will drop the following items on the specific locations and will also open the next backpacks inside.
local OpenNextBPs = true
local ITEMS_DROP = {
{ Id = 2148, Location = { X = 12345, Y = 12345}},
{ Id = 1234, Location = { X = 12345, Y = 12345}},
{ Id = 4321, Location = { X = 12345, Y = 12345}},
}
local player_z = posz()
for _, item in ipairs(ITEMS_DROP) do
while itemcount(item.Id) > 0 do
moveitems(item.Id, ground(item.Location.X, item.Location.Y, player_z), '', 100)
end
end
if OpenNextBPs then
local containers = getcontainers()
for i = 1, #containers do
local container = containers[i]
for j = 1, #container.items do
local item = container.items[j]
if item ~= nil then
if itemhasflags(item.id, 4) then
openitemslot(item.index, container.index, false)
wait(800, 1200)
break
end
end
end
end
end