function onDeath(cid, corpse, deathList)
local tmpCorpse = getTileItemById(getCreaturePosition(cid), corpse.itemid)
if(tmpCorpse > 0) then
doTransformItem(tmpCorpse.uid, 2826)
end
return true
end
I can't remember but have seen same problem few weeks ago, maybe try something like this:
Code:function onDeath(cid, corpse, deathList) local tmpCorpse = getTileItemById(getCreaturePosition(cid), corpse.itemid) if(tmpCorpse > 0) then doTransformItem(tmpCorpse.uid, 2826) end return true end
[31/08/2010 14:01:47] [Error - CreatureScript Interface]
[31/08/2010 14:01:47] data/creaturescripts/scripts/playerdeath.lua:onDeath
[31/08/2010 14:01:47] Description:
[31/08/2010 14:01:47] data/creaturescripts/scripts/playerdeath.lua:3: attempt to compare number with table
[31/08/2010 14:01:47] stack traceback:
[31/08/2010 14:01:47] data/creaturescripts/scripts/playerdeath.lua:3: in function <data/creaturescripts/scripts/playerdeath.lua:1>
for each vocation, see the script: "getPlayerVocation"For a specific monster or what?
function onDeath(cid, corpse, deathList)
local tmpCorpse = getTileItemById(getCreaturePosition(cid), corpse.itemid)
if(tmpCorpse.uid > 0) then
doTransformItem(tmpCorpse.uid, 2826)
end
return true
end
??LUA:function onDeath(cid, corpse, deathList) local tmpCorpse = getTileItemById(getCreaturePosition(cid), corpse.itemid) if(tmpCorpse.uid > 0) then doTransformItem(tmpCorpse.uid, 2826) end return true end
playerdeath.lua, post it![]()
function onDeath(cid, corpse, deathList)
local tmpCorpse = getTileItemById(getCreaturePosition(cid), corpse.itemid)
if(tmpCorpse.uid > 0) then
doTransformItem(tmpCorpse.uid, 2826)
end
return true
end
o.o?Code:function onDeath(cid, corpse, deathList) local tmpCorpse = getTileItemById(getCreaturePosition(cid), corpse.itemid) if(tmpCorpse.uid > 0) then doTransformItem(tmpCorpse.uid, 2826) end return true end
I just thought it could be long script and you just pasted that piece into it, but no problems if it is just that kind of script![]()