Skip to content

Tot ! Chat V2 Enhanced ​

This library will not function if your server doesn't have the Tot ! Chat mod installed.

WARNING

The functions outlined on this page will only function on Conan Exiles Enhanced.

For Legacy version, see Tot ! Chat.

Headers ​

Some functions accept an optional headers table.

For the full list of options, please refer to Tot API docs.

GetGlobalChannelId function ​

Returns the ID of the server's main global channel.

Syntax:

lua
int TotChat.GetGlobalChannelId()

GetLocalChannelId function ​

Returns the ID of the server's main local channel.

Syntax:

lua
int TotChat.GetLocalChannelId()

SendLocal function ​

Sends a message as a player into the main local channel.

Syntax:

lua
void TotChat.SendLocal( Character player, string message [, table headers ] )

SendGlobal function ​

Sends a message as a player into the main global channel.

Syntax:

lua
void TotChat.SendGlobal( Character player, string message [, table headers ] )

Broadcast function ​

Sends a server notification (not tied to any player) into a channel.

Syntax:

lua
void TotChat.Broadcast( int channelId, string message [, string level = "Info" ] )

Level controls the notification style and can be any of: Info, Warning, Error, Success.

Notify function ​

Sends a notification to a single player, in the context of a channel.

Syntax:

lua
void TotChat.Notify( Character player, int channelId, string message [, string level = "Info" ] )

Level controls the notification style and can be any of: Info, Warning, Error, Success.

Send function ​

Sends a message as a player into any channel by ID.

Syntax:

lua
void TotChat.Send( Character player, int channelId, string message [, table headers ] )

SendInRadius function ​

Sends a message into a channel, but only to players within a radius of a position.

Syntax:

lua
void TotChat.SendInRadius( Vector position, float radius, int channelId, string message [, table headers ] )

GetPlayerLanguages function ​

Syntax:

lua
table TotChat.GetPlayerLanguages( Character player )
FieldType
guidGUID
knowledgenumber

SetPlayerLanguage function ​

Syntax:

lua
void TotChat.SetPlayerLanguage( Character player, GUID language, float knowledge )

RemovePlayerLanguage function ​

Syntax:

lua
void TotChat.RemovePlayerLanguage( Character player, GUID language )

GetServerLanguages function ​

Returns a list of all languages configured on the server.

Syntax:

lua
table TotChat.GetServerLanguages()
FieldType
guidGUID
namestring
adminOnlyboolean
universalboolean
startingKnowledgenumber

GetServerRanges function ​

Returns a list of all chat ranges configured on the server.

Syntax:

lua
table TotChat.GetServerRanges()
FieldType
guidGUID
namestring
rangenumber
eavesdropnumber
colorColor