AddOn Stud… Editing (section) World of Warcraft API 0 You are not logged in. The rich text editor does not work with JavaScript switched off. Please either enable it in your browser options, or visit your preferences to switch to the old MediaWiki editor === 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. Loading editor Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above. Insert: – — … ° ≈ ≠ ≤ ≥ ± − × ÷ ← → · § Sign your username: ~~~~ Wiki markup: {{}} | [] [[]] [[Category:]] #REDIRECT [[]] <s></s> <sup></sup> <sub></sub> <code></code> <blockquote></blockquote> <ref></ref> {{Reflist}} <references/> <includeonly></includeonly> <noinclude></noinclude> {{DEFAULTSORT:}} <nowiki></nowiki> <!-- --> <span class="plainlinks"></span> Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶ # ¹ ² ³ ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ ⅞ ∞ ‘ “ ’ ” «» ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥ ♠ ♣ ♥ ♦ View this template This field is a spam trap. DO NOT fill it in! Edit summary Preview Mobile Desktop Show changes