Not possible to detect them as of now by scripting (@commands show them well though), you'd have to add them and their descriptions manually.
- script CCommand -1,{
OnCommand:
if(!.@atcmd_numparameters) {
message strcharinfo(0),"Use @ccommands options to check the options.";
} else {
setarray .@options$[0],"options","bg","market";
.@str$ = strtolower(.@atcmd_parameters$[0]);
.@command = inarray(.@options$,.@str$);
switch(.@command) {
case 1:
warp "bg",0,0;
break;
case 2:
warp "market",0,0;
break;
default:
message strcharinfo(0),"Avaiaible commands:";
message strcharinfo(0),"@market: warps you to the Market.";
message strcharinfo(0),"@bg: warps you to the BattleGrounds arena.";
break;
}
}
end;
OnInit:
bindatcmd "ccommand","CCommand::OnCommand";
end;
}