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

exp lose

carre

Advanced OT User
Joined
Apr 23, 2013
Messages
881
Solutions
1
Reaction score
157
Location
Sweden
when i goes die on my server dont lose exp but i want lose exp is there any can change for lose amount of exp?
repp++ please!
 
As per usual, include server type and version.

I recommend taking a look at config.lua. At least in version 1.1 there is a variable, "deathLosePercent," which if set to 0 will cause no exp loss. If this doesn't help and your server was edited before compilation, take a look at Player::death in player.cpp, that is where the exp loss occurs if enabled and deathLosePercent = -1 in config.lua.
 
here my creaturescripts
Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
    <event type="login" name="FirstItems" script="firstitems.lua"/>
    <event type="login" name="MageBomb" event="script" value="anti.lua"/>
    <event type="kill" name="skulls" event="script" value="skulls.lua"/>
  
    <event type="login" name="StartSkills" event="script" value="startskills.lua"/>
    <event type="login" name="Lowlevellock" event="script" value="lowlevellock.lua"/>
    <!--event type="death" name="FragReward" event="script" value="fragreward.lua"/-->
    <event type="login" name="PlayerLogin" event="script" value="login.lua"/>

    <event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
    <event type="receivemail" name="Mail" event="script" value="mail.lua"/>
    <event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
    <event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>

    <event type="think" name="Idle" event="script" value="idle.lua"/>
    <!--event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/-->
</creaturescripts>
nah still not work i did set deathLosePercent like 50 /:
 
edite this
Code:
<event type="death" name="FragReward" event="script" value="fragreward.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
remove !-- and restart server
 
Was cpp edited at all? Do all vocation not loose exp? Do high lvl players not loose exp?

Try adding
Code:
player:registerEvent("FragReward")
to login.lua. But I seriously can't imagine this being the problem.
 
that hard to fixe problem like this without know what scripts u have all will guess but noone will be sure that the solve last thing u get any msg in game when player die ?
 
Back
Top