I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).
I'm trying to make a script with which you can open wooden coffins with a crowbar.
Instead of only changing the item on which i use the crowbar on i also want it to change the item to the south of it.
Thanks in advance.
I'm trying to make a script with which you can open wooden coffins with a crowbar.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local function doTransformBack(pos, itemid, transformid)
return doTransformItem(getTileItemById(pos, transformid).uid, itemid)
end
if itemEx.itemid == 1742 then
doTransformItem(itemEx.uid, 7520)
end
end
Instead of only changing the item on which i use the crowbar on i also want it to change the item to the south of it.
Thanks in advance.