This page documents a user-defined function that you can copy and paste into your addon. Replace <PREFIX> with your AddOn's prefix to avoid conflicts between different versions of these functions.
User defined functions < printMSG

Displays a custom message to the default chat frame, for the user to see. A prefix and suffix can also be added, with ease, in the function. This is just to save you from typing out, DEFAULT_CHAT_FRAME:AddMessage("Prefix " .. "Hello world!" .. " Suffix", 1, 1, 1); everytime you want to tell the user something.

<PREFIX>_printMSG("Hello world!");

Function Parameters Edit

Arguments Edit

String - This is the message you wish to display.

Returns Edit


Example Edit

<PREFIX>_printMSG("Hello world!");


Displays the words Prefix Hello world! Suffix, in the default chat frame.


 function <PREFIX>_printMSG(msg)
    DEFAULT_CHAT_FRAME:AddMessage("Prefix " .. msg .. " Suffix", 1, 1, 1);

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.