I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).
I have made the following script:
But when i execute the script in game I'm getting the following error:
[13/08/2014 11:44:53] Lua Script Error: [Action Interface]
[13/08/2014 11:44:53] data/actions/scripts/tools/crowbar.luanUse
[13/08/2014 11:44:53] luaDoTransformItem(). Item not found
And also only the item I use my crowbar on changes and the one on pos.y+1 does not.
Anyone knows how to fix this?
Thanks in advance.
I have made the following script:
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 == 1744 then
doTransformItem(itemEx.uid, 7522)
doTransformItem({x = toPosition.x, y = toPosition.y + 1, z = toPosition.z}, itemEx.uid, 7523)
end
end
[13/08/2014 11:44:53] Lua Script Error: [Action Interface]
[13/08/2014 11:44:53] data/actions/scripts/tools/crowbar.luanUse
[13/08/2014 11:44:53] luaDoTransformItem(). Item not found
And also only the item I use my crowbar on changes and the one on pos.y+1 does not.
Anyone knows how to fix this?
Thanks in advance.