Пример #1
0
 public override void OnDoubleClick(Mobile from)
 {
     if (Galleon == null || from.AccessLevel > AccessLevel.Player)
     {
         base.OnDoubleClick(from);
     }
     else if (!Galleon.Contains(from))
     {
         if (Galleon.TillerMan != null)
         {
             Galleon.TillerManSay(502490); // You must be on the ship to open the hold.
         }
     }
     else if (Galleon.Owner is PlayerMobile && !Galleon.Scuttled && Galleon.GetSecurityLevel(from) < SecurityLevel.Officer)
     {
         from.Say(1010436); // You do not have permission to do this.
     }
     else
     {
         base.OnDoubleClick(from);
     }
 }