Hello,
I want to make this so when I use a pick on a certain item, it will change into a ladder for x seconds, then change back to its original form. I put this script onto pick.lua, and set the actionid, but it gives an error:
Script:
Thanks
I want to make this so when I use a pick on a certain item, it will change into a ladder for x seconds, then change back to its original form. I put this script onto pick.lua, and set the actionid, but it gives an error:
Code:
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/tools/pick.lua
Description:
<luaDoTransformItem> Item not found
Script:
Lua:
local newItemID = 8281
local oldID = 407
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.actionid == 7711 then
doTransformItem(itemEx.uid, newItemID)
addEvent(changeBack, 2000, itemEx, oldID)
end
return true
end
function changeBack(item, id)
doTransformItem(item.uid, id)
return true
end
Thanks