Beispiel #1
0
        public static void SkillProfileInitializer()
        {
            if (Directory.Exists("TMSS/SkillProfiles"))
            {
                DirectoryInfo info = new DirectoryInfo("TMSS/SkillProfiles");

                FileInfo[] fileInfo = info.GetFiles();
                int        numprof  = 0;
                foreach (FileInfo fileName in fileInfo)
                {
                    if (fileName.Extension == ".skx")
                    {
                        SkillProfileLoader(fileName.Name, true);
                        numprof++;
                    }
                    if (fileName.Extension == ".spr")
                    {
                        SuperProfileHelper.LoadSelf(fileName);
                    }
                }
                if (numprof == 0)
                {
                    GenInitialProfile();
                }
            }
        }
Beispiel #2
0
        public static SuperSkillProfile GenInitialProfile()
        {
            Console.WriteLine(" - TMSS|4 Default Profile Generation In Progress...");
            //SkillProfile profile = new SkillProfile("Default Profile");

            SuperSkillProfile defprof = new SuperSkillProfile("Default Profile");

            SkillProfile miscProf = new SkillProfile("Miscellaneous");

            miscProf.addCompleteEntry(true, 100, 1.0, 10, 0);            //0
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 7);            //7
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 8);            //8
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 11);           //11
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 13);           //13
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 17);           //17
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 18);           //18
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 20);           //20
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 24);           //24
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 25);           //25
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 26);           //26
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 28);           //28
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 29);           //29
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 33);           //33
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 34);           //34
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 37);           //37
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 39);           //39
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 45);           //45
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 46);           //46
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 47);           //47
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 48);           //48
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 49);           //49
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 50);           //50
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 51);           //51
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 52);           //52
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 53);           //53
            miscProf.addCompleteEntry(true, 100, 1.0, 10, 54);           //54
            miscProf.IconID = 2287;
            RegisterProfile(miscProf);
            defprof.addProfile(miscProf);

            SkillProfile comRate = new SkillProfile("Combat Ratings");

            comRate.addCompleteEntry(true, 100, 1.0, 10, 31);           //31
            comRate.addCompleteEntry(true, 100, 1.0, 10, 42);           //42
            comRate.addCompleteEntry(true, 100, 1.0, 10, 41);           //41
            comRate.addCompleteEntry(true, 100, 1.0, 10, 5);            //5
            comRate.addCompleteEntry(true, 100, 1.0, 10, 40);           //40
            comRate.addCompleteEntry(true, 100, 1.0, 10, 27);           //27
            comRate.addCompleteEntry(true, 100, 1.0, 10, 43);           //43
            comRate.IconID = 5585;
            RegisterProfile(comRate);
            defprof.addProfile(comRate);

            SkillProfile actions = new SkillProfile("Actions");

            actions.addCompleteEntry(true, 100, 1.0, 10, 35);           //35
            actions.addCompleteEntry(true, 100, 1.0, 10, 6);            //6
            actions.addCompleteEntry(true, 100, 1.0, 10, 10);           //10
            actions.addCompleteEntry(true, 100, 1.0, 10, 12);           //12
            actions.addCompleteEntry(true, 100, 1.0, 10, 14);           //14
            actions.addCompleteEntry(true, 100, 1.0, 10, 15);           //15
            actions.addCompleteEntry(true, 100, 1.0, 10, 21);           //21
            actions.addCompleteEntry(true, 100, 1.0, 10, 23);           //23
            actions.addCompleteEntry(true, 100, 1.0, 10, 9);            //9
            actions.addCompleteEntry(true, 100, 1.0, 10, 30);           //30
            actions.addCompleteEntry(true, 100, 1.0, 10, 22);           //22
            actions.addCompleteEntry(true, 100, 1.0, 10, 32);           //32
            actions.addCompleteEntry(true, 100, 1.0, 10, 38);           //38
            actions.IconID = 20998;
            RegisterProfile(actions);
            defprof.addProfile(actions);

            SkillProfile loreKnow = new SkillProfile("Lore & Knowledge");

            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 1);            //1
            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 2);            //2
            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 4);            //4
            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 16);           //16
            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 19);           //19
            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 3);            //3
            loreKnow.addCompleteEntry(true, 100, 1.0, 10, 36);           //36
            loreKnow.IconID = 23014;
            RegisterProfile(loreKnow);
            defprof.addProfile(loreKnow);

            SuperProfileHelper.RegisterSuperProfile(defprof);
            SuperProfileHelper.SaveSelf(defprof);
            Console.WriteLine("done");
            //writeFile(profile, true);
            return(defprof);
        }