Hello, I would like to have a basic command script. You know, something that would serve as a base I can work off of. It could be something as easy as a spawn chicken command that the game would respond with a client message. Thats all I request this time.
function procCmd(c){
var c = c.split(' ');
switch(c[0]){
case 'command 1':
if(c[1]){
if(c[1]=="command 2"){
//do some stuff
}
}
break;
case 'other command 2':
//blablabla
break;
}
}
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
function procCmd(c){ var cmd = c.split(' '); if(cmd[0]=="command 1"){ if(cmd[1]=="command 2"){ //run some code } } }function procCmd(c){ var c = c.split(' '); switch(c[0]){ case 'command 1': if(c[1]){ if(c[1]=="command 2"){ //do some stuff } } break; case 'other command 2': //blablabla break; } }