Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

GlobalChatSendMsg

Sends a message to the current global chat channel.

MsgText — the text of the message to send.

The character must be in a chat channel (see GlobalChatJoinChannel) for the message to be delivered.

Отправляет сообщение в текущий канал глобального чата.

MsgText — текст отправляемого сообщения.

Персонаж должен находиться в чат-канале (см. GlobalChatJoinChannel), чтобы сообщение было доставлено.

Pascal

procedure GlobalChatSendMsg(MsgText: String);

Python

def GlobalChatSendMsg(MsgText: str) -> None: ...

Pascal Example

begin
  if GlobalChatActiveChannel <> '' then
    GlobalChatSendMsg('Hello from Stealth!')
  else
  begin
    GlobalChatJoinChannel('General');
    Wait(500);
    GlobalChatSendMsg('Hello from Stealth!');
  end;
end.

Python Example

if GlobalChatActiveChannel():
    GlobalChatSendMsg('Hello from Stealth!')
else:
    GlobalChatJoinChannel('General')
    Wait(500)
    GlobalChatSendMsg('Hello from Stealth!')

See Also

GlobalChatJoinChannel, GlobalChatLeaveChannel, GlobalChatActiveChannel, GlobalChatChannelsList