Thread Tools Display Modes
08/17/14, 11:21 AM   #1
dnallor
Join Date: Aug 2014
Posts: 2
Get ItemTrait from Guild Store Search

Hi, I'm new to lua scripting, initially coming from Python language.
Could someone please advise me on the following:

Is there a way to get Item Traits from Guild Store search results?

I would like to be able to gather automatic info on which item traits are available for sale and how much they cost to track when what I need in on sale for an affordable price.
  Reply With Quote
08/17/14, 11:33 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by dnallor View Post
Hi, I'm new to lua scripting, initially coming from Python language.
Could someone please advise me on the following:

Is there a way to get Item Traits from Guild Store search results?

I would like to be able to gather automatic info on which item traits are available for sale and how much they cost to track when what I need in on sale for an affordable price.
Lua Code:
  1. local itemLink = GetTradingHouseSearchResultItemLink(index, linkStyle)
  2. local traitType, traitDescription = GetItemLinkTraitInfo(itemLink)

See API documentation attached to this post:
http://www.esoui.com/forums/showthread.php?p=11157
  Reply With Quote
08/17/14, 12:00 PM   #3
dnallor
Join Date: Aug 2014
Posts: 2
Thank you for quick reply, Garkin!

It helped a lot! I've been able to write exactly the parser I needed.

before I was looking at GetItemTrait(integer bagId, integer slotIndex) and couldn't figure out where to get bagId in the store search window

Last edited by dnallor : 08/17/14 at 02:47 PM.
  Reply With Quote
08/17/14, 06:33 PM   #4
katkat42
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 155
Originally Posted by dnallor View Post
before I was looking at GetItemTrait(integer bagId, integer slotIndex) and couldn't figure out where to get bagId in the store search window
That's because there isn't one. There's a bagId for equipped items, inventory, account bank, guild bank, quest items, vendored items available for buyback, and I think deleted items. But the guild store is technically classed as a trading house.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Get ItemTrait from Guild Store Search


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