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