Eu tenho um script que ao matar monstros ganha um storage de cada monstro morto, porém ele não funciona e não da nem erro(já registrei no login)
function onKill(cid, target, lastHit)
if not (isPlayer(cid) and isMonster(target)) then
return true
end
local tab = {
["xxxx"] = 3940,
["xxxx"] = 3941,
["xxxx"] = 3942,
["xxxx"] = 3943,
["xxxx"] = 3944,
["xxxxx"] = 3945,
["xxxxxxx"] = 3946,
}
setPlayerStorageValue(cid, tab[getCreatureName(target)], 1)
return true
end
Alguem poderia ajudar? 8.54 0.3.6