function clientcommandDerp(%this,%arg,%arg2)
i think he wants it so that when you use /quack, it calls function quack on the client, without the server
try copying truce's code for bricktext
http://forum.blockland.us/index.php?topic=140618.msg3218049#msg3218049
package clCmd{ function NMH_Type::send(%this) { %msg = %this.getValue(); %wrd = firstWord(%msg); %cmd = "clCmd" @ getSubStr(%wrd,1,strLen(%wrd)); if(getSubStr(%msg,0,1) $= "/" && isFunction(%cmd)) { %eval = "call(%cmd,"; %cnt = getWordCount(%msg); for(%i = 1; %i < %cnt; %i++) %eval = %eval @ "\"" @ getWord(%msg,%i) @ "\","; eval(getSubStr(%eval,0,strLen(%eval) - 1) @ ");"); %this.setValue(""); } Parent::send(%this); }};activatePackage(clCmd);
Use the exact code from his post, and make your command start with "clCmd".
Where would I put in the command?
Somewhere in the same .cs as the commands you want to activate?