public override void OnDoubleClick(Mobile from) { if (Galleon == null || !Galleon.IsOnBoard(from)) { if (Galleon.TillerMan != null) { Galleon.TillerMan.TillerManSay(502490); // You must be on the ship to open the hold. } } else if (Galleon.IsMovingShip) { if (Galleon.TillerMan != null) { Galleon.TillerMan.TillerManSay(502491); // I can not open the hold while the ship is moving. } } else { if (Galleon != null) { if (from == Galleon.Owner) { base.OnDoubleClick(from); } else if (Galleon.PlayerAccess != null) { if (Galleon.PlayerAccess.ContainsKey((PlayerMobile)from)) { if (3 <= Galleon.PlayerAccess[(PlayerMobile)from] && Galleon.PlayerAccess[(PlayerMobile)from] <= 4) { base.OnDoubleClick(from); } else if ((from.Guild == Galleon.Owner.Guild) && (from.Guild != null)) { if (3 <= Galleon.Guild && Galleon.Guild <= 4) { base.OnDoubleClick(from); } else if ((from.Party == Galleon.Owner.Party) && (from.Party != null)) { if (3 <= Galleon.Party && Galleon.Party <= 4) { base.OnDoubleClick(from); } else { if (3 <= Galleon.Public && Galleon.Public <= 4) { base.OnDoubleClick(from); } } } } } } } } }