ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Guild store item purchase (https://www.esoui.com/forums/showthread.php?t=4758)

Argusus 06/03/15 07:09 AM

Guild store item purchase
 
I have been looking at the Api on wiki, but I'm not seeing how I can register for a purchase from a guild store vendor. If possible, I'm looking for a way to track a guild store purchases item details. Does anyone have any idea ?

Halja 06/03/15 10:45 AM

Are you looking to hook into the event?
EVENT_TRADING_HOUSE_CONFIRM_ITEM_PURCHASE (integer eventCode, integer pendingPurchaseIndex)
Has the items index value. You should be able to respond to that?

Argusus 06/03/15 11:10 AM

It does look like that will be part of the solution. I guess next issue to solve is how to get to the actual item details from the item purchase index.. I guess I'll have to trial and error this.

Baertram 06/03/15 11:20 AM

If it is not sent with the event you could read it from the guild store histories somehow.

QuadroTony 06/03/15 11:22 AM

i guess he want catch even if you buy items anywhere not only from your 5 guilds

Argusus 06/03/15 11:29 AM

Perhaps, I can combine this with guild store searching events and see if I can get to the item details from there..

Argusus 06/03/15 11:30 AM

Quote:

Originally Posted by QuadroTony (Post 21420)
i guess he want catch even if you buy items anywhere not only from your 5 guilds

Correct, I'm just looking for any guild store purchases.

Argusus 06/04/15 08:13 AM

Hey guys, just an update. I have a working solution and I will post the code after I get it completed for my own use. Hopefully I'll save someone else some time.


All times are GMT -6. The time now is 05:57 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI