m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
In my testing, all my team chats have not fired a Chatted event, while all other ones do. It's crucial that I be able to access TC messages, is there any way? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Yes, it's because the substring starts with "%" or "%%" while the prefix will check at the first index. |
|
m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
So, as clarification, is it possible for a script to access team chat messages? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
I'm 99% sure yes. |
|
m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
Then why won't the Chatted event fire? I have a GUI which displays the message as soon as anyone sends one, this seems to operate properly. It displays all normal messages. However, team chat will not work, even though I have the Chatted event running on a player who is team chatting. None of the team chatted events appear. You could run a similar system with a script sending out a Message Instance every time a message is sent, if you want to simulate it.
Basically, although this seems counter-intuitive, the Chatted event doesn't seem to fire with Team Chats. However, it may be I'm doing something wrong, I'd appreciate someone trying the test themselves to verify. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Because it starts in "%%" |
|
m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
If it doesn't fire the Chatted event, then how am I supposed to detect team chats? |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
Try this:
if msg == "%%kill"
or something :) |
|
m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
..... I'm just printing a message, it doesn't really care if there are %s in the front of a message or not, it just prints them.
I don't think this guy fully understands what I'm doing. I'm not TESTING to see if a message is a team chat, I'm just printing all chats IN GENERAL. I've just noticed that I can chat millions of random messages, with whatever content, and they will print on my screen. It's just a GUI I've constructing that prints out the latest chat by someone and prints it in a text box. I noticed that team chats won't appear. |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
BUT chatted events get the full message I believe, idk try it, if not, make a gui for it. |
|
|
@OP
No, there is no way to get team chats, as the .Chatted event does not fire for them. cntkillme just doesn't know what he is talking about. |
|
m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
The chatted event does get the full message when it fires, but in my testing, when a chat starts with %, the event won't fire period. It doesn't matter if the Chatted event yields all or some if it won't fire AT ALL. In this way...
Player 1: "I'm a scripter."
My script prints "I'm a scripter."
Player 2: "Me too!"
Script prints "Me too!"
Player 1: "%SEECRET"
My script does nothing.
Player 2: "%You gotta be kidding meh."
Script does nothing.
Player 1: "SEECRET"
Script prints "SEECRET"
The script just prints the content of the Chat, it should print every chat that's sent, but it doesn't. Why not? |
|
m27frogyJoin Date: 2009-03-26 Post Count: 4427 |
Sorry, I didn't notice your message until after I was done typing. Well, that's a serious bummer. There are lots of situations when that would be really nice, like creating a custom chat filter. Just team chatting gets around any custom chat filter you could make. Bummer.... |
|
|
TenalJoin Date: 2011-05-15 Post Count: 18684 |
@six
DOM |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
@kirkyturky12
Get out, I've done this 4 years ago and it worked then, I would think it would work now.
GO AWAY UGLY |
|
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
CUZ I YOLO |
|
toshir0zJoin Date: 2009-11-03 Post Count: 425 |
For Team Chats Roblox uses a Locked :WhisperChat() Method that cannot be logged serverside, I dont know why they chose to make it non-loggable. It just is :\ |
|
toshir0zJoin Date: 2009-11-03 Post Count: 425 |
On the otherhand It is possible to log Clientside with a localscript... So it really depends on what your doing :\ |
|