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.

Chapter 27 ■ API <strong>Reference</strong> 621ConfirmationConfirmationConfirmAcceptQuestAccepts a quest started by another group member.Usable following the QUEST_ACCEPT_CONFIRM event which fires when anothermember <strong>of</strong> the player’s party or raid starts certain quests (e.g. escort quests).ConfirmBindOnUseConfirms using an item, if using the item causes it to become soulbound.Usable in response to the USE_BIND_CONFIRM which fires when the playerattempts to use a ‘‘Bind on Use’’ item.ConfirmBinderSets the player’s Hearthstone to the current location.Usable in response to the CONFIRM_BINDER event which fires upon speaking toan Innkeeper (or similar NPC) <strong>and</strong> choosing the Hearthstone option.ConfirmLootRollConfirms the player’s intent regarding an item up <strong>for</strong> loot rolling.ConfirmLootRoll(id, rollType)ConfirmationUsable after the CONFIRM_LOOT_ROLL event fires, warning that an item bindson pickup.Arguments:id—Index <strong>of</strong> an item currently up <strong>for</strong> loot rolling (as provided in theSTART_LOOT_ROLL event) (number)rollType—Type <strong>of</strong> roll action to per<strong>for</strong>m (number)0—Pass (declines the loot)1—Roll ‘‘need’’ (wins if highest roll)2—Roll ‘‘greed’’ (wins if highest roll <strong>and</strong> no other member rolls ‘‘need‘‘)ConfirmLootSlotConfirms picking up an item available as loot.ConfirmLootSlot(slot)Usable after the LOOT_BIND_CONFIRM event fires, warning that an item bindson pickup.Arguments:slot—Index <strong>of</strong> a loot slot (between 1 <strong>and</strong> GetNumLootItems())(number)ConfirmReadyCheckResponds to a ready check.ConfirmReadyCheck(ready)Arguments:ready—True to report as ‘‘ready‘‘; false to report as ‘‘not ready’’ (true)ConfirmSummonAccepts an <strong>of</strong>fered summons, teleporting the player to the summoner’slocation.

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

Saved successfully!

Ooh no, something went wrong!