Hello.
Requesting a Script on wrong section: You should request scripts on Scripts -> Requests section.
Moved to Scripts -> Requests.
local LOCATION = { X = 12345, Y = 12345, Z = 6 }
local ITEM_USE = 1234 -- Item id to use on ground.
local LOCATION_USE = 'red backpack' -- Container id, name or index where ITEM_USE is.
local ITEM_PICKUP = 4321 -- Item id to pickup from ground.
local LOCATION_PICKUP = 'red backpack' -- Container id, name or index where you will move ITEM_PICKUP to.
useitemon(ITEM_USE, LOCATION.X, LOCATION.Y, LOCATION.Z, LOCATION_USE) -- use item 1234 on x, y, z
wait(1000)
local topitem_id = topitem(LOCATION.X, LOCATION.Y, LOCATION.Z, false).id
if topitem_id == ITEM_PICKUP then
moveitems(ITEM_PICKUP, LOCATION_PICKUP, ground(LOCATION.X, LOCATION.Y, LOCATION.Z), 100)
wait(1000)
end
If you don't know the item id that you will pickup from floor...
local LOCATION = { X = 12345, Y = 12345, Z = 6 }
local ITEM_USE = 1234 -- Item id to use on ground.
local LOCATION_USE = 'red backpack' -- Container id, name or index where ITEM_USE is.
local LOCATION_PICKUP = 'red backpack' -- Container id, name or index where you will move ITEM_PICKUP to.
useitemon(1234, LOCATION.X, LOCATION.Y, LOCATION.Z, LOCATION_USE) -- use item 1234 on x, y, z
wait(1000)
local topitem_id = topitem(LOCATION.X, LOCATION.Y, LOCATION.Z, false).id
if topitem_id > 100 then
moveitems(topitem_id, LOCATION_PICKUP, ground(LOCATION.X, LOCATION.Y, LOCATION.Z), 100)
wait(1000)
end