Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local COFIG_RATE = 1.0
- local function JONAS_getExperienceFromPlayers(attackerLevel, victimLevel, victimExp)
- return ((1 - (attackerLevel / victimLevel)) * 0.05 * victimExp) * rate
- end
- function onKill(cid, target, lastHit)
- if(isPlayer(target) == false) then
- return true
- end
- if(getCreatureGuildEmblem(cid, target) ~= EMBLEM_RED) then
- return true
- end
- JONAS_getExperienceFromPlayers(getPlayerLevel(cid), getPlayerLevel(target), getPlayerExperience(target))
- return true
- end
Add Comment
Please, Sign In to add comment