private void ProcessItem(MapClient client, string args) { if (args == "") { client.SendSystemMessage(LocalManager.Instance.Strings.ATCOMMAND_ITEM_PARA); } else { try { uint id = uint.Parse(args); Item item = ItemFactory.Instance.GetItem(id); if (item != null) { InventoryAddResult result = client.Character.Inventory.AddItem(ContainerType.BODY, item); client.SendItemAdd(item, ContainerType.BODY, result, 1); } else { client.SendSystemMessage(LocalManager.Instance.Strings.ATCOMMAND_ITEM_NO_SUCH_ITEM); } } catch (Exception) { } } }
internal void SendItemAdd(Item item, ContainerType containerType, InventoryAddResult result, int p) { throw new NotImplementedException(); }