Exemple #1
0
            private static void IncomingPackets_ContainerContentsEvent(int client, ItemCollection container)
            {
                Item i;

                if (ClientInfoCollection.GetItem(client, container.Serial, out i))
                {
                    i.Container = container;
                }
                else
                {
                    Item newItem = new Item(container.Serial);
                    newItem.Container = container;
                    ClientInfoCollection.AddItem(client, newItem);
                }
            }
Exemple #2
0
 private static void IncomingPackets_WorldItemAddedEvent(int client, Item item)
 {
     ClientInfoCollection.AddItem(client, item);
 }