public override void OnDoubleClick(Mobile from) { if (Winch == null || Hatch == null || Winch.Owner == null || !Winch.KeysValidated()) { return; } if (Winch.Peerless != null && Winch.Peerless.CheckAlive()) { from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat. Your opportunity will come after he has squashed the current batch of intruders! } else if (!Winch.CheckParty(from)) { from.SendLocalizedMessage(1072683, Winch.Owner.Name); // ~1_NAME~ has already activated the Prism, please wait... } else { Timer.DelayCall(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0), 3, new TimerStateCallback(Hatch.DoDownEffect), new object[] { Hatch.Location, 0, from }); Winch.Activate(from); } }
// Use this for initialization void Start() { winch = GetComponentInChildren <Winch>(); }