Every time you login, open GAME CHAT.

Joined
Sep 3, 2011
Messages
3,641
Reaction score
2,268
Location
Sweden
Inside a onLogin function in creaturescripts, add this function.
Change channel_id to the channel id of Game Chat, this can be found inside chatchannels.xml.
Lua:
player:openChannel(channel_id)
 
OP
L

Lopaskurwa

Member
Joined
Oct 6, 2017
Messages
564
Reaction score
18
Inside a onLogin function in creaturescripts, add this function.
Change channel_id to the channel id of Game Chat, this can be found inside chatchannels.xml.
Lua:
player:openChannel(channel_id)
Where can i change channel names?
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,367
Reaction score
1,948
you can't edit channels whatsoever
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,367
Reaction score
1,948
Even the names?
whatsoever
aka another word for "at all"
you can't edit it at all, even the name

you sorta can but you can't add users/invited users to the chat because there's no way to get a list of current users and invited users in the channel

it'd require a source edit to get specific channel properties from a channel id
create a function in ChatChannel class to set a new name
use ProtocolGame::sendChannel to all existing players with the current list of users
probably some more stuff i can't think of
 
Last edited:
OP
L

Lopaskurwa

Member
Joined
Oct 6, 2017
Messages
564
Reaction score
18
aka another word for "at all"
you can't edit it at all, even the name

you sorta can but you can't add users/invited users to the chat because there's no way to get a list of current users and invited users in the channel

it'd require a source edit to get specific channel properties from a channel id
create a function in ChatChannel class to set a new name
use ProtocolGame::sendChannel to all existing players with the current list of users
probably some more stuff i can't think of
That moment when you say at all and then you say "sorta".
aka another word for "at all"
you can't edit it at all, even the name

you sorta can but you can't add users/invited users to the chat because there's no way to get a list of current users and invited users in the channel

it'd require a source edit to get specific channel properties from a channel id
create a function in ChatChannel class to set a new name
use ProtocolGame::sendChannel to all existing players with the current list of users
probably some more stuff i can't think of
I dont have game chat thats why i want to rename "English Chat" or "World Chat" to Game Chat
 

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,367
Reaction score
1,948
That moment when you say at all and then you say "sorta".

I dont have game chat thats why i want to rename "English Chat" or "World Chat" to Game Chat
at all in terms of what's provided by default tfs and what you'd expect a full name change to do
sorta because you can technically swap the name once you have the chat open but you can't send the active users in the chat, and it also wouldn't show up in the channel directory

if you want to change english chat or world chat just change it in chatchannels.xml lol
 

Stanos

Banned User
Joined
Jun 12, 2018
Messages
302
Reaction score
97
at all in terms of what's provided by default tfs and what you'd expect a full name change to do
sorta because you can technically swap the name once you have the chat open but you can't send the active users in the chat, and it also wouldn't show up in the channel directory

if you want to change english chat or world chat just change it in chatchannels.xml lol
Isnt it what he asked before? :D
 
OP
L

Lopaskurwa

Member
Joined
Oct 6, 2017
Messages
564
Reaction score
18
at all in terms of what's provided by default tfs and what you'd expect a full name change to do
sorta because you can technically swap the name once you have the chat open but you can't send the active users in the chat, and it also wouldn't show up in the channel directory

if you want to change english chat or world chat just change it in chatchannels.xml lol
Finally, thank you i didnt even knew that i can change name of channel in chatchannels.xml :D
 
OP
L

Lopaskurwa

Member
Joined
Oct 6, 2017
Messages
564
Reaction score
18
what?
i thought he meant changing it through lua, not xml
because xml should've been obvious from the start
I didnt even though about opening channel xml because i didnt knew that i can change it trough xml. I though it obvious that im talking about simple channel rename not about "Default" or "Server Log", because my thread is about "Game Chat" so its obvious. But w/e now.
 
Top