Esempio n. 1
0
 public override void OnDoubleClick(Mobile from)
 {
     if (IsChildOf(from.Backpack) || Parent == from)
     {
         if (from.CanBeginAction(typeof(CraftSystem)))
         {
             CraftSystem system = this.GetCraftInstance();
             if (system != null)
             {
                 system.Begin(from, this);
             }
             else
             {
                 from.SendAsciiMessage("This tool doesn't appear to do anything.");
             }
         }
         else
         {
             from.SendAsciiMessage("You must wait a few moments before trying to use another tool.");
         }
     }
     else
     {
         from.SendLocalizedMessage(1042001);                   // That must be in your pack for you to use it.
     }
 }