potinho
Advanced OT User
Hello guys, how are you?
I have this script to not loss experience bellow level 9 and remove AOL. I want to make a few change, not lose itens before level 60 (with ou without aol).
I already have this script who not remove experience bellow level 9.
Someone can help me to create this creaturescript to not loss items or bp when die, without aol bellow lvl 60?
I have this script to not loss experience bellow level 9 and remove AOL. I want to make a few change, not lose itens before level 60 (with ou without aol).
I already have this script who not remove experience bellow level 9.
Lua:
function onDeath(cid, corpse, deathList)
if getPlayerSlotItem(cid, 2).itemid == 2173 then
doPlayerRemoveItem(cid, 2173, 1)
end
return true
end
function onDeath(cid, corpse, deathList)
if getPlayerLevel(cid) < 9 then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
end
return true
end
Someone can help me to create this creaturescript to not loss items or bp when die, without aol bellow lvl 60?