• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows [HELP] How to turn off the skills lose when a player dies

hum

New Member
Joined
Jan 7, 2010
Messages
35
Reaction score
0
Hello guys, look, my problem is that when a player dies in my server he losses a lot of skills, all i want is to know how to set skills lose to 0% and level lose like 10% when someone dies, i dont know which file u need to see, just let me know, and i add the file right away..

thanks for your help.
Betoox.
 
ok, good i have deathlostpercent="0", but when the player dies the lvl goes to 0. :s what should i put in "lessloss="x" in xml?? and what should i change in login.lua?
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss *4 )
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doPlayerAddPremiumDays(cid, 2)
doPlayerSetPromotionLevel(cid, 1)
end

- - - Updated - - -

bump
 
Back
Top