WoW:API LFGGetDungeonInfoByID(): Difference between revisions
Jump to navigation
Jump to search
(Created page with '{{wowapi}} Returns data about a particular instance.<br> Usage:<br> <nowiki> LFGGetDungeonInfoByID(dungeonID)</nowiki> ===Takes=== : InstanceId ===Returns=== : a table containi…') |
m (Move page script moved page API LFGGetDungeonInfoByID() to API LFGGetDungeonInfoByID() without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 20: | Line 20: | ||
expansionLevel = 8, | expansionLevel = 8, | ||
groupID = 9, | groupID = 9, | ||
texture = 10, | texture = 10, -- "Interface\\LFGFrame\\LFGIcon-"..texture | ||
difficulty = 11, | difficulty = 11, | ||
maxPlayers = 12, | maxPlayers = 12, | ||
Line 37: | Line 37: | ||
*1 | *1 | ||
*151 | *151 | ||
* | *"Interface\\LFGFrame\\LFGIcon-WAILINGCAVERNS" | ||
*1 | *1 | ||
*5 | *5 | ||
Line 47: | Line 47: | ||
/print LFGGetDungeonInfoByID(1)[LFG_RETURN_VALUES.name] | /print LFGGetDungeonInfoByID(1)[LFG_RETURN_VALUES.name] | ||
Wailing Caverns | Wailing Caverns | ||
===See Also=== | ===See Also=== |
Latest revision as of 04:46, 15 August 2023
← WoW API < LFGGetDungeonInfoByID()
Returns data about a particular instance.
Usage[edit]
LFGGetDungeonInfoByID(dungeonID)
Takes[edit]
- InstanceId
Returns[edit]
- 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, -- "Interface\\LFGFrame\\LFGIcon-"..texture 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
- "Interface\\LFGFrame\\LFGIcon-WAILINGCAVERNS"
- 1
- 5
If you wanted just the name:
/print LFGGetDungeonInfoByID(1)[LFG_RETURN_VALUES.name]
Wailing Caverns
See Also[edit]
get dungeon ID's you are queued for with GetLFGRoleUpdateSlot()
Notes[edit]
This function was added in patch 3.3.