Thread Tools Display Modes
09/26/14, 05:30 PM   #1
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
Trading Event Items

Hello,

is there a way to capture the items that are being traded when a trade is completed?
  Reply With Quote
09/27/14, 02:53 PM   #2
katkat42
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 155
Well, you could always track the items as they're added, removed, or changed in the trade, and then record them when the trade succeeds (or clear them if the trade is cancelled). There are events that are triggered by each of these. You can get items' info using:
Lua Code:
  1. GetTradeItemInfo(TradeParticipant who, luaindex tradeIndex)
  2. Returns: string name, textureName icon, integer stack, integer quality
  3.  
  4. GetTradeItemLink(TradeParticipant who, luaindex tradeIndex, LinkStyle linkStyle)
  5. Returns: string link
(either one, but you can get more info from a link)

That's how I'd probably approach it, anyway.
  Reply With Quote
09/27/14, 06:40 PM   #3
Argusus
AddOn Author - Click to view addons
Join Date: Sep 2014
Posts: 120
awesome thanks. I'm trying to use the API but never know where to find this info.. thanks again!!
  Reply With Quote
09/28/14, 07:38 PM   #4
katkat42
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 155
In that case, I point you to an official forum post that has a textfile attachment containing all top-level functions, events, and UI element structs, ESOUI's wiki, and to the Zgoo add-on that lets you inspect the global namespace.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Trading Event Items


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