changed

onGainExperience(target, exp)
to
onGainExperience(target, exp, rawExp)
rawExp = the exp gained without any multipliers

I've also shortened down events/scripts/creature.lua
and fixed some nullpointer issues, which could cause memory leaks.