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.

762 Part IV ■ <strong>Reference</strong>Only valid when the questgiver UI is showing the accept/decline stage <strong>of</strong> aquest dialog (between the QUEST_COMPLETE <strong>and</strong> QUEST_FINISHED events);otherwise may return the empty string or a value from the most recentlydisplayed quest.Returns:questObjective—The objective text <strong>for</strong> the currently displayed quest(string)GetOptOutOfLootReturns whether the player has opted out <strong>of</strong> loot rolls.isOptOut = GetOptOutOfLoot()When opting out, no prompt will be shown <strong>for</strong> loot which ordinarily wouldprompt the player to roll (need/greed) or pass; the loot rolling process willcontinue <strong>for</strong> other group members as if the player had chosen to pass on everyroll.Returns:isOptOut—1 if the player has opted out <strong>of</strong> loot rolls; otherwise nil (1nil)GetOwnerAuctionItemsRequests data from the server <strong>for</strong> the list <strong>of</strong> auctions created by the player.The AUCTION_OWNED_LIST_UPDATE event fires if new data is available; listingin<strong>for</strong>mation can then be retrieved using GetAuctionItemInfo() or otherAuction APIs.GetPVPDesiredReturns whether the player has manually enabled PvP status.isPVPDesired = GetPVPDesired()Only indicates whether the player has manually <strong>and</strong> directly enabled his PvPflag (e.g. by typing ‘‘/pvp’’ or using the default UI’s menu when right-clickingthe player portrait); returns 0 if the player only became PvP flagged byattacking an enemy player, entering an enemy zone, etc.Returns:isPVPDesired—1 if the PVP flag was toggled on by the player manually; otherwise0 (number)GetPVPLifetimeStatsReturns the player’s lifetime total <strong>of</strong> honorable kills <strong>and</strong> highest rank achieved.hk, highestRank = GetPVPLifetimeStats()Highest rank achieved applies only to the older PvP rewards system that wasab<strong>and</strong>oned with the <strong>WoW</strong> 2.0 patch, but is still accurate <strong>for</strong> players whoparticipated in it.Returns:hk—Number <strong>of</strong> honorable kills the player has scored (number)highestRank—Highest rank the player ever achieved in the pre-2.0 PvPrewards system (number)

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

Saved successfully!

Ooh no, something went wrong!