I'm working on a 8.54 Open Tibia Server using The Forgotten Server - Version 0.2.7 (Mystic Spirit).
I've made the following script:
Now this works so far but when I go in to my server and use the actual item. The item does change but it becomes invisible.
Anyone knows how this happens and how to fix it?
Thanks in advance.
I've 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
elseif itemEx.itemid == 7560 then
doTransformItem(itemEx.uid, 7564)
elseif itemEx.itemid == 7561 then
doTransformItem(itemEx.uid, 7565)
end
end
Now this works so far but when I go in to my server and use the actual item. The item does change but it becomes invisible.
Anyone knows how this happens and how to fix it?
Thanks in advance.