Blockland Forums > Modification Help
What are ALL the variables of "GlobleChat" function? (Badspot, HELP!)
Xalos:
Don't know what the blank ones are but the last five are full message, prefix, name, suffix, message. The number at the start of the full message is the tagged string. The first variable is, I'm assuming, your client.
Axolotl:
You'd much rather use serverCmdMessageSent(%client,%msg)
You can omit values.
Port:
--- Quote from: Axolotl on December 31, 2011, 09:35:19 PM ---You'd much rather use serverCmdMessageSent(%client,%msg)
You can omit values.
--- End quote ---
GlobalChat is a client-sided function. He's trying to do something client-sided.
Also:
--- Quote from: Port on December 31, 2011, 09:16:07 AM ---Why not just use commandToServer( 'messageSent', "cant" );?
NMH_Type::send()->globalChat()->commandToServer( 'messageSent', string );teamChat()->commandToServer( 'teamMessageSent', string );
I do believe the only task of globalChat or teamChat is to filter/format the chat and then send a messageSent or teamMessageSent packet to the server. You can simply skip that whole function and simply send the packet yourself.
--- End quote ---
--- Quote from: Port on December 31, 2011, 04:15:25 PM ---Why not just modify NMH_Type::send( %this )? For your information, you can get the message using NMH_Type.getValue() and modify the message using NMH_Type.setValue("whatever");
--- End quote ---
adam savage:
Ok, I am now making it Server Sided, because none of you can tell me what I want to know.