Originally Posted by jokerfwb
Do you mean that it should be (reason, currentXP, maxXp, unitTag) or does it matter.
|
Not quite. The first return for (all?) events is a code that identifies the event itself which, I think for the most part, can be ignored. So for your experience event handler you'd want the following arguments:
Lua Code:
function ExperienceEventHandler(eventCode, unitTag, currentExp, maxExp, reason)
The reason argument is presumably an identifier as to where you got that exp from, ie chest, mob, zone exploration etc.