Example #1
0
 public static void Handle(Entities.GameClient client, ItemPacket packet)
 {
     if (client.Booth == null)
         return;
     uint uid = packet.UID;
     if (client.Inventory.ContainsByUID(uid))
     {
         Data.BoothItem boothItem = new ProjectX_V3_Game.Data.BoothItem(true);
         boothItem.ItemUID = uid;
         boothItem.Price = packet.Data1;
         if (client.Booth.BoothItems.TryAdd(uid, boothItem))
         {
             client.Send(packet);
         }
     }
 }
Example #2
0
        public static void Handle(Entities.GameClient client, ItemPacket packet)
        {
            if (client.Booth == null)
            {
                return;
            }
            uint uid = packet.UID;

            if (client.Inventory.ContainsByUID(uid))
            {
                Data.BoothItem boothItem = new ProjectX_V3_Game.Data.BoothItem(true);
                boothItem.ItemUID = uid;
                boothItem.Price   = packet.Data1;
                if (client.Booth.BoothItems.TryAdd(uid, boothItem))
                {
                    client.Send(packet);
                }
            }
        }