Alright, so I decided to make a client sided calculator. Long story short, Slick fixed all the idiot mistakes I made, then we proceeded to try and make it work, we couldn't. This is the script:
package calculator
{
function NMH_Type::send(%this)
{
%msg=%this.getValue();
Parent::send(%this);
if(getWord(%msg,0)$="+calc")
{
%str=getWords(%msg,1);
for(%i=0;%i<getWordCount(%str);%i+=2)
%mathproblem = %mathproblem@getWord(%str,%i)@getWord(%str,%i+1);
eval($clientMath::Problem=%mathproblem);
commandToServer('MessageSent',$clientMath::Problem);
}
}
};
activatepackage(calculator);
([ tt ] > [ code ])
Well it DOES react, but not in the way I wanted it to, all it did was say (for example) 1+1 if I said +calc 1+1.
I think I have to access the console (sort of) using commandtoclient or something.
Any help would be very much appreciated, thank you.