Exemple #1
0
        public void SaveToCharacter()
        {
            var chr = Client.Character;

            chr.Experience = Experience;
            chr.Level      = Level;
            chr.Tex1       = Texture1;
            chr.Tex2       = Texture2;
            // Pet
            chr.Fame          = Fame;
            chr.HP            = HP;
            chr.MP            = MP;
            chr.Items         = Inventory.Select(_ => _?.ObjectType ?? -1).ToArray();
            chr.Stats         = Stats;
            chr.HealthPotions = HealthPotions;
            chr.MagicPotions  = MagicPotions;
            chr.HasBackpack   = HasBackpack;
            chr.Skin          = Skin;
            //chr.XPBoosted = XpBoosted;
            //chr.XPBoostTimer = (int)XpBoostTimeLeft;
            chr.LootDropTimer = (int)LootDropBoostTimeLeft;
            chr.LootTierTimer = (int)LootTierBoostTimeLeft;
            chr.FameStats     = FameCounter.Stats.Write();
            chr.LastSeen      = DateTime.Now;
        }
Exemple #2
0
        public void SaveToCharacter()
        {
            var chr = client.Character;

            chr.Level      = Level;
            chr.Experience = Experience;
            chr.Fame       = Fame;
            chr.Items      = Inventory.Select(_ => _ == null ? (ushort)0xffff : _.ObjectType).ToArray();
            chr.HP         = HP;
            chr.MP         = MP;
            chr.Stats      = Stats;
            chr.Tex1       = Texture1;
            chr.Tex2       = Texture2;
            chr.FameStats  = FameCounter.Stats.Write();
            chr.LastSeen   = DateTime.Now;
        }
Exemple #3
0
        public void SaveToCharacter()
        {
            var chr = psr.Character;

            chr.Exp            = Experience;
            chr.Level          = Level;
            chr.Tex1           = Texture1;
            chr.Tex2           = Texture2;
            chr.CurrentFame    = Fame;
            chr.HitPoints      = HP;
            chr.MagicPoints    = MP;
            chr.Equipment      = Inventory.Select(_ => _ == null ? (short)-1 : _.ObjectType).ToArray();
            chr.MaxHitPoints   = Stats[0];
            chr.MaxMagicPoints = Stats[1];
            chr.Attack         = Stats[2];
            chr.Defense        = Stats[3];
            chr.Speed          = Stats[4];
            chr.HpRegen        = Stats[5];
            chr.MpRegen        = Stats[6];
            chr.Dexterity      = Stats[7];
        }