Tenta:
function onDeath(cid, corpse, killer)
local monstName = "Rat" -- nome do monstro
local Storage = 102503 -- storage que o jogador ira ganhar
local valor = 1 --Valor da storage 102502 que o jogador deverá ter.
if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) and getPlayerStorageValue(killer[1], 102502) == valor then
doCreatureSay(cid, "Mues irmãos me vingarão!.", TALKTYPE_ORANGE_1)
if isInParty(killer[1]) == TRUE then
local players = getPartyMembers(getPartyLeader(killer[1]))
for i, k in ipairs(players) do
setPlayerStorageValue(k, Storage, 6)
end
else
setPlayerStorageValue(killer[1], Storage, 6)
end
end
return true
end