Lopaskurwa
Active Member
- Joined
- Oct 6, 2017
- Messages
- 873
- Solutions
- 2
- Reaction score
- 49
Using tfs 1.2
player:openChannel(channel_id)
player:openChannel(channel_id)
Where can i change channel names?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)
Even the names?you can't edit channels whatsoever
Even the names?
aka another word for "at all"whatsoever
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 Chataka 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
at all in terms of what's provided by default tfs and what you'd expect a full name change to doThat 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
Isnt it what he asked before?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.xmlat 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
what?Isnt it what he asked before?
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.what?
i thought he meant changing it through lua, not xml
because xml should've been obvious from the start