Originally Posted by baburlk
This will move "any" item from x,y to underneath you.
local fromX = 12345 -- Pos X of the location to check
local fromY = 45678 -- Pos Y of the location to check
moveitem(topitem(fromX, fromY, posz), ground(fromX, fromY, posz), ground(posx, posy, posz), 100)
However, there's no way of getting posz and posy of each monster you kill and having it check if the top tile item is a container, so you can't really stop people from trashing/stealing your loot.
Also this action would get stuck in a loop unless given a condition, eg do "while toptileitem(fromX, fromY, posz) ~= itemID do"