• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Xml Problems

Torna

New Member
Joined
Nov 22, 2008
Messages
151
Reaction score
3
Thelera 8.0 rl.

(thelera.sytes.net)

when u die u loose 4 levels thats to much i like it to be one level. where i change that?

i use xml
 
Goto creaturescripts folder then open your login.lua look for something like whats below and edit the percentage. Not 100% sure if this is correct but its worth a shot.

Code:
function onLogin(cid)
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
    end
 
Goto creaturescripts folder then open your login.lua look for something like whats below and edit the percentage. Not 100% sure if this is correct but its worth a shot.

Code:
function onLogin(cid)
    local loss = getConfigValue('deathLostPercent')
    if(loss ~= nil) then
        doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
    end


where is creaturescripts?
 
Back
Top