jareczekjsp
Member
Hello I have in console error like that
tfs 0.4
[15:24:11] [Error - CreatureScript Interface]
[15:24:11] In a timer event called from:
[15:24:11] domodlib('Loot_func')
[15:24:11] function onDeath(cid, corpse, deathList)
[15:24:11] local killer,pos = deathList[1],getCreaturePosition(cid)
[15:24:11] addEvent(corpseRetireItems,1,killer,pos)
[15:24:11] return true
[15:24:11] endnDeath
[15:24:11] Description:
[15:24:11] (luaGetCreatureStorage) Creature not found
Somebody meybe know what is that?
Post automatically merged:
this is my script :
function onDeath(cid, corpse, deathList)
if not isPlayer(cid) then
return true
end
local killer = deathList[1]
local playerName = getCreatureName(cid)
local playerLevel = getPlayerLevel(cid)
if not isCreature(killer) then
doBroadcastMessage("The player " .. playerName .. " [Level: " .. playerLevel .. "] was killed by an unknown entity.", 20)
return true
end
local killerName = getCreatureName(killer)
if isPlayer(killer) then
doBroadcastMessage("The player " .. playerName .. " [Level: " .. playerLevel .. "] was killed by the player " .. killerName .. " [Level: " .. getPlayerLevel(killer) .. "]", 20)
elseif isMonster(killer) then
doBroadcastMessage("The player " .. playerName .. " [Level: " .. playerLevel .. "] was killed by the monster " .. killerName .. ".", 20)
end
return true
end
Post automatically merged:
tfs 0.4