Beispiel #1
0
        public static DesireCollection GetDesires(PlayerMobile pm)
        {
            WhosMostHumbleQuest quest = QuestHelper.GetQuest <WhosMostHumbleQuest>(pm);

            if (quest != null)
            {
                return(quest.m_Desires);
            }

            return(null);
        }
Beispiel #2
0
        public static DesireInfo GetDesireFor(PlayerMobile pm, BaseErrand errand)
        {
            DesireCollection collection = WhosMostHumbleQuest.GetDesires(pm);
            Type             errandType = errand.GetType();

            if (collection != null && collection.Desires.ContainsKey(errandType))
            {
                return(collection.Desires[errandType]);
            }

            return(null);
        }