API GetLFGRoleShortageRewards

From Wowpedia
Jump to: navigation, search

Return information concerning the LFG Call to Arms rewards.

eligible, forTank, forHealer, forDamage, itemCount, money, xp = GetLFGRoleShortageRewards(dungeonID, shortageSeverity)

Arguments

dungeonID 
Number - The type of the dungeons to queue for. See table below.
shortageSeverity 
Number - A number from 1 to LFG_ROLE_NUM_SHORTAGE_TYPES. See below for specific shortage types.

Returns

eligible, forTank, forHealer, forDamage, itemCount, money, xp
eligible 
Boolean - Unknown. Possibly whether there are any shortages of this type, possibly whether the player is somehow eligible to participate
forTank 
Boolean - Whether this shortage type applies to the tank role
forHealer 
Boolean - Whether this shortage type applies to the healer role
forDamage 
Boolean - Whether this shortage type applies to the damage role
itemCount 
Number - Unknown. Related to the potential rewards
money 
Number - Unknown. Most likely the amount of money you get as a reward
xp 
Number - Unknown. Most likely the amount of xp you get as a reward

Dungeon IDs

ID Type
258 Random Classic Dungeon
259 Random Burning Crusade Dungeon
260 Random Burning Crusade Heroic
261 Random Lich King Dungeon
262 Random Lich King Heroic
300 Random Cataclysm Dungeon
301 Random Cataclysm Heroic
434 Random Hour of Twilight Heroic
462 Random Mists of Pandaria Heroic
463 Random Mists of Pandaria Dungeon
744 Random Timewalking Dungeon
788 Random Warlords of Draenor Dungeon
789 Random Warlords of Draenor Heroic
1045 Random Legion Dungeon
1046 Random Legion Heroic
1670 Random Battle for Azeroth Dungeon
1671 Random Battle For Azeroth Heroic

The following snippet can be used to regenerate this list (for use with future patches):

for i = 1, GetNumRandomDungeons() do
  local id, name = GetLFGRandomDungeonInfo(i)
  print(id .. ": " .. name)
end

Shortage Severities

LFG_ROLE_SHORTAGE_RARE - 1
LFG_ROLE_SHORTAGE_UNCOMMON - 2
LFG_ROLE_SHORTAGE_PLENTIFUL - 3