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

Lua Death Bug

sonny11

New Member
Joined
Dec 22, 2007
Messages
137
Reaction score
0
A week or so ago, i had a death bug where they were resetted back to level 1. Which was fixed.

I updated the loss_experience to 100 and removed the lessloss="30" in vocation.xml

But i wan't to make it so that when they have the promotion, it reduces the amount of levels they loose when they die.

I want to do it so that it reduces the amount of levels lost in the blessing.

How is that possible?
 
I have removed the lessloss="30" in vocations.xml

Should i add it back in?

Reason why i don't think i should add it back in is because it will change the players loss_experience to 30? which will probably cause the players to go back to level 1?
 
@CyberM In onlogin.lua i put
Code:
local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 100)
	end

and i updated all players in the database to loss_experience to 100.
 
Back
Top