LucasFerraz
Systems Analyst
If player level 50- and DO NOT have Skull he will lose nothing.
else, if player haven't both conditions he lose normal.
else, if player haven't both conditions he lose normal.
LUA:
function onPrepareDeath(cid, deathList)
if getPlayerLevel(cid) < 50 and getCreatureSkullType(cid) < SKULL_WHITE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
else
doPlayerAddBlessing(cid, 1)
end
return true
end