| Blockland Forums > Modification Help |
| Correct arguments for chatmessageclient |
| (1/2) > >> |
| DrenDran:
Would this be the right way to use it: --- Code: ---chatmessageclient(%lient,%client,'','',"\c7" @ %client.clanprefix @ "\c3" @ %client.name @ "\c7" @ %client.clansuffix @ "\c6: " @ %message,%client.clanprefix,%client.name,%client.clansuffix,%message,'','','','','',''); --- End code --- 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. |
| Truce:
I always used this: --- Code: ---%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); --- End code --- (%cl and %msg come fromt the two arguments in serverCmdMessageSent) |
| DrenDran:
Ours are generally the same, yes? |
| Truce:
My point was you could use that instead of chatMessageClient since you're unsure of the parameters. |
| DrenDran:
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: ---%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); --- End code --- The only way I can think of fixing it would be to put a ". " infront of the entire message. |
| Navigation |
| Message Index |
| Next page |