Galera, to tentando e nada da certo para resolver o erro:
[17/10/2016 01:11:01] Lua Script Error: [Action Interface]
[17/10/2016 01:11:01] in a timer event called from:
[17/10/2016 01:11:01] data/actions/scripts/tools/axe.lua:onUse
[17/10/2016 01:11:01] luaDoTransformItem(). Item not found
[17/10/2016 01:11:01] stack traceback:
[17/10/2016 01:11:01] [C]: ?
Quem conseguir ajudar ganha rep+.
Script (.lua):
local tree1 = {2700, 2701}
local delay = 6000
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(isInArray(tree1, itemEx.itemid) == TRUE) then
math.randomseed(os.time())
local cutrd = math.random(1, 2)
local qtdrd = math.random(1, 3)
if(cutrd == 1) then
doSendMagicEffect(getThingPos(itemEx.uid), 9)
doTransformItem(itemEx.uid, 8786)
doPlayerAddItem(cid, 2253, qtdrd)
addEvent(doTransformItem, delay, 8786, itemEx.uid)
end
end