Пример #1
0
        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);
        }
Пример #2
0
        public static QuestJar Quests(Character player)
        {
            QuestJar quest = ServerKernel.PlayerQuests.Where(x => x.Player.Identity == player.Identity).FirstOrDefault();

            return(quest);
        }
Пример #3
0
        public static QuestJar CurrentQuest(Character player)
        {
            QuestJar quest = ServerKernel.PlayerQuests.Where(x => x.Player.Identity == player.Identity && !x.Finished).FirstOrDefault();

            return(quest);
        }