View Single Post
09/30/15, 02:14 PM   #14
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
@Wandermey: The IsItemLinkBookKnown method is what I use in AGS to filter motifs. They are listed in the lore library, so this works the same as with recipes.
Lua Code:
  1. function KnownMotifFilter:FilterPageResult(index, icon, name, quality, stackCount, sellerName, timeRemaining, purchasePrice)
  2.     local itemLink = GetTradingHouseSearchResultItemLink(index, LINK_STYLE_BRACKETS)
  3.     local isKnown = IsItemLinkBookKnown(itemLink)
  4.     return (self.showUnknown and not isKnown) or (self.showKnown and isKnown)
  5. end
  Reply With Quote