FabianoBN
l|¬¬"|l
I have one erro in the script, do not let the monster die
Script:
Error in the Screen Shot:
Thanks!
Script:
Lua:
function onKill(cid, target)
local m = {
["humongous fungus"] = 101007,
}
if(isMonster(target) == TRUE) then
local n = getCreatureName(target)
local name_monster = m[string.lower(n)]
if(name_monster) then
local contagem = getPlayerStorageValue(cid, name_monster)
if(contagem == -1) then
contagem = 1
end
setPlayerStorageValue(cid, name_monster, contagem+1) -- LINE 29
end
end
return TRUE
end
Error in the Screen Shot:
Thanks!