FANDOM


SendWarningMsg(text)

Display a standard warning message and play a sound within the game client. The message will automatically fade away. The definition can be found within the module fdb\interface\worldxml\uiparent.lua.

function SendWarningMsg( text )
	PlaySoundByPath("sound\\interface\\ui_sysmsg_warning.mp3");
	WarningFrame:AddMessage(text, 0.93, 0.11, 0.14);	
end

Parameters Edit

Arguments Edit

text
string - The warning message to display.

Returns Edit

nil
void - A method call without return value.

Example Edit

local osdate = os.date();
SendWarningMsg("SendWarningMsg: os.date() returns "..osdate);

Notes Edit

The text will be displayed e.g. when like trying to cast a spell while not standing.

Related Functions Edit

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.