private bool IsCompletedQuest(PlayerMobile pm, QuestStringHolder holder) { if (pm.DoneQuests != null) { foreach (var quest in pm.DoneQuests) { if (quest.QuestType == holder.TheType) { return(true); } } } return(false); }
private bool IsActiveQuest(PlayerMobile pm, QuestStringHolder holder) { if (pm.Quests != null) { foreach (var quest in pm.Quests) { if (quest.GetType() == holder.TheType) { return(true); } } } return(false); }
private void AddDetail(QuestStringHolder quest) { AddLabel(275, 5, GreenHue, quest.QuestType == "Base" ? "Base Quest Title" : quest.QuestType == "System" ? "Quest System Name" : quest.QuestType == "Xml" ? "Xml Quest Name" : "Unknown Quest Type"); AddHtml(255, 25, 225, 30, quest.Name, 0x20, true, false); AddLabel(515, 5, GreenHue, "Mobile Name"); AddHtml(485, 25, 200, 30, quest.MobileName, 0x20, true, false); _QuestMobile = FindMobile(quest.MobileName); if (_QuestMobile != null) { AddButton(690, 25, 1210, 1210, 25, GumpButtonType.Reply, 0); AddLabel(706, 25, GreenHue, "Go"); } AddLabel(275, 60, GreenHue, quest.QuestType == "System" ? "Offer Message" : "Description"); AddHtml(255, 80, 490, 130, quest.Description, 0x20, true, true); AddLabel(275, 215, GreenHue, "Objectives"); AddHtml(255, 235, 490, 260, quest.Objectives, 0x20, true, true); }