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

No Death Percent Loss?

Status
Not open for further replies.

Sam

Banned User
Joined
Aug 22, 2008
Messages
715
Reaction score
0
Location
British Columbia, Canada
Well on my server there is no death loss, but if you die with blessings you DO lose experience. I have the death loss percent at 10 but I don't know what the problem is. If necessary ill post my config file but I don't think thats where the problem is.
 
Add this to your login.lua:
Lua:
local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
 
That should've worked....

Anyways to change it in the database for everybody just run this SQL query:
Code:
 UPDATE players SET loss_experience = 10, loss_mana = 10, loss_skills = 10, loss_items = 10;
And for 0.3.3+ run this too:
Code:
UPDATE players SET loss_containers = 10;
New players will be assigned it it too.

Make sure everyone's offline when you do it.
 
do you have in game shop system installed linking php
then you have a line missing over there

i in school i will send you msg when i get home

or download the orginal files and check out login.lua there is a line missing in your
login.lua

exp loss somthing check it out i will refer you when i get home hope you fix it alone till i get home
 
Status
Not open for further replies.
Back
Top