public static void AddOre(WorldClient client, string[] args) { if (Mine == null) { client.Character.ReplyError("You must initialize your mine first. See <i>.mine init</i>."); return; } if (args.Length < 2) { client.Character.Reply(".mine addore|ao [$InteractiveId[:$Quantity=1] ...]"); client.Character.Reply(".mine <b>$InteractiveId</b> ⇒ The ID in the interactives table."); client.Character.Reply(".mine <b>$Quantity</b> ⇒ The quantity. Default is 1"); return; } for (var i = 1; i < args.Length; i++) { var split = args[i].Split(':'); ushort interactiveId = ushort.Parse(split[0]); int quantity = split.Length == 2 ? int.Parse(split[1]) : 1; int total = Mine.AddOre(interactiveId, quantity); InteractiveRecord interactiveRecord = InteractiveRecord.GetInteractive(interactiveId); client.Character.Reply($"Registered '{interactiveRecord.Name}' ({interactiveId}) x{quantity} (Total: {total})"); } }