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