public virtual bool BeginHarvesting(Mobile from, Item tool)
 {
     if (!CheckHarvest(from, tool))
     {
         return(false);
     }
     CaptchaGump.sendCaptcha(from, HarvestSystem.SendHarvestTarget, new object[] { tool, this });
     //from.Target = new HarvestTarget( tool, this );
     return(true);
 }
示例#2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (this.IsChildOf(from.Backpack) || this.InSecureTrade || this.RootParent is PlayerVendor || this.Parent == from)
            {
                Gump bod_gump = new SmallBODGump(from, this);
                CaptchaGump.sendCaptcha(from, CaptchaGump.SendGumpAfterCaptcha, bod_gump);

                //from.SendGump(new SmallBODGump(from, this));
            }
            else
            {
                from.SendLocalizedMessage(1045156); // You must have the deed in your backpack to use it.
            }
        }
        public override void OnDoubleClick(Mobile from)
        {
            if (IsChildOf(from.Backpack) || InSecureTrade || RootParent is PlayerVendor)
            {
                /* Being Captcha Mod */
                Gump bod_gump = new LargeBODGump(from, this);
                CaptchaGump.sendCaptcha(from, CaptchaGump.SendGumpAfterCaptcha, bod_gump);
                /* End Captcha Mod */

                //from.SendGump(new LargeBODGump(from, this));
            }
            else
            {
                from.SendLocalizedMessage(1045156); // You must have the deed in your backpack to use it.
            }
        }
示例#4
0
        public virtual bool BeginHarvesting(Mobile from, Item tool)
        {
            if (!CheckHarvest(from, tool))
            {
                return(false);
            }

            if (Server.Misc.MyServerSettings.AllowMacroResources())
            {
                from.Target = new HarvestTarget(tool, this);
            }
            else
            {
                CaptchaGump.sendCaptcha(from, HarvestSystem.SendHarvestTarget, new object[] { tool, this });
            }

            return(true);
        }
示例#5
0
 public override void OnDoubleClick(Mobile from)
 {
     if (IsChildOf(from.Backpack))
     {
         if (Server.Misc.DifficultyLevel.AllowMacroResources())
         {
             from.SendGump(new SmallBODGump(from, this));
         }
         else
         {
             Gump bod_gump = new SmallBODGump(from, this);
             CaptchaGump.sendCaptcha(from, CaptchaGump.SendGumpAfterCaptcha, bod_gump);
         }
     }
     else
     {
         from.SendLocalizedMessage(1045156);                   // You must have the deed in your backpack to use it.
     }
 }