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

UOSayColor

Sends a speech message from the character to the game world with a specified color.

Text — the message text to say.

Color — UO hue value for the text color.

The character must be in the game world. If not, a debug message is logged and the call is ignored.

Does nothing if the character is not connected.

Отправляет речевое сообщение от персонажа в игровой мир с указанным цветом.

Text — текст сообщения.

Color — значение UO hue для цвета текста.

Персонаж должен находиться в игровом мире. Если нет — логируется отладочное сообщение и вызов игнорируется.

Не выполняет действий, если персонаж не подключён.

Pascal

procedure UOSayColor(Text: String; Color: Word);

Python

def UOSayColor(Text: str, Color: int) -> None: ...

Pascal Example

begin
  UOSayColor('Warning: danger ahead!', $0021);  // red-ish
  UOSayColor('All clear', $0040);  // green-ish
end.

Python Example

UOSayColor('Warning: danger ahead!', 0x0021)
UOSayColor('All clear', 0x0040)

See Also

UOSay, ClientPrint