GHI_SendChatMessage

Pilus edited this page Aug 11, 2015 · 1 revision

Syntax:

GHI_SendChatMessage(text, chatType, language, channel, delay[, evtManualItemGuid])

Arguments:

GHI_SendChatMessage has 1 required argument and 5 optional arguments.

text
''String''
The message to be sent.
chatType [optional]
''String''
This is the type of chat being done. if none is specified it defaults to SAY. You can find reference for this at www.wowprogramming.com[http://wowprogramming.com/docs/api/SendChatMessage]
language [optional]
''String''
This is the language the message is to be spoken in. If none is specified it defaults to the faction language.
channel [optional]
''String''
This is the channel to send the message to or the target of a whisper.
delay [optional]
''Number''
This is a delay between use and the chat message being sent, measured in seconds.
evtManualItemGuid [optional]
''(String)''
If you wish the item to use another item as the target for the %L variable then enter it here.

Aliases:

  • SendChatMessage()

Example:

local message = "Run Away! The %L is about to explode."

GHI_SendChatMessage(message, "RAID_WARNING", "Gnomish", nil, 5)

This script announces to the raid, in Gnomish, that the item is about to explode

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.