12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

726 Part IV ■ <strong>Reference</strong>Returns:maxRankSlot—Spellbook slot index <strong>of</strong> the highest rank <strong>of</strong> that spell known tothe player (number)GetLFGPartyResultsReturns in<strong>for</strong>mation about a member <strong>of</strong> a party in Looking <strong>for</strong> More results.name, level, class, zone, comment, leader, tank, healer, damage = iGetLFGPartyResults(type, name, index, partyIndex)Can be used when the 9th return (numPartyMembers)fromGetLFGResults()is 1 or greater. The default UI uses this return to segregate results into separate‘‘Individuals’’ <strong>and</strong> ‘‘Groups’’ lists, <strong>and</strong> this function is used to populate thegroup members tooltip that appears when mousing over a group listing.Arguments:type—Index <strong>of</strong> an LFG query type (in the list returned by GetLFGTypes())(number)name—Index <strong>of</strong> an LFG entry (in the list returned by GetLFGTypeEntries(type)) (number)index—Index <strong>of</strong> a result in the Looking <strong>for</strong> More listing (between 1 <strong>and</strong>GetNumLFGResults(type,name)) (number)partyIndex—Index <strong>of</strong> a party member, not counting the party leader (between1 <strong>and</strong> select(9, GetLFGResults(type,name,index)))(number)Returns:name—Name <strong>of</strong> the party member (string)level—Party member’s character level (string)class—Localized name <strong>of</strong> the party member’s class (string)zone—The character’s current location (string)comment—Brief text comment supplied by the character (string)leader—True if the character is willing to lead a group; otherwise false(boolean)tank—True if the character is willing to take on the role <strong>of</strong> protectingallies by drawing enemy attacks; otherwise false (boolean)healer—True if the character is willing to take on the role <strong>of</strong> healing allies whotake damage; otherwise false (boolean)damage—True if the character is willing to take on the role <strong>of</strong> damaging enemies;otherwise false (boolean)GetLFGResultsReturns in<strong>for</strong>mation about a character in the Looking <strong>for</strong> More results listing.name, level, zone, class, criteria1, criteria2, criteria3, comment, inumPartyMembers, isLFM, classFileName, leader, tank, healer, damage, ibossKills, talent1, talent2, talent3, isLeader, isAutoJoin, armor, idamage, healing, meleeCrit, rangedCrit, spellCrit, manaRegen, imanaCombatRegen, attackPower, agility, maxHealth, maxPower, iavgGearRating, defense, dodge, block, parry, haste, expertise = iGetLFGResults(type, name, index)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!