I don't know which way you are trying to do this but look below:
You type /j and it'll perform a jump for you, I could get more complex with it but I'm just keeping it simple.
package clCmd
{
function NMH_Type::send(%this)
{
%msg = %this.getValue();
%fw = getWord(%msg,0);
if(%fw $= "/j")
{
jump(1);
schedule(100,0,jump,0);
canvas.popDialog(newMessageHud);
return true;
}
Parent::send(%this);
}
};
activatePackage(clCmd);
This way evaluates code so like if you typed, /moveForward(1); in the chat, it'll move forward for you.
package clCmd
{
function NMH_Type::send(%this)
{
%msg = %this.getValue();
if(getSubstr(%msg,0,1) $= "/")
{
%f = getSubStr(%msg,1,strLen(%msg));
%if = getSubStr(%msg,1,strStr(%msg,"(")-1);
if(isFunction(%if))
{
eval(%f);
canvas.popdialog(newmessagehud);
return true;
}
}
Parent::send(%this);
}
};
activatePackage(clCmd);