Example #1
0
        public void OnTargetGears(Mobile from, object targ)
        {
            Gears g = targ as Gears;

            if (g == null || !g.IsChildOf(from.Backpack))
            {
                from.SendMessage("Those are not gears.");                   // Apparently gears that aren't in your backpack aren't really gears at all. :-(
            }
            else if (IsModified)
            {
                from.SendMessage("That has already been modified.");
            }
            else if (!IsChildOf(from.Backpack))
            {
                from.SendMessage("This must be in your backpack to modify it.");
            }
            else if (from.Skills[SkillName.Fletching].Base < 100.0)
            {
                from.SendMessage("Only a grandmaster bowcrafter can modify this weapon.");
            }
            else
            {
                g.Consume();

                Hue    = 0x453;
                Slayer = (SlayerName)Utility.Random(2, 25);

                from.SendMessage("You modify it.");
            }
        }
Example #2
0
        public void OnTargetGears(Mobile from, object targ)
        {
            Gears g = targ as Gears;

            if (g == null || !g.IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1010623);                   // You must use gears.
            }
            else if (IsModified)
            {
                from.SendMessage("That has already been modified.");
            }
            else if (!IsChildOf(from.Backpack))
            {
                from.SendMessage("This must be in your backpack to modify it.");
            }
            else if (from.Skills[SkillName.Fletching].Base < 100.0)
            {
                from.SendMessage("Only a grandmaster bowcrafter can modify this weapon.");
            }
            else
            {
                g.Consume();

                Hue = 0x453;

                Slayer = BaseRunicTool.GetRandomSlayer();

                if (0.05 > Utility.RandomDouble())
                {
                    Slayer2 = BaseRunicTool.GetRandomSlayer();
                }

                from.SendMessage("You modify it.");
            }
        }
Example #3
0
 public InternalTarget(Gears item)
     : base(1, false, TargetFlags.None)
 {
     m_Item = item;
 }
Example #4
0
 public InternalTarget(Gears item) : base(1, false, TargetFlags.None)
 {
     m_Item = item;
 }