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.

594 Part IV ■ <strong>Reference</strong>CanComplainInboxItemReturns whether a mail message can be reported as spam.complain = CanComplainInboxItem(mailID)Returns nil <strong>for</strong> messages from Game Masters or friends, as well as <strong>for</strong> messagesgenerated by the game itself (Auction House mail, quest messages from NPCs,etc).As with most mail functions, only provides valid in<strong>for</strong>mation if used while themail UI is open (between the MAIL_SHOW <strong>and</strong> MAIL_CLOSE events).Arguments:mailID—Index <strong>of</strong> a message in the player’s inbox (between 1 <strong>and</strong>GetInboxNumItems()) (number)Returns:complain—1 if the inbox item can be reported as spam; otherwise nil (1nil)CanEditGuildEventReturns whether the player is allowed to edit guild-wide calendar events.canEdit = CanEditGuildEvent()Returns:canEdit—1 if the player can create or edit guild calendar events, otherwise nil(1nil)CanEditGuildInfoReturns whether the player is allowed to edit the guild in<strong>for</strong>mation text.canEdit = CanEditGuildInfo()This text appears when clicking the ‘‘Guild In<strong>for</strong>mation’’ button in the defaultUI’s Guild window.Returns:canEdit—1 if the player can edit the guild in<strong>for</strong>mation; otherwise nil (1nil)CanEditGuildTabInfoReturns whether the player is allowed to edit a guild bank tab’s iin<strong>for</strong>mation.canEdit = CanEditGuildTabInfo(tab)Arguments:tab—Index <strong>of</strong> a guild bank tab (between 1 <strong>and</strong> GetNumGuildBankTabs())(number)Returns:canEdit—1 if the player can edit the guild bank tab; otherwise nil (1nil)CanEditMOTDReturns whether the player is allowed to edit the guild Message <strong>of</strong> the Day.canEdit = CanEditMOTD()Returns:canEdit—1 if the player can edit the guild MOTD, otherwise nil (1nil)

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

Saved successfully!

Ooh no, something went wrong!