Thread Tools Display Modes
03/31/14, 02:37 PM   #1
Karner
 
Karner's Avatar
Join Date: Mar 2014
Posts: 7
EVENT EXPERIENCE UPDATE (Need help)

http://wiki.esoui.com/EVENT_EXPERIENCE_UPDATE

So far; I have been working on defining the parameters. I am having trouble with the reasons; at the moment I have 0; 1; 3 and -1.

-1 is currently being confirmed.

Can anyone post any findings or suggestions as to how level xp is gained or reason ids found.
  Reply With Quote
03/31/14, 04:11 PM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
it's either a string ("levelup") or one of the following constants:

http://wiki.esoui.com/Globals#VeteranPointReason

http://wiki.esoui.com/Globals#ExperienceReason
  Reply With Quote
03/31/14, 08:06 PM   #3
Karner
 
Karner's Avatar
Join Date: Mar 2014
Posts: 7
Awesome. Cheers
  Reply With Quote
04/02/14, 10:01 AM   #4
lofblad
Join Date: Mar 2014
Posts: 1
Is reason bugged? I get the value '131136' no matter what the experience reason actually was.
  Reply With Quote
04/02/14, 10:35 AM   #5
Lodur
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 108
Originally Posted by lofblad View Post
Is reason bugged? I get the value '131136' no matter what the experience reason actually was.
eventCode is first in most events... and not listed.
  Reply With Quote
04/02/14, 12:36 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
Because the event code isn't returned as part of the event, but rather from the event handler itself. (Not that you can see the returns from an event without an event handler, but... )

/edit: in WoW, the handler passes through two arguments before those from a specific event. The frame that the registered the event and the handler is attached to, and the event name.
  Reply With Quote
04/10/14, 04:52 PM   #7
L8Knight
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 6
I think the arguments on the wiki might be wrong. This is what I use for my handler (figured out by trial and error):

Code:
function SIEB.ExperienceUpdate(reason, unitTag, currentExp, maxExp)
I have a hunch the veteran update is wrong too, but no way to test that.
  Reply With Quote
04/10/14, 06:33 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
As was mentioned a couple of times already in this thread, the event code for the event you registered for is the first return from the handler. Then comes all of the returns from the event.
  Reply With Quote
04/10/14, 07:02 PM   #9
Stormknight
 
Stormknight's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 128
I've updated the page pon the wiki with some example code, which may help.
  Reply With Quote
04/10/14, 09:30 PM   #10
L8Knight
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 6
The sample code does help. Thanks for putting that up there. I wasn't following what you were saying about the event code. Now I get it. I guess this wiki page is the RTFM for events.

Can I suggest adding a link to the "How do events work?" addon question at the top of the Events wiki page?
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » EVENT EXPERIENCE UPDATE (Need help)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off