Ejemplo n.º 1
0
        protected virtual void OnGivereward(ConquestState s, BaseCreature reward)
        {
            if (s == null || s.User == null || reward == null || reward.Deleted)
            {
                return;
            }

            reward.Control(s.User);

            AnimalTaming.ScaleSkills(reward, 0.90);

            if (reward.StatLossAfterTame)
            {
                AnimalTaming.ScaleStats(reward, 0.50);
            }

            if (reward.Stable())
            {
                return;
            }

            if (s.User.IsOnline())
            {
                reward.MoveToWorld(s.User.Location, s.User.Map);
            }
            else
            {
                reward.Delete();
            }
        }
Ejemplo n.º 2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            var version = reader.ReadInt();

            SetDamage(24, 33);

            if (version == 0)
            {
                AnimalTaming.ScaleStats(this, 0.50);
                AnimalTaming.ScaleSkills(this, 0.80, 0.90); // 90% * 80% = 72% of original skills trainable to 90%
                Skills[SkillName.Magery].Base = Skills[SkillName.Magery].Cap;
                // Greater dragons have a 90% cap reduction and 90% skill reduction on magery
            }
        }