Пример #1
0
        public override void FinishQuest()
        {
            Step = -1; // -1 indicates finished or aborted quests etc, they won't show up in the list
            QuestPlayer.Out.SendMessage(string.Format(LanguageMgr.GetTranslation(QuestPlayer.Client, "ArtifactTurnInQuest.FinishQuest.Completed", Name)), eChatType.CT_ScreenCenter, eChatLoc.CL_SystemWindow);

            // move quest from active list to finished list...
            QuestPlayer.QuestList.Remove(this);

            if (QuestPlayer.HasFinishedQuest(GetType()) == 0)
            {
                QuestPlayer.QuestListFinished.Add(this);
            }

            DeleteFromDatabase();

            QuestPlayer.Out.SendQuestListUpdate();
        }