Ejemplo n.º 1
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendMessage("You must have the dragon's egg in your backpack to hatch it.");
            }
            else if (this.AllowEvolution == true)
            {
                this.Delete();
                from.SendMessage("You are now the proud owner of a dragon hatchling!!");

                EvolutionDragon dragon = new EvolutionDragon();

                dragon.Map      = from.Map;
                dragon.Location = from.Location;

                dragon.Controled = true;

                dragon.ControlMaster = from;

                dragon.IsBonded = true;
            }
            else
            {
                from.SendMessage("This egg is not yet ready to be hatched.");
            }
        }
Ejemplo n.º 2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendMessage("You must have the dragon's egg in your backpack to hatch it.");
            }

            else if (from.Skills[SkillName.AnimalTaming].Base < 95)
            {
                from.SendMessage("You are not skilled enough to control such a creature.");
            }

            else if (AllowEvolution)
            {
                if (from.Followers + 3 > from.FollowersMax)
                {
                    from.SendMessage("You have too many followers.");
                }
                else
                {
                    this.Delete();
                    from.SendMessage("You are now the proud owner of a dragon hatchling!!");

                    EvolutionDragon dragon = new EvolutionDragon();

                    dragon.Map      = from.Map;
                    dragon.Location = from.Location;

                    dragon.Controlled = true;

                    dragon.ControlMaster = from;

                    dragon.IsBonded = true;
                }
            }
            else
            {
                from.SendMessage("This egg is not yet ready to be hatched.");
            }
        }