Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:World of Warcraft API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Communication === These are functions communicate with other players. Also see the [[#Channel]] and [[#Chat Window]] sections. :{{id|API|DoEmote}}("emote",["target"]) - Perform a voice emote. :{{id|API|GetDefaultLanguage}}("[[unitId|unit]]") - Returns the default language that the unit is speaking after logon. :{{id|API|GetLanguageByIndex}}(index) - Returns the language specified by the index. :{{id|API|GetNumLanguages}}() - Returns the number of languages your character can speak. (renamed from 'GetNumLaguages' 2.4) :{{id|API|GetRegisteredAddonMessagePrefixes}}(table) - Returns a table, or you can pass in a table, that will be filled in with all prefixes that were registered. (added 4.1) :{{id|API|IsAddonMessagePrefixRegistered}}(prefix) - Returns a Boolean if the prefix has been registered. (added 4.1) :{{id|API|RandomRoll}}(low, high) - Does a random roll between the two values. :{{id|API|RegisterAddonMessagePrefix}}(prefix) - Register the addon prefix to enable the [[Events/C#CHAT_MSG_ADDON|CHAT_MSG_ADDON]] event. Returns a boolean if successful could fail if it hits the client side limit of 512 prefixes. (added 4.1) :{{id|API|SendAddonMessage}}("prefix", "text", "type" [, "player"]) - Sends a message to hidden AddOn channels. (added 1.12) :{{id|API|SendChatMessage}}("msg",[ "chatType",[ "language",[ "channel"]]]) - Sends a chat message.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)