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.

896 Part IV ■ <strong>Reference</strong>Fires the GUILDBANKBAGSLOTS_CHANGED event when in<strong>for</strong>mation about thetab’s contents becomes available.Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)QueryGuildBankTextRequests guild bank tab info text from the server.QueryGuildBankText(tab)The text is not returned immediately; the GUILDBANK_UPDATE_TEXT eventfires when text is available <strong>for</strong> retrieval by the GetGuildBankText()function.Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)QueryGuildEventLogRequests guild event log in<strong>for</strong>mation from the server.Fires the GUILD_EVENT_LOG_UPDATE event when event log in<strong>for</strong>mationbecomes available.QuestChooseRewardErrorCauses the default UI to display an error message indicating that the playermust choose a reward to complete the quest presented by a questgiver.Fires a UI_ERROR_MESSAGE event containing a localized message identified bythe global variable ERR_QUEST_MUST_CHOOSE. Choose wisely.QuestFlagsPVPReturns whether accepting the <strong>of</strong>fered quest will flag the player <strong>for</strong> PvP.questFlag = QuestFlagsPVP()Only valid when the questgiver UI is showing the accept/decline stage <strong>of</strong> aquest dialog (between the QUEST_DETAIL <strong>and</strong> QUEST_FINISHED events);otherwise may return nil or a value from the most recently displayed quest.Returns:questFlag—1 if accepting the quest will flag the player <strong>for</strong> PvP <strong>for</strong>as long as it remains in the quest log; otherwise nil (1nil)QuestLogPushQuestShares a quest with other group members.QuestLogPushQuest([questIndex])Arguments:questIndex (optional)—Index <strong>of</strong> a quest in the quest log (between 1 <strong>and</strong>GetNumQuestLogEntries()); if omitted, defaults to the selected quest (number)QuitAttempts to exit the <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong> client.

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

Saved successfully!

Ooh no, something went wrong!