internal S_GET_USER_LIST(TeraMessageReader reader) : base(reader)
        {
            var count  = reader.ReadUInt16();
            var offset = reader.ReadUInt16();

            for (var i = 1; i <= count; i++)
            {
                reader.BaseStream.Position = offset - 4;
                var pointer = reader.ReadUInt16();
                Debug.Assert(pointer == offset);//should be the same
                var nextOffset = reader.ReadUInt16();
                reader.Skip(16);
                var playerId = reader.ReadUInt32();
                reader.Skip(286);
                var guildId = reader.ReadUInt32();
                PlayerGuilds.Add(playerId, guildId);
                offset = nextOffset;
            }
        }
示例#2
0
        internal S_GET_USER_LIST(TeraMessageReader reader) : base(reader)
        {
            var count  = reader.ReadUInt16();
            var offset = reader.ReadUInt16();

            for (var i = 1; i <= count; i++)
            {
                reader.BaseStream.Position = offset - 4;
                var pointer = reader.ReadUInt16();
                Trace.Assert(pointer == offset);//should be the same
                var nextOffset = reader.ReadUInt16();
                reader.Skip(14);
                var gNameOffset = reader.ReadUInt16();
                var playerId    = reader.ReadUInt32();
                reader.Skip(294);
                reader.Skip(121);//added accessory transformation
                var guildId = reader.ReadUInt32();
                reader.BaseStream.Position = gNameOffset - 4;
                var gName = reader.ReadTeraString();
                PlayerGuilds.Add(playerId, guildId);
                PlayerGuildNames.Add(playerId, gName);
                offset = nextOffset;
            }
        }