• 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!

Help with Death.

Toitsss

New Member
Joined
Sep 15, 2008
Messages
47
Reaction score
0
Hello, i got a war ot, rookwar. The system is that if you die, you go to level 1 and automaticly get back the exp of lvl 100.
But i want player to only lose like 50 % of their exp. SO if they die at lvl 150 they wont lose more than 50 % to level, so they wont get back to 100. Ive tryed to add this to login.lua
Code:
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
but it didnt work.
 
Back
Top