public override void ExecuteCommand(Client client, Identity target, string[] args) { Client targetClient; if ((targetClient = FindClient.FindClientByName(args[1])) != null) { bool hasNano = (this.HasNano(Convert.ToInt32(args[2]), targetClient)); if (hasNano == false) { targetClient.Character.UploadNano(Convert.ToInt32(args[2])); UploadNanoupdate.Send(targetClient.Character, 53019, Convert.ToInt32(args[2])); return; } targetClient.SendChatText("The nano already exists in nano programs.."); } }
public bool FunctionExecute(Dynel Self, Dynel Caller, object Target, object[] Arguments) { ((Character)Self).UploadNano((Int32)Arguments[0]); UploadNanoupdate.Send((Character)Self, 53019, (Int32)Arguments[0]); return(true); }