예제 #1
0
        /// <summary>
        /// Updates the status of an item drop in the specified clients
        /// </summary>
        static public void Object_ItemDropUpdate(IEnumerable <Player> players, ushort dropID, ushort quantity)
        {               //Create the notification packet
            SC_ItemDrop destroy = new SC_ItemDrop();

            destroy.dropID   = dropID;
            destroy.quantity = quantity;

            //Route the packet
            foreach (Player p in players)
            {
                p._client.sendReliable(destroy);
            }
        }
예제 #2
0
        /// <summary>
        /// Notifies a bunch of players of a new item drop
        /// </summary>
        static public void Object_ItemDrops(IEnumerable <Player> players, IEnumerable <Arena.ItemDrop> drop)
        {
            foreach (Arena.ItemDrop item in drop)
            {                   //Create the notification packet
                SC_ItemDrop destroy = new SC_ItemDrop();
                destroy.dropID   = item.id;
                destroy.quantity = (ushort)item.quantity;

                //Route the packet
                foreach (Player p in players)
                {
                    p._client.sendReliable(destroy);
                }
            }
        }