ESO event registration
Hi Guys,
I am struggling with something that is probably fundamentally easy. I have written a quick addon that prints xp to screen. at present it is triggering on update. obviously this is not optimal. So i want it to only update on xp gain. But I can't seem to get the event to actually work. here is my current code. Code:
local curXP = GetUnitXP("Player") Code:
<OnMouseDown> What am i doing wrong with event registration? |
You have
EVENT_EXPERIENCE_GAIN (integer value, integer reason) EVENT_EXPERIENCE_GAIN_DISCOVERY (string areaName, integer value) EVENT_EXPERIENCE_UPDATE (string unitTag, integer currentExp, integer maxExp, integer reason) The Update one occurs when someone levels in your vicinity. The calling function you are using right but the function being used isn't being utilised properly. Lua Code:
As you can see the eventID is needed in the function you use to process the event. Some events are still to have their parameters discovered but they always have the eventID as their first parameter. I also notice that you had it as GAINED rather than GAIN. Quite understandable. |
Thank you so much
really appreciate your help worked a charm |
All times are GMT -6. The time now is 04:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI