Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetTrackingInfo

Last wiki revision 2022-08-03

Returns tracking info by index. name, texture, active, category, nested = GetTrackingInfo(id)

  • id: - tracking type index, ascending from 1 to GetNumTrackingTypes.
  • name: - Track name.
  • texture: - fileID for the Track texture.
  • active: - If the track is active, it will return 1 but otherwise nil.
  • category: - Track category, returns "spell" if the tracking method is a spell in the spellbook or "other" if it's a static tracking method.
  • nested: - Nesting level, returns -1 for items at the root level, TOWNSFOLK for items in the Townsfolk dropdown, and HUNTER_TRACKING for Hunter tracking spells.

Gathers information for the first option on the tracking list and lists it in the default chatframe: local name, texture, active, category = GetTrackingInfo(1); DEFAULT_CHAT_FRAME:AddMessage(name.." ("..category..")");

Lists all tracking methods, name and category in the default chatframe: local count = GetNumTrackingTypes; for i=1,count do local name, texture, active, category = GetTrackingInfo(i); DEFAULT_CHAT_FRAME:AddMessage(name.." ("..category..")"); end

  • If the player has tracking spells, those will only be accessible to this function after the player's spellbook has been loaded from the server: consider waiting for before querying.

Source

https://warcraft.wiki.gg/wiki/API_GetTrackingInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.