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
but it didnt work.
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)