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

How to fix level 1 when you die, tutorial

antoniolagos

Member
Joined
Apr 10, 2010
Messages
34
Reaction score
6
If you get level 1 in your server when you die, try this:
Go to data/creaturescripts/login.lua

Open it and search this part:

function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) and getPlayerVocation(cid) ~= 0 then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)

If you have another diferent number (ex: cid, PLAYERLOSS_EXPERIENCE, loss * 4), put 10 instead of 4.

This line must be: (cid, PLAYERLOSS_EXPERIENCE, loss * 10)<------------------- *10 always

I did this and I fixed this error. I was trying to fix it long time ago but now I fixed it xd

TELL ME IF THIS HELPED YOU
 
Back
Top