Beispiel #1
0
        public bool CanBeSeenBy(PlayerMobile pm)
        {
            if (pm.AccessLevel > AccessLevel.Player)
            {
                return(true);
            }

            RightingWrongQuest4 quest = QuestHelper.GetQuest <RightingWrongQuest4>(pm);

            return(quest != null && !quest.Completed);
        }
        public override void OnDoubleClick(Mobile m)
        {
            if (m is PlayerMobile && m.InRange(Location, 5))
            {
                RightingWrongQuest4 quest = QuestHelper.GetQuest <RightingWrongQuest4>((PlayerMobile)m);

                if (quest != null && quest.Completed)
                {
                    quest.CompleteQuest();
                }
                else
                {
                    base.OnDoubleClick(m);
                }
            }
        }
Beispiel #3
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from is PlayerMobile mobile && mobile.InRange(Location, 2))
            {
                RightingWrongQuest4 quest = QuestHelper.GetQuest <RightingWrongQuest4>(mobile);

                if (quest != null && !quest.Completed)
                {
                    quest.Objectives[0].CurProgress++;
                    quest.OnCompleted();

                    Visible = false;
                    Visible = true;
                }
            }
        }