예제 #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);
        }