View Single Post
11/21/17, 04:01 AM   #7
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
I have two addons that are directly affected.
One is the thing that automatically unstuffs my inventory which I haven't updated in forever but am still using.
It would be great to be able to exclude quest items via API call*.
The other is my (currently early alpha) addOn that processes stolen items based on user preferences. Currently I'm excluding items like
Lua Code:
  1. for i=1, GetItemLinkNumItemTags(itemLink) do
  2.     local itemTagDescription, itemTagCategory = GetItemLinkItemTagInfo(itemLink, i)
  3.     for index, partial in pairs(AutoProcessStolenItems.crowStrings) do
  4.         if itemTagDescription:match(partial) then return true end
  5.     end
  6. end
which is not particularly pretty and requires me to hold the localised crow strings in a list to iterate over.

* btw, why is there an IsItemLinkCrafted(string itemLink), but not IsItemCrafted(bagId, slotId)? Would you call that internally anyway? Right now I'd have to use IsItemLinkCrafted(GetItemLink(bagId, slotId)).


Hence my request. I hope that clarifies my needs to a degree - I can't speak for the others, of course.