API SendChat

From Vendetta Lua
Jump to: navigation, search


Definition: SendChat(string msg, string dst, string dstparam) -> nil
Send a message to the provided destination.
msg the message
dst destination
known destinations:
"SAY" sector chat
"SECTOR" sector chat
"STATION" station chat
"PRIVATE" private chat. requires char parameter
"CHANNEL" chat chat
"SYSTEM" system chat
"GROUP" group chat
"GUILD" guild chat
"MISSION" mission chat. to activate reply buttons in the mission log send numbers. where 1 correspondends to the top most button
dstparam if dst = PRIVATE, the player to send the message, if dst = CHANNEL the channel to send the message (nil for current channel)

SendChat("Hi", "PRIVATE", "dude") -> nil

send the message "Hi" to player dude