View Single Post
04/10/14, 02:39 AM   #11
Kith
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 49
Originally Posted by jokerfwb View Post
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:
  1. 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.
  Reply With Quote