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.

620 Part IV ■ <strong>Reference</strong>COMBATLOG_FILTER_UNKNOWN_UNITS—Entity is a unit currently unknownto the <strong>WoW</strong> clientReturns:isMatch—1 if the entity flags match the given mask (1nil)CombatTextSetActiveUnitSets the main unit <strong>for</strong> display <strong>of</strong> floating combat text.CombatTextSetActiveUnit(unit)Certain types <strong>of</strong> floating combat text are only displayed <strong>for</strong> the ‘‘active’’ unit(normally the player): incoming damage, incoming heals, mana/energy/power gains, low health/mana warnings, etc. This function is used by thedefault UI to allow the player’s vehicle to ‘‘st<strong>and</strong> in’’ <strong>for</strong> the player <strong>for</strong>purposes <strong>of</strong> combat text; using this function with units other than ‘‘player’’ or‘‘vehicle’’ has no effect.Arguments:unit—Unit to show main combat text <strong>for</strong> (unitid)ComplainChatReports a chat message as spam.ComplainChat(lineID) or ComplainChat(“name“ [, “text“])Used in the default UI when right-clicking the name <strong>of</strong> a player in a chatmessage <strong>and</strong> choosing ‘‘Report Spam’’ from the menu.Arguments:lineID—Unique identifier <strong>of</strong> a chat message (11th argument received with thecorresponding CHAT_MSG event) (number)name—Name <strong>of</strong> a player to complain about (string)text (optional)—Specific text to complain about (string)ComplainInboxItemReports a mail message as spam.ComplainInboxItem(mailID)Arguments:mailID—Index <strong>of</strong> a message in the player’s inbox (between 1 <strong>and</strong>GetInboxNumItems()) (number)CompleteQuestBegins turning in a quest to a questgiver.Usable following the QUEST_PROGRESS event in which it is determinedwhether the player can complete the quest.Does not complete the quest turn-in process; after calling this function, theQUEST_COMPLETE event fires as the questgiver presents rewards (or sometimesonly closure to the quest narrative); following that event, the GetQuestReward() function finishes the turn-in.

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

Saved successfully!

Ooh no, something went wrong!