function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if level < 160 then
exp = 5000000
elseif level > 159 and level < 170 then
exp = 6000000
elseif level > 169 and level < 180 then
exp = 7000000
elseif level > 179 and level < 190 then
exp = 8000000
else -- level 200+
exp = 9000000
end
if (isInArray({1,2,3,4}, getPlayerVocation(cid)) == TRUE) and (isInArray({5,6,7,8}, getPlayerVocation(target)) == TRUE) then
doPlayerAddExp(mostDamageKiller, exp)
elseif (isInArray({5,6,7,8}, getPlayerVocation(cid)) == TRUE) and (isInArray({1,2,3,4}, getPlayerVocation(target)) == TRUE) then
doPlayerAddExp(mostDamageKiller, exp))
end
return TRUE
end
function onKill(cid, target)
local experience = 5000000
if level >= 160 and level < 170 then
experience = 6000000
elseif level >= 170 and level < 180 then
experience = 7000000
elseif level >= 180 and level < 200 then
experience = 8000000
else -- level 200+
experience = 9000000
end
if (isInArray({1,2,3,4}, getPlayerVocation(cid)) and isInArray({5,6,7,8}, getPlayerVocation(target))) or (isInArray({5,6,7,8}, getPlayerVocation(cid)) and isInArray({1,2,3,4}, getPlayerVocation(target))) then
doPlayerAddExp(cid, experience)
end
return TRUE
end