Thread Tools Display Modes
07/11/15, 06:25 AM   #1
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Name of Money Update Reason constant?

Hi everybody,

I was just wonderng why there is no known constant for the reason value 63 (fence sell) of the EVENT_MONEY_UPDATE event.
I've found the official list of constants and functions by Jason Leavey of ZOS in this post.

See this file: http://cd8ba0b44a15c10065fd-24461f39...69rq3li50v.txt

But no one of the listed CURRENCY_CHANGE_REASON_* constants has a value of 63. Does everybody knows the name of the CURRENCY_CHANGE_REASON_* constant for value 63?


Thanks a lot
Keldor
  Reply With Quote
07/11/15, 06:42 AM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by Keldor View Post
Hi everybody,

I was just wonderng why there is no known constant for the reason value 63 (fence sell) of the EVENT_MONEY_UPDATE event.
I've found the official list of constants and functions by Jason Leavey of ZOS in this post.

See this file: http://cd8ba0b44a15c10065fd-24461f39...69rq3li50v.txt

But no one of the listed CURRENCY_CHANGE_REASON_* constants has a value of 63. Does everybody knows the name of the CURRENCY_CHANGE_REASON_* constant for value 63?


Thanks a lot
Keldor
63 is CURRENCY_CHANGE_REASON_SELL_STOLEN

I recommend Click4Info. perfect stuff.
  Reply With Quote
07/11/15, 07:01 AM   #3
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Originally Posted by votan View Post
63 is CURRENCY_CHANGE_REASON_SELL_STOLEN

I recommend Click4Info. perfect stuff.
Wow thank you, a very nice addon. I was interested in how the author gets the list of constants.
There is a global _G variable which contains all the constants.

With this code I could find my requested constant name.
Lua Code:
  1. for key, value in zo_insecurePairs(_G) do
  2.     if type(value) == "number" then
  3.         if(value == 63) then
  4.             d(key .. " => " .. value)
  5.         end
  6.     end
  7. end

Thanks a lot votan

Keldor
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Name of Money Update Reason constant?


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