Basically is get items that are in table in tile x and create item according to the item on the tile.
local item = {[neededitem] = reward, [neededitem] = reward}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local tile = Tile(Position(32342, 32236, 6))
if...