public static QuestJar NewQuest(Character player, uint QuestID) { DbMonstertype mType = ServerKernel.Monsters.Where(x => x.Value.Id == QuestID).FirstOrDefault().Value; QuestJar q = new QuestJar(player, mType); ServerKernel.PlayerQuests.Add(q); return(q); }
public static QuestJar Quests(Character player) { QuestJar quest = ServerKernel.PlayerQuests.Where(x => x.Player.Identity == player.Identity).FirstOrDefault(); return(quest); }
public static QuestJar CurrentQuest(Character player) { QuestJar quest = ServerKernel.PlayerQuests.Where(x => x.Player.Identity == player.Identity && !x.Finished).FirstOrDefault(); return(quest); }