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> 625Returns:hasMacro—1 if the cursor is currently holding a macro; otherwise nil (1nil)CursorHasMoneyReturns whether an amount <strong>of</strong> the player’s money is on the cursor.hasMoney = CursorHasMoney()Returns nil if the cursor holds guild bank money. See GetCursorInfo() <strong>for</strong>more detailed in<strong>for</strong>mation.Returns:hasMoney—1 if the cursor is currently holding an amount <strong>of</strong> the player’s money;otherwise nil (1nil)CursorHasSpellReturns whether a spell is on the cursor.hasSpell = CursorHasSpell()See GetCursorInfo() <strong>for</strong> more detailed in<strong>for</strong>mation.Returns:hasSpell—1 if the cursor is currently holding a spell; otherwise nil (1nil)DeclineArenaTeamDeclines an arena team invitation.DeclineGroupDeclines an invitation to join a party or raid.Usable in response to the PARTY_INVITE_REQUEST event which fires when theplayer is invited to join a group.DeclineGuildDeclines an <strong>of</strong>fered guild invitation.Usable in response to the GUILD_INVITE_REQUEST event which fires when theplayer is invited to join a guild.DeclineInviteDeclines an invitation to a chat channel.DeclineInvite(“channel“)Usable in response to the CHANNEL_INVITE_REQUEST event which fires whenthe player is invited to join a chat channel.Arguments:channel—Name <strong>of</strong> a chat channel (string)DeclineLFGMatchDeclines a proposed LFG match.Usable after a group match has been proposed to the player via theLFG_MATCH_REQUEST event.DeclineLevelGrantRefuses a level <strong>of</strong>fered by the player’s Recruit-a-Friend partner.

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

Saved successfully!

Ooh no, something went wrong!