Informant/Data

De Norganna's AddOns.

Sommaire

InfData.lua

  • Informant.SetSkills = keys for trade skills and class numbers/codes, mapped to the name of the trade skill or class (used to index localized strings)
  • Informant.SetRequirements = item numbers mapped to a trade skill (by number/code) and the skill level needed to create them
  • Informant.SetVendors = vendor numbers mapped to vendor names (English only)
  • Informant.SetDatabase = item numbers mapped to item data explained below (English name of each item in comments)

Database format

[itemID]="buy:sell:class:quality:stack:additional:usedby_list:quantity:limited:merchant_list"

  1. buy: price in copper to buy from a vendor -- Armory
  2. sell: price in copper a vendor will pay -- Armory
  3. class: number index of item type (used with CLASS_TO_CATEGORY_MAP) -- WoWHead
  4. quality: numeric index of item quality -- Armory
  5. stack: maximum stack size -- WoWHead
  6. additional: additional information as a string - mostly class of item (Food, Drink, Potion, etc.)
  7. usedby_list: comma separated list of profession ids that use the item -- WoWHead
  8. quantity: stack size sold by vendor -- WoWHead
  9. limited: boolean 0/1 for whether the vendor has a limited amount. -- WoWHead
  10. merchant_list: comma separated list of ids for merchants that sell the item. -- Armory

Examples

  • [12884]="0:0:0:0:1:::0:0:", -- Arnak's Hoof
  • [2459]="100:25:0:0:5:Potion:164,165:0:0:", -- Swiftness Potion
  • [414]="125:6:0:0:20:Food::5:0:51,56,58,62,95,132,177,182,222,356,357,359,365,381,385,455,624,726,807", -- Dalaran Sharp

InfQuest.lua

  • Informant.SetQuestStarts = items that start a quest mapped to the quest number
  • Informant.SetQuestRewards = items that are quest rewards mapped to the quest number
  • Informant.SetQuestRequires = items that are required by quests mapped to the quest number
  • Informant.SetQuestNames = quest ids mapped to localized (frFR, enUS, deDE, esES, zhCN, zhTW) quest names and level (as part of the string)


Other things we could/should track

  • Vendor location - zone and coordinates
  • Vendor faction, and limit display of vendors to those the user can actually visit


Ccox 00:11, 25 Aug 2008 (EDT)

Outils personnels