WoW API: LFGGetDungeonInfoByID()

From AddOn Studio
Revision as of 07:00, 9 December 2009 by WoWWiki>Peeka (Created page with '{{wowapi}} Returns data about a particular instance.<br> Usage:<br> <nowiki> LFGGetDungeonInfoByID(dungeonID)</nowiki> ===Takes=== : InstanceId ===Returns=== : a table containi…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < LFGGetDungeonInfoByID()

Returns data about a particular instance.

Usage

LFGGetDungeonInfoByID(dungeonID)

Takes

InstanceId

Returns

a table containing 12 values.
 LFG_RETURN_VALUES = {
 name = 1,
 typeID = 2,
 minLevel = 3,
 maxLevel = 4,
 recLevel = 5,	--Recommended level
 minRecLevel = 6,	--Minimum recommended level
 maxRecLevel = 7,	--Maximum recommended level
 expansionLevel = 8,
 groupID = 9,
 texture = 10,
 difficulty = 11,
 maxPlayers = 12,
 }
 --(from LFGframe.lua)

For Example,

/print (LFGGetDungeonInfoByID(1))

will return data about Wailing caverns. Something like (I guessed at the values)

  • Wailing Caverns
  • 1
  • 15
  • 30
  • 20
  • 40
  • 1
  • 151
  • //texture/file
  • 1
  • 5


If you wanted just the name:

/print LFGGetDungeonInfoByID(1)[LFG_RETURN_VALUES.name]

Wailing Caverns


See Also

get dungeon ID's you are queued for with GetLFGRoleUpdateSlot()

Notes

This function was added in patch 3.3.