Exemplo n.º 1
0
        public static void MobileQuery(NetState state, CircularBufferReader reader, ref int packetLength)
        {
            var from = state.Mobile;

            if (from == null)
            {
                return;
            }

            reader.ReadInt32(); // 0xEDEDEDED
            int type = reader.ReadByte();
            var m    = World.FindMobile(reader.ReadUInt32());

            if (m == null)
            {
                return;
            }

            switch (type)
            {
            case 0x04:     // Stats
            {
                m.OnStatsQuery(from);
                break;
            }

            case 0x05:
            {
                m.OnSkillsQuery(from);
                break;
            }

            default:
            {
                reader.Trace(state);
                break;
            }
            }
        }