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

Loss Experience problem

Faraonekkk

New Member
Joined
Feb 15, 2010
Messages
686
Reaction score
4
The problem is:

When someone die he don't loose level.. i did in database "loss_experience = 5" but when someone die its deleting and don't loose level
Anyone maybe had that probleem and know how to fix it?

Regards.
 
Maybe because they loose 5 experience? lol
Really I didn't get the question, if you use Gesior you have to edit the samples and not the players.
 
go to localhost/phpmyadmin > sql
Code:
UPDATE `players` SET `loss_containers` = 10;
UPDATE `players` SET `loss_items` = 10;
data\creaturescripts\scripts\login.lua
search for
Code:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
then put this under it
Code:
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end
if you are using gesior then edit druid sample etc..
 
i did
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
end
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end

and i don't have error but this "10" is still deleting from loss_experience in database and player don't lost level
 
replace with this one
Code:
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
		end
	return true
end
Code:
update `players` set `loss_EXPERIENCE` = '100'
 
Back
Top