isso aki e no player.cpp
if(skull > SKULL_WHITE || (item->getContainer() && rand < loss) || (!item->getContainer() && rand < itemLoss))
creaturescript.
function onKill(cid, target, lastHit)
if cid ~= target and isPlayer(target) then
local a = math.max(0, getCreatureStorage(cid, storage)) + 1
doCreatureSetStorage(cid, storage, a)
if a == 50 then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif a == 100 then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif a == 200 then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif a == 400 then
doCreatureSetSkullType(cid, SKULL_RED)
elseif a == 500 then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
end
return true
end