Kla he is the best for you coz you are like all noobs! You take only finished work.
local gainLevel = LEVEL_GAIN_FOR_KILL
if tonumber(gainLevel) == nil then
gainLevel = math.floor(getPlayerLevel(cid) * 0.2) --here you can configure how many level will be added to killer(s)
end
--print("lastHitKiller: ".. lastHitKiller) print("mostDamageKiller: ".. mostDamageKiller) print("cid: ".. cid) print("MAXIMUM_LEVEL:") print(MAXIMUM_LEVEL)
--print("\n\n\n") print(lastHitKiller ~= cid) print(MAXIMUM_LEVEL == nil) print(getPlayerLevel(mostDamageKiller) < MAXIMUM_LEVEL)
if (lastHitKiller ~= cid) and ((MAXIMUM_LEVEL == nil) or (getPlayerLevel(lastHitKiller) < MAXIMUM_LEVEL)) then
doPlayerAddLevel(lastHitKiller, gainLevel)
end
if ((mostDamageKiller ~= lastHitKiller) and (mostDamageKiller ~= cid)) and ((MAXIMUM_LEVEL == nil) or (getPlayerLevel(mostDamageKiller) < MAXIMUM_LEVEL)) then
doPlayerAddLevel(mostDamageKiller, gainLevel)
end
end
end
@Keraxel
I hope you don't stop your project.
I upgraded to 8.5 and added a lot of new changes. If you return to this great work and need some help, private me.
When Elf launch a new patch I'll rent a dedicated server for this enforced ^^
I hope you see...
IP: foxworldpvp.servegame.com
PORT: 7272
PROTOCOL: 8.5
I'm retired because of people who ripping me off. As I heard Gesior said that he can write war like mine in 15 minutes So bye Otland as now :*
Please close this thread. If someone would continue distributing The War Server leave me a private message.
PS. If anyone think that he could do it better - just do it instead of missed comments