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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 27 ■ API <strong>Reference</strong> 899RenamePetitionRenames the guild or arena team to be created by the open petition.RenamePetition(“name“)Arguments:name—New name <strong>for</strong> the guild or arena team (string)RepairAllItemsAttempts to repair all <strong>of</strong> the player’s damaged items.RepairAllItems([useGuildMoney])ConfirmationConfirmationArguments:useGuildMoney (optional)—1 to use guild bank money (if available);nil or omitted to use the player’s own money (1nil)ReplaceEnchantConfirms replacing an existing enchantment.Usable in response to the REPLACE_ENCHANT event which fires when theplayer attempts to apply a temporary or permanent enchantment to an itemwhich already has one.ReplaceTradeEnchantConfirms replacement <strong>of</strong> an existing enchantment when <strong>of</strong>fering anenchantment <strong>for</strong> trade.After confirming, the enchantment is not actually per<strong>for</strong>med until both partiesaccept the trade.RepopMeReleases the player’s spirit to the nearest graveyard.Only has effect if the player is dead.ReportPlayerIsPVPAFKReports a battleground participant as AFK.ReportPlayerIsPVPAFK(“name“) or ReportPlayerIsPVPAFK(“unit“)Arguments:name—Name <strong>of</strong> a friendly player unit in the current battleground (string)unit—A friendly player unit in the current battleground (string, unitID)RequestBattlefieldPositionsRequests in<strong>for</strong>mation from the server about team member positions in thecurrent battleground.Automatically called in the default UI by UIParent’s <strong>and</strong> <strong>World</strong>MapFrame’sOnUpdate h<strong>and</strong>lers.RequestBattlefieldScoreDataRequests battlefield score data from the server.Score data is not returned immediately; the UPDATE_BATTLEFIELD_SCOREevent fires once in<strong>for</strong>mation is available <strong>and</strong> can be retrieved by callingGetBattlefieldScore() <strong>and</strong> related functions.

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

Saved successfully!

Ooh no, something went wrong!