• 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 Exp Server War

Carlitos Flow

Developer (lvl*1)
Joined
Mar 2, 2011
Messages
156
Solutions
4
Reaction score
10
Why if im lvl 230 and kill a lvl 190 don't get experience? i don't get nothing only if the player low lvl kill me get exp normally?

Script:

if byPlayer == 1 then and right below it add
local killerLvl = getPlayerLevel(killer)
local victimLvl = getPlayerLevel(cid)
local victimExpLoss = ((victimLvl+50)/100)*(50*(victimLvl^2-((5*victimLvl)+8)))
local killerGain = victimExpLoss if killerLvl < victimLvl then
doPlayerAddExp(killer,killerGain)
end
 
That shouldn't give anyone experience for anything, because it's not working script. Only thing it would do is throw an error on startup/reload.

Assuming you do have a complete script, this is the line that prevents higher lvls from getting exp from lower lvls:
Code:
if killerLvl < victimLvl
 
Back
Top