示例#1
0
        private static void OnBigFuckingPacket(Packet p)//0xBF
        {
            switch (p.ReadUShort())
            {
            case 6:    //party
                switch (p.ReadByte())
                {
                case 1:
                {
                    byte count = p.ReadByte();
                    for (int i = 0; i < 10; i++)
                    {
                        party[i] = i < count?p.ReadUInt() : 0;
                    }
                }
                break;

                case 2:
                {
                    byte count = p.ReadByte();
                    p.Skip(4);
                    for (int i = 0; i < 10; i++)
                    {
                        party[i] = i < count?p.ReadUInt() : 0;
                    }
                }
                break;
                }
                break;

            case 8:    //map change
                Map = (Map)p.ReadByte();
                MapChanged.Raise();
                break;
            }
        }