Exemple #1
0
        public static int FindNpc(string name)
        {
            WorldObject wingCollector = NpcFinder.GetNpc(name);

            if (null == wingCollector)
            {
                return(0);
            }
            return(wingCollector.Id);
        }
        /**
         * Returns a false if it can't find this NPC
         * For now it prints out all NPCs discovered
         */
        private static Boolean FindRenselmsApprentice()
        {
            WorldObject iCollector = NpcFinder.GetNpc("Renselm's Apprentice");

            if (null == iCollector)
            {
                return(false);
            }
            RenselmsApprentice_id = iCollector.Id;
            return(true);
        }