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