View Single Post
02/02/18, 01:53 AM   #4
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
SurveyTheWorld

Hey,

directly from the source of this: SurveyTheWorld

Lua Code:
  1. local treasure          = SPECIALIZED_ITEMTYPE_TROPHY_TREASURE_MAP
  2. local survey            = SPECIALIZED_ITEMTYPE_TROPHY_SURVEY_REPORT
  3. surveyNames             = {}
  4. treasureNames           = {}
  5.  
  6. for slotId = 0, numBagSlots do 
  7.     local itemType, sItemType = GetItemType(bagId, slotId)
  8.     if itemType == ITEMTYPE_TROPHY and (sItemType == treasure or sItemType == survey) then
  9.         local itemName = string.lower(zo_strformat(GetItemName(bagId, slotId)):match "^%s*(.-)%s*$")
  10.         table.insert(((sItemType == survey and surveyNames) or treasureNames), itemName)
  11.     end
  12. end
  Reply With Quote