Author Topic: Correct arguments for chatmessageclient  (Read 1221 times)

Would this be the right way to use it:
Code: [Select]
chatmessageclient(%lient,%client,'','',"\c7" @ %client.clanprefix @ "\c3" @ %client.name @ "\c7" @ %client.clansuffix @ "\c6: " @ %message,%client.clanprefix,%client.name,%client.clansuffix,%message,'','','','','','');

chatmessageclient(<person to send to>,<blank>,<blank>,<Message in it's entirity, with color codes and all>,<chatters clan prefix>,<chatters name>,<chatters clan suffix>,<message that comes after the name+tags>,<6 blank feilds>);

Would this break any client side scripts if say, I sent chat messages like that? (as opposed to just doing messageclient(<person to send to>,'',<entire chat message>);)
It's for a mod that let's you add some extra effects to chat, basically, not like colors though, that wouldn't require this.

I always used this:

Code: [Select]
%name = %cl.getPlayerName();
%pre  = %cl.clanPrefix;
%suf  = %cl.clanSuffix;
%all  = '\c7%1\c3%2\c7%3\c6: %4' @ "\c7" @ %pre @ "\c3" @ %name @ "\c7" @ %suf @ "\c6: " @ %msg;

commandToAll('chatMessage',%cl,'','',%all,%pre,%name,%suf,%msg);

(%cl and %msg come fromt the two arguments in serverCmdMessageSent)

Ours are generally the same, yes?

My point was you could use that instead of chatMessageClient since you're unsure of the parameters.

The script seems to work fine with the noise on chat mod, and the chat logger fine, but with the chat times script, the persons name comes before and after the time, and this is the code:
Code: [Select]
%entiremessage = numtoescapecolor($clantagcolor) @ %client.clanprefix @ numtoescapecolor($namecolor) @ %client.name @ numtoescapecolor($clantagcolor) @ %client.clansuffix @ numtoescapecolor($messagecolor) @ ": " @ %message;
commandToAll('chatMessage',%client,'','',%entiremessage,%client.clanprefix,%client.getPlayerName(),%client.clansuffix,%message);
The only way I can think of fixing it would be to put a ". " infront of the entire message.

The script seems to work fine with the noise on chat mod, and the chat logger fine, but with the chat times script, the persons name comes before and after the time, and this is the code:

-code-

The only way I can think of fixing it would be to put a ". " infront of the entire message.

Note this especially:

Code: [Select]
%all  = '\c7%1\c3%2\c7%3\c6: %4' @ "\c7" @ %pre @ "\c3" @ %name @ "\c7" @ %suf @ "\c6: " @ %msg;

It has the tagged string preceding what is displayed.