コード例 #1
0
        public override void OnDoubleClick(Mobile from)
        {
            MerlinsStaff Staff = from.FindItemOnLayer(Layer.TwoHanded) as MerlinsStaff;

            if (Parent != from)
            {
                from.SendMessage("You remember that you must equip the staff to summon a portal to Merlin");
            }
            else
            {
                Item mg2 = new MerlinsGate2();
                mg2.Location = from.Location;
                mg2.Map = from.Map;
                from.PrivateOverheadMessage( MessageType.Regular, 1153, false, "You feel the power of the Staff and Spellbook working together", from.NetState );
            }
        }
コード例 #2
0
        public override void OnDoubleClick(Mobile from)
        {
            MerlinsStaff Staff = from.FindItemOnLayer(Layer.TwoHanded) as MerlinsStaff;

            if (Parent != from)
            {
                from.SendMessage("You remember that you must equip the staff to summon a portal to Merlin");
            }
            else
            {
                Item mg2 = new MerlinsGate2();
                mg2.Location = from.Location;
                mg2.Map      = from.Map;
                from.PrivateOverheadMessage(MessageType.Regular, 1153, false, "You feel the power of the Staff and Spellbook working together", from.NetState);
            }
        }