コード例 #1
0
        public override void OnDoubleClick(Mobile m)
        {
            if (!this.CheckDoubleClick(m) || !(m is PlayerMobile))
            {
                return;
            }

            if (m.AccessLevel >= AccessLevel.GameMaster)
            {
                m.SendGump(
                    new PropertiesGump(m, this)
                {
                    X = 100,
                    Y = 100
                });
            }

            if (!Active)
            {
                return;
            }

            if (ID != DungeonID.None && Info != null)
            {
                Instances.EnterDungeon((PlayerMobile)m, Info, true);
            }
            else
            {
                Instances.ExitDungeon((PlayerMobile)m, true);
            }
        }
コード例 #2
0
        public override bool OnMoveOver(Mobile m)
        {
            if (!(m is PlayerMobile) || !Active)
            {
                return(base.OnMoveOver(m));
            }

            if (ID != DungeonID.None && Info != null)
            {
                Instances.EnterDungeon((PlayerMobile)m, Info, true);
            }
            else
            {
                Instances.ExitDungeon((PlayerMobile)m, true);
            }

            return(base.OnMoveOver(m));
        }