Esempio n. 1
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarLong(this.PlayerId);
     writer.WriteDouble(this.MonsterGroupId);
     writer.WriteDouble(this.AngryStartTime);
     writer.WriteDouble(this.AttackTime);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.FightType);
     writer.WriteVarShort(this.FightId);
     writer.WriteDouble(this.AttackerId);
     writer.WriteDouble(this.DefenderId);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.RequestId);
     writer.WriteDouble(this.RequesterId);
     writer.WriteVarShort(this.RequesterCellId);
     writer.WriteDouble(this.RequestedId);
     writer.WriteVarShort(this.RequestedCellId);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.FirstCharacterId);
     writer.WriteVarInt(this.FirstCharacterCurrentWeight);
     writer.WriteVarInt(this.FirstCharacterMaxWeight);
     writer.WriteDouble(this.SecondCharacterId);
     writer.WriteVarInt(this.SecondCharacterCurrentWeight);
     writer.WriteVarInt(this.SecondCharacterMaxWeight);
 }
Esempio n. 5
0
        public override void Serialize(ICustomDataWriter writer)
        {
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, Sex);
            box = BooleanByteWrapper.SetFlag(box, 1, IsRideable);
            box = BooleanByteWrapper.SetFlag(box, 2, IsWild);
            box = BooleanByteWrapper.SetFlag(box, 3, IsFecondationReady);
            box = BooleanByteWrapper.SetFlag(box, 4, UseHarnessColors);
            writer.WriteByte(box);
            writer.WriteDouble(this.Id_);
            writer.WriteVarInt(this.Model);
            writer.WriteShort(this.Ancestor.Length);
            foreach (int item in this.Ancestor)
            {
                writer.WriteInt(item);
            }
            writer.WriteShort(this.Behaviors.Length);
            foreach (int item in this.Behaviors)
            {
                writer.WriteInt(item);
            }
            writer.WriteUTF(this.Name);
            writer.WriteInt(this.OwnerId);
            writer.WriteVarLong(this.Experience);
            writer.WriteVarLong(this.ExperienceForLevel);
            writer.WriteDouble(this.ExperienceForNextLevel);
            writer.WriteByte(this.Level);
            writer.WriteVarInt(this.MaxPods);
            writer.WriteVarInt(this.Stamina);
            writer.WriteVarInt(this.StaminaMax);
            writer.WriteVarInt(this.Maturity);
            writer.WriteVarInt(this.MaturityForAdult);
            writer.WriteVarInt(this.Energy);
            writer.WriteVarInt(this.EnergyMax);
            writer.WriteInt(this.Serenity);
            writer.WriteInt(this.AggressivityMax);
            writer.WriteVarInt(this.SerenityMax);
            writer.WriteVarInt(this.Love);
            writer.WriteVarInt(this.LoveMax);
            writer.WriteInt(this.FecondationTime);
            writer.WriteInt(this.BoostLimiter);
            writer.WriteDouble(this.BoostMax);
            writer.WriteInt(this.ReproductionCount);
            writer.WriteVarInt(this.ReproductionCountMax);
            writer.WriteVarShort(this.HarnessGID);
            writer.WriteShort(this.EffectList.Length);
            foreach (ObjectEffectInteger item in this.EffectList)
            {
                item.Serialize(writer);
            }
        }
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte(0);                          // HasRights + AlreadyConnected
     writer.WriteUTF("bypass");                    // Login name
     writer.WriteUTF("ByPass");                    // Nickname
     writer.WriteInt(1);                           // Account ID
     writer.WriteByte(0);                          // Community ID
     writer.WriteUTF("Elle est ou la poulette ?"); // Secret Question
     writer.WriteDouble(0);                        // Account creation
     writer.WriteDouble(0);                        // Subscribtion elapsed
     writer.WriteDouble(0);                        // Subscription end date
     writer.WriteByte(0);                          // Havenbag available
 }
Esempio n. 7
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteShort(this.Ids.Length);
     foreach (double item in this.Ids)
     {
         writer.WriteDouble(item);
     }
     writer.WriteShort(this.DeadsIds.Length);
     foreach (double item in this.DeadsIds)
     {
         writer.WriteDouble(item);
     }
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.PaddockId);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteDouble(this.MapId);
     writer.WriteVarShort(this.SubAreaId);
     writer.WriteBoolean(this.Abandonned);
     writer.WriteShort(this.MountsInformations.Length);
     foreach (MountInformationsForPaddock item in this.MountsInformations)
     {
         item.Serialize(writer);
     }
 }
Esempio n. 9
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteVarInt(this.ElementId);
     writer.WriteVarShort(this.SkillId);
     writer.WriteDouble(this.SkillEndTime);
 }
Esempio n. 10
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.SenderId);
     writer.WriteUTF(this.SenderName);
     writer.WriteInt(this.SenderAccountId);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteDouble(this.MapId);
 }
Esempio n. 12
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.AlignmentSide);
     writer.WriteByte(this.AlignmentValue);
     writer.WriteByte(this.AlignmentGrade);
     writer.WriteDouble(this.CharacterPower);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.TargetId);
     writer.WriteVarInt(this.Loss);
     writer.WriteVarInt(this.PermanentDamages);
 }
Esempio n. 14
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteDouble(ContextualId);
     Look.Serialize(writer);
     writer.WriteShort((short)Disposition.ProtocolId);
     Disposition.Serialize(writer);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(this.EntityModelId);
     writer.WriteVarShort(this.Level);
     writer.WriteDouble(this.MasterId);
 }
Esempio n. 16
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteVarShort(this.ChallengeId);
     writer.WriteDouble(this.TargetId);
     writer.WriteVarInt(this.XpBonus);
     writer.WriteVarInt(this.DropBonus);
 }
Esempio n. 17
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteShort(this.Alliances.Length);
     foreach (AllianceInformations item in this.Alliances)
     {
         item.Serialize(writer);
     }
     writer.WriteShort(this.AllianceNbMembers.Length);
     foreach (short item in this.AllianceNbMembers)
     {
         writer.WriteVarShort(item);
     }
     writer.WriteShort(this.AllianceRoundWeigth.Length);
     foreach (int item in this.AllianceRoundWeigth)
     {
         writer.WriteVarInt(item);
     }
     writer.WriteShort(this.AllianceMatchScore.Length);
     foreach (byte item in this.AllianceMatchScore)
     {
         writer.WriteByte(item);
     }
     writer.WriteShort(this.AllianceMapWinners.Length);
     foreach (BasicAllianceInformations item in this.AllianceMapWinners)
     {
         item.Serialize(writer);
     }
     writer.WriteVarInt(this.AllianceMapWinnerScore);
     writer.WriteVarInt(this.AllianceMapMyAllianceScore);
     writer.WriteDouble(this.NextTickTime);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.TargetId);
     writer.WriteShort(this.CasterCellId);
     writer.WriteShort(this.TargetCellId);
 }
        protected override void serializeContent(ICustomDataWriter writer)
        {
            var mapPosition = GameDataManager <MapPosition> .Instance.Get(MapId);

            writer.WriteVarShort((short)mapPosition.SubAreaId);
            writer.WriteDouble(MapId);
            writer.WriteShort(0); // House count

            //writer.WriteShort(0); // Actors count
            writer.WriteShort(1); // Actors count

            var actorInfos = new GameRolePlayCharacterInformations();

            actorInfos.Initialize(Entity);
            writer.WriteShort((short)actorInfos.ProtocolId);
            actorInfos.Serialize(writer);

            writer.WriteShort(0);    // Interactive elements count
            writer.WriteShort(0);    // Stated elements count
            writer.WriteShort(0);    // Obstacles count
            writer.WriteShort(0);    // Fights count
            writer.WriteBool(false); // Has aggressive monsters

            var fightPositions = new FightStartingPositions();

            fightPositions.Serialize(writer);
        }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteDouble(this.TargetId);
     writer.WriteVarShort(this.SpellId);
     writer.WriteVarShort(this.Value);
 }
Esempio n. 21
0
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteByte(this.DelayTypeId);
     writer.WriteDouble(this.DelayEndTime);
     writer.WriteVarShort(this.ObjectGID);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(0);   // Side
     writer.WriteByte(0);   // Value
     writer.WriteByte(0);   // Grade
     writer.WriteDouble(0); // Character power
 }
Esempio n. 23
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.Type);
     writer.WriteVarShort(this.MonsterId);
     writer.WriteVarLong(this.Kamas);
     writer.WriteDouble(this.DareId);
 }
Esempio n. 24
0
        protected override void serializeContent(ICustomDataWriter writer)
        {
            // SelectedServerData (42)
            writer.WriteVarShort(211);    // Server id
            writer.WriteUTF("127.0.0.1"); // Server address
            writer.WriteShort(1);         // Number of ports
            writer.WriteInt(5556);        // Game Server port
            writer.WriteBool(false);      // Can create new character
            var ticket = Guid.NewGuid().ToString().Replace("-", "");

            writer.WriteVarInt(ticket.Length); // Ticket length
            writer.WriteUTFBytes(ticket);      // Ticket

            //SelectedServerDataExtended
            writer.WriteUShort(1); // Number of servers

            // GameServerInformations
            var byteBox = new ByteBox();

            byteBox[0] = false;        // Is Mono account
            byteBox[1] = true;         // Is Selectable
            writer.WriteByte(byteBox.Value);
            writer.WriteVarShort(211); // Server id
            writer.WriteByte(0);       // Type
            writer.WriteByte(3);       // Status
            writer.WriteByte(0);       // Completion
            writer.WriteByte(1);       // Character count
            writer.WriteByte(5);       // Character slots
            writer.WriteDouble(0);     // Date
        }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteByte(this.TeamId);
     writer.WriteDouble(this.LeaderId);
     writer.WriteByte(this.TeamSide);
     writer.WriteByte(this.TeamTypeId);
     writer.WriteByte(this.NbWaves);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     base.Serialize(writer);
     writer.WriteShort(this.MarkId);
     writer.WriteVarShort(this.MarkImpactCell);
     writer.WriteDouble(this.TriggeringCharacterId);
     writer.WriteVarShort(this.TriggeredSpellId);
 }
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteDouble(this.MasterId);
     writer.WriteDouble(this.SlaveId);
     writer.WriteShort(this.SlaveSpells.Length);
     foreach (SpellItem item in this.SlaveSpells)
     {
         item.Serialize(writer);
     }
     this.SlaveStats.Serialize(writer);
     writer.WriteShort(this.Shortcuts.Length);
     foreach (Shortcut item in this.Shortcuts)
     {
         writer.WriteShort(item.MessageId);
         item.Serialize(writer);
     }
 }
        public override void Serialize(ICustomDataWriter writer)
        {
            byte box = 0;

            box = BooleanByteWrapper.SetFlag(box, 0, HasRights);
            box = BooleanByteWrapper.SetFlag(box, 1, WasAlreadyConnected);
            writer.WriteByte(box);
            writer.WriteUTF(this.Login);
            writer.WriteUTF(this.Nickname);
            writer.WriteInt(this.AccountId);
            writer.WriteByte(this.CommunityId);
            writer.WriteUTF(this.SecretQuestion);
            writer.WriteDouble(this.AccountCreation);
            writer.WriteDouble(this.SubscriptionElapsedDuration);
            writer.WriteDouble(this.SubscriptionEndDate);
            writer.WriteByte(this.HavenbagAvailableRoom);
        }
Esempio n. 29
0
 public override void Serialize(ICustomDataWriter writer)
 {
     writer.WriteInt(this.MemberId);
     writer.WriteShort(this.WorldX);
     writer.WriteShort(this.WorldY);
     writer.WriteDouble(this.MapId);
     writer.WriteVarShort(this.SubAreaId);
 }
Esempio n. 30
0
 protected override void serializeContent(ICustomDataWriter writer)
 {
     writer.WriteByte(0b00);      // Tutorial + CanCreateNewChar
     writer.WriteInt((int)AccountId);
     writer.WriteVarUInt(262143); // Breeds visible
     writer.WriteVarUInt(262143); // Breeds available
     writer.WriteByte(0);         // Status
     writer.WriteDouble(0);       // Unlimited restat end date
 }