• 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 change how much exp you lose when you die?

zarw1337

Realera Hosting
Joined
Jun 22, 2008
Messages
66
Reaction score
0
Hello

How do I change how much experiance i want to lose when I die?

This is my Config.lua Check it out:

loginProtectionPeriod = 0
deathLostPercent = 10
stairhopDelay = 0 * 1000
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
gainExperienceColor = 215

And

-- Blessings
blessingsOnlyPremium = "no"
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8

I don't got bless on my server, because it's bugged so we only use amulet of loss. When someone die i want them to lose like 1 level, but they are only losing like 10 %.

Help me!?
 
deathLostPercent = 10 = 10%

If a player have 10000 experience, if they die they loose 10% = 1000 experience lost.

If you want to lower it; then change it to 1 to 9%
If you want to make it higher; then change it to 15-20%
 
deathLostPercent = 10 = 10%

If a player have 10000 experience, if they die they loose 10% = 1000 experience lost.

If you want to lower it; then change it to 1 to 9%
If you want to make it higher; then change it to 15-20%



Something is wrong, I changed it to 50 % DeathLostPercent But it's still the same problem! I only lose like 10-20 %.

Got any other ideas?
 
Something is wrong, I changed it to 50 % DeathLostPercent But it's still the same problem! I only lose like 10-20 %.

Got any other ideas?

After changing, did you
Code:
/reload config
or restart the server?


Or else the change will not take effect.
 
I'm fairly sure that the values in the database regarding loss during death, overwrites the one defined in the config.lua, so check and edit there if necessary.
 
After changing, did you
Code:
/reload config
or restart the server?


Or else the change will not take effect.


Yes i did, and nothing was happing

I'm fairly sure that the values in the database regarding loss during death, overwrites the one defined in the config.lua, so check and edit there if necessary.

It's something wrong with my database. Maybe I have to put a script in SQL database like death procent?


Can I have any script for that if you got anyone?
 
Last edited by a moderator:
Did you check vocations.xml?


Nah, but i think it's the database because blessings was bugged so when you died you downgrade to level 1. So someone gave me a script that i enter in my SQL database that should been working but it did not work anyway, i think that might been the reason why I only lose 10-20 % experiance each death.


So I need a new script i can pass in my database so i lose like 1 level.

Thanks!
 
tempotland.png


That's what I'm talking about, you need to edit that in order to change the droprates of various things.

I do believe the folowing SQL query would solve your problems:

Code:
UPDATE players SET loss_experience = 50, loss_mana = 50, loss_skills = 50, loss_containers = 50, loss_items = 50;

Just change the number 50 to whatever percent you wish it to be, and yes you can have different numbers for each type.

loss_experience = How much % exp will they loose?
loss_mana = How much % manaspent shall they loose?
loss_skills = How many skilltries % will they loose?
loss_containers = How big % chance shall they have to loose their backpack?
loss_items = How big % chance shall they have to loose one (Or more?) of their equipped items?

Just remember that this command affects ALL players in your database. If you wish to set different values for different players, another command is needed, or you need to edit manually.
 
tempotland.png


That's what I'm talking about, you need to edit that in order to change the droprates of various things.

I do believe the folowing SQL query would solve your problems:

Code:
UPDATE players SET loss_experience = 50, loss_mana = 50, loss_skills = 50, loss_containers = 50, loss_items = 50;

Just change the number 50 to whatever percent you wish it to be, and yes you can have different numbers for each type.

loss_experience = How much % exp will they loose?
loss_mana = How much % manaspent shall they loose?
loss_skills = How many skilltries % will they loose?
loss_containers = How big % chance shall they have to loose their backpack?
loss_items = How big % chance shall they have to loose one (Or more?) of their equipped items?

Just remember that this command affects ALL players in your database. If you wish to set different values for different players, another command is needed, or you need to edit manually.



I was changing your script to :

Code:
UPDATE players SET loss_experience = 7, loss_mana = 7, loss_skills = 7, loss_containers = 100, loss_items = 2;

But when I restarted the server, I think it was like before, I*m not sure... Buy 7% is pretty much experiance lost? So i would be seen if it gave me any effect? Or Do I have to change it to 15-20%~? To get some effect?
 
The exp percent here means % of ALL your exp.

Thus if the character has gotten a total of 1000 exp, and he dies, he will loose 70 exp if you set it to loss_experience = 7.
 
Back
Top