Beispiel #1
0
 private void ItemCommand(ZoneCharacter character, params string[] param)
 {
     ushort id = ushort.Parse(param[1]);
     byte amount = 1;
     if (param.Length > 2)
     {
         amount = byte.Parse(param[2]);
     }
       // character.GiveItem(id,amount);
     switch (character.GiveItem(id, amount))
     {
         case FiestaLib.InventoryStatus.Full:
             Handler12.InventoryFull(character);
             return;
         case FiestaLib.InventoryStatus.NotFound:
             character.DropMessage("Item not found.");
             return;
     }
 }