示例#1
0
 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) { }
     }
 }
示例#2
0
 internal void SendItemAdd(Item item, ContainerType containerType, InventoryAddResult result, int p)
 {
     throw new NotImplementedException();
 }
示例#3
0
 internal void SendItemAdd(Item item, ContainerType containerType, InventoryAddResult result, int p)
 {
     throw new NotImplementedException();
 }