4th Job Skill maxer, and adding teachSkill.

Joined
Jul 6, 2008
Messages
4
Reaction score
0
This is my first Release.
It's more of a Re-Release, but editted, so i'll call it a release.
FIRST OFF: Credits go to iKacymage for putting in the correct skills.
I believe that Moogra made this skill maxer (If not correct me please).
And lastly, credits to me for adding the proper maxed 4th job skills. And re-adding spaces to most of it, I also added some more words to it, explaining it better, and fixed some grammer. (I just re-added the same spaces from Moogra's skill maxer, so I take no credit for the spaces).

This is a v62, 4th job skill maxer.
It maxes all 4th job skills.
Please don't flame me or say "Why would you need this?"
I found it useful because I never wanted people getting maxed skills in my server because it caused people to level to fast (It was a low rate server.)
So I made this, so when they reach level 120 (Which can take quite some time), they could have maxed 4th job skills, since in my repack/source the books don't work.

Well, other then that here it is:

Code:
/* <NPC Name here> - <NPC ID here>
Edited by: iKacymage of Ragezone
Edited by: Kingrite of Ragezone - Added correct maxed 4th job skills and re-added proper spaces.
If your wondering, this is a v62 4th job skill maxer.
*/

var status = 0; 

function start() { 
    status = -1; 
    action(1, 0, 0); 
    if (cm.getLevel < 120); // delete this if this script doesn't work. This is a test to make the 4th job skill maxer for only lvl 120+. If you can fix it, go ahead.
} 

function action(mode, type, selection) { 
    if (mode == -1) { 
        cm.dispose(); 
    } else { 
        if (mode == 1) 
            status++; 
        else 
            status--; 
        if (status == 0) { 
            cm.sendYesNo("Would you like me to max your 4th job skills for you?"); 
        } else if (status == 1) { 
            cm.teachSkill(8,1,1); //Multipet.                                     You can delete these
            cm.teachSkill(1003,1,1); //Legendary Spirit                   if you want too because
            cm.teachSkill(1005,1,1); //Echo                                      they are just here because
            cm.teachSkill(1004,1,1); //Monster Rider                        some of these skills are hard to get in pservers
            cm.teachSkill(2121000,30,30); //Start of Mage Skills. The start of all jobs 4th job skills!
            cm.teachSkill(2121001,30,30); 
            cm.teachSkill(2121002,30,30); 
            cm.teachSkill(2121003,30,30); 
            cm.teachSkill(2121004,30,30); 
            cm.teachSkill(2121005,30,30); 
            cm.teachSkill(2121006,30,30); 
            cm.teachSkill(2121007,30,30); 
            cm.teachSkill(2121008,5,5); //These are usually Hero's Will, and things like that.
            cm.teachSkill(2221000,30,30); 
            cm.teachSkill(2221001,30,30); 
            cm.teachSkill(2221002,30,30); 
            cm.teachSkill(2221003,30,30); 
            cm.teachSkill(2221004,30,30); 
            cm.teachSkill(2221005,30,30); 
            cm.teachSkill(2221006,30,30); 
            cm.teachSkill(2221007,30,30); 
            cm.teachSkill(2221008,5,5); 
            cm.teachSkill(2321000,30,30); 
            cm.teachSkill(2321001,30,30); 
            cm.teachSkill(2321002,30,30); 
            cm.teachSkill(2321003,30,30); 
            cm.teachSkill(2321004,30,30); 
            cm.teachSkill(2321005,30,30); 
            cm.teachSkill(2321006,10,10); 
            cm.teachSkill(2321007,30,30); 
            cm.teachSkill(2321008,30,30); 
            cm.teachSkill(2321009,5,5); //End of Mage Skills
            cm.teachSkill(1121000,30,30); //Start of Warrior Skills
            cm.teachSkill(1121001,30,30); 
            cm.teachSkill(1121002,30,30); 
            cm.teachSkill(1121003,30,30); 
            cm.teachSkill(1121004,30,30); 
            cm.teachSkill(1121005,30,30); 
            cm.teachSkill(1121006,30,30); 
            cm.teachSkill(1121008,30,30); 
            cm.teachSkill(1121010,30,30); 
            cm.teachSkill(1121011,5,5); 
            cm.teachSkill(1221000,30,30); 
            cm.teachSkill(1221001,30,30); 
            cm.teachSkill(1221002,30,30); 
            cm.teachSkill(1221003,20,20); 
            cm.teachSkill(1221004,20,20); 
            cm.teachSkill(1221005,30,30); 
            cm.teachSkill(1221006,30,30); 
            cm.teachSkill(1221007,30,30); 
            cm.teachSkill(1221009,30,30); 
            cm.teachSkill(1221010,10,10); 
            cm.teachSkill(1221011,30,30); 
            cm.teachSkill(1221012,5,5); 
            cm.teachSkill(1321000,30,30); 
            cm.teachSkill(1321001,30,30); 
            cm.teachSkill(1321002,30,30); 
            cm.teachSkill(1321003,30,30); 
            cm.teachSkill(1321005,30,30); 
            cm.teachSkill(1321006,30,30); 
            cm.teachSkill(1321007,10,10); 
            cm.teachSkill(1321008,25,25); 
            cm.teachSkill(1321009,25,25); 
            cm.teachSkill(1321010,5,5); //End of Warrior Skills
            cm.teachSkill(3121000,30,30); //Start of Bowmen Skills
            cm.teachSkill(3121002,30,30); 
            cm.teachSkill(3121003,30,30); 
            cm.teachSkill(3121004,30,30); 
            cm.teachSkill(3121005,30,30); 
            cm.teachSkill(3121006,30,30); 
            cm.teachSkill(3121007,30,30); 
            cm.teachSkill(3121008,30,30); 
            cm.teachSkill(3121009,5,5); 
            cm.teachSkill(3221000,30,30); 
            cm.teachSkill(3221001,30,30); 
            cm.teachSkill(3221002,30,30); 
            cm.teachSkill(3221003,30,30); 
            cm.teachSkill(3221004,30,30); 
            cm.teachSkill(3221005,30,30); 
            cm.teachSkill(3221006,30,30); 
            cm.teachSkill(3221007,30,30); 
            cm.teachSkill(3221008,5,5); //End of Bowmen Skills
            cm.teachSkill(4121000,30,30); //Start of Thief Skills.. I find it funny how all thief 4th job skills are max level 30.. Lol.
            cm.teachSkill(4121002,30,30); 
            cm.teachSkill(4121003,30,30); 
            cm.teachSkill(4121004,30,30); 
            cm.teachSkill(4121005,30,30); 
            cm.teachSkill(4121006,30,30); 
            cm.teachSkill(4121007,30,30); 
            cm.teachSkill(4121008,30,30); 
            cm.teachSkill(4121009,5,5); 
            cm.teachSkill(4221000,30,30); 
            cm.teachSkill(4221001,30,30); 
            cm.teachSkill(4221002,30,30); 
            cm.teachSkill(4221003,30,30); 
            cm.teachSkill(4221004,30,30); 
            cm.teachSkill(4221005,30,30); 
            cm.teachSkill(4221006,30,30); 
            cm.teachSkill(4221007,30,30); 
            cm.teachSkill(4221008,5,5); //End of Thief Skills
            cm.teachSkill(5121000,30,30); //Start of Pirate Skills
            cm.teachSkill(5121001,30,30); 
            cm.teachSkill(5121002,30,30); 
            cm.teachSkill(5121003,20,20); 
            cm.teachSkill(5121004,30,30); 
            cm.teachSkill(5121005,30,30); 
            cm.teachSkill(5121007,30,30); 
            cm.teachSkill(5121008,1,1); //This is like Hero's Will, but it's different since it's part of the newer job called Pirate. (Only goes to level 1)
            cm.teachSkill(5121009,20,20); 
            cm.teachSkill(5121010,30,30); 
            cm.teachSkill(5220001,30,30); 
            cm.teachSkill(5220002,20,20); 
            cm.teachSkill(5221000,30,30); 
            cm.teachSkill(5221003,30,30); 
            cm.teachSkill(5221004,30,30); 
            cm.teachSkill(5221006,10,10); 
            cm.teachSkill(5221007,30,30); 
            cm.teachSkill(5221008,30,30); 
            cm.teachSkill(5221009,20,20); 
            cm.teachSkill(5221010,1,1); //This is like Hero's Will, but it's different since it's part of the newer job called Pirate. (Only goes to level 1)
            cm.teachSkill(5220011,20,20); 
        cm.dispose(); 
            } 
        } 
}

If there is ANYTHING wrong at all with this script, please notify me and I will fix it (And yes, give proper credits).

I appriciate any help to fix/improve this script (Like I'm a terrible coder, and I don't know how to make it ONLY avilable for level 120+'s, but I believe you use the code "if (cm.getLevel < 120);" without the quotes, or something like that).

I will be editting this later today or tomorrow, and adding a mini-guide (not an actual guide), for how to add the function teachSkill, for those that have bubblesdev repacks (or any other type of repack that doesn't have it) and don't have the function.
 
As I said, please do not flame me.
Saying my first release sucks makes me feel like crap, I was asking for positive support on this.
On ways to IMPROVE it. -.-
Your input did not help what-so-ever.

You could've atleast told me the "Non-Sterile" way if your going to insult my work.
 
but this isnt really a release is it? O.o well i guess it is i mean more like a lil Edit :3 or fix

Nice job though, but wut exactly does this fix? O.o wut skills :\
 
but this isnt really a release is it? O.o well i guess it is i mean more like a lil Edit :3 or fix

Nice job though, but wut exactly does this fix? O.o wut skills :\

It doesn't matter if it is a release or not at all, its about him trying to help the community and that is all that matters on this topic ATM (not killing his spirit). As time goes on he will get better and do better stuff. :)
 
O.o im not trying to kill his spirit lol but wut does this do? :\ other then max skills like wut did he fix // add?
 
Fixed:
Code:
/* <NPC Name here> - <NPC ID here>
Edited by: iKacymage of Ragezone
Edited by: Kingrite of Ragezone - Added correct maxed 4th job skills and re-added proper spaces.
Edited by: born996 of RaGEZONE - Fixed level check
If your wondering, this is a v62 4th job skill maxer.
*/

var status = 0; 

function start() { 
    status = -1; 
    action(1, 0, 0); 
} 

function action(mode, type, selection) { 
    if (mode == -1) { 
        cm.dispose(); 
    } else { 
        if (mode == 1) 
            status++; 
        else 
            status--; 
        if (status == 0) { 
            cm.sendYesNo("Would you like me to max your 4th job skills for you?"); 
        } else if (status == 1) { 
                if (cm.getLevel >= 120) {
            cm.teachSkill(8,1,1); //Multipet.                     
            cm.teachSkill(1003,1,1); //Legendary Spirit           
            cm.teachSkill(1005,1,1); //Echo                       
            cm.teachSkill(1004,1,1); //Monster Rider              
            cm.teachSkill(2121000,30,30); //Start of Mage Skills. 
            cm.teachSkill(2121001,30,30); 
            cm.teachSkill(2121002,30,30); 
            cm.teachSkill(2121003,30,30); 
            cm.teachSkill(2121004,30,30); 
            cm.teachSkill(2121005,30,30); 
            cm.teachSkill(2121006,30,30); 
            cm.teachSkill(2121007,30,30); 
            cm.teachSkill(2121008,5,5); //These are usually Hero's Will, and things like that.
            cm.teachSkill(2221000,30,30); 
            cm.teachSkill(2221001,30,30); 
            cm.teachSkill(2221002,30,30); 
            cm.teachSkill(2221003,30,30); 
            cm.teachSkill(2221004,30,30); 
            cm.teachSkill(2221005,30,30); 
            cm.teachSkill(2221006,30,30); 
            cm.teachSkill(2221007,30,30); 
            cm.teachSkill(2221008,5,5); 
            cm.teachSkill(2321000,30,30); 
            cm.teachSkill(2321001,30,30); 
            cm.teachSkill(2321002,30,30); 
            cm.teachSkill(2321003,30,30); 
            cm.teachSkill(2321004,30,30); 
            cm.teachSkill(2321005,30,30); 
            cm.teachSkill(2321006,10,10); 
            cm.teachSkill(2321007,30,30); 
            cm.teachSkill(2321008,30,30); 
            cm.teachSkill(2321009,5,5); //End of Mage Skills
            cm.teachSkill(1121000,30,30); //Start of Warrior Skills
            cm.teachSkill(1121001,30,30); 
            cm.teachSkill(1121002,30,30); 
            cm.teachSkill(1121003,30,30); 
            cm.teachSkill(1121004,30,30); 
            cm.teachSkill(1121005,30,30); 
            cm.teachSkill(1121006,30,30); 
            cm.teachSkill(1121008,30,30); 
            cm.teachSkill(1121010,30,30); 
            cm.teachSkill(1121011,5,5); 
            cm.teachSkill(1221000,30,30); 
            cm.teachSkill(1221001,30,30); 
            cm.teachSkill(1221002,30,30); 
            cm.teachSkill(1221003,20,20); 
            cm.teachSkill(1221004,20,20); 
            cm.teachSkill(1221005,30,30); 
            cm.teachSkill(1221006,30,30); 
            cm.teachSkill(1221007,30,30); 
            cm.teachSkill(1221009,30,30); 
            cm.teachSkill(1221010,10,10); 
            cm.teachSkill(1221011,30,30); 
            cm.teachSkill(1221012,5,5); 
            cm.teachSkill(1321000,30,30); 
            cm.teachSkill(1321001,30,30); 
            cm.teachSkill(1321002,30,30); 
            cm.teachSkill(1321003,30,30); 
            cm.teachSkill(1321005,30,30); 
            cm.teachSkill(1321006,30,30); 
            cm.teachSkill(1321007,10,10); 
            cm.teachSkill(1321008,25,25); 
            cm.teachSkill(1321009,25,25); 
            cm.teachSkill(1321010,5,5); //End of Warrior Skills
            cm.teachSkill(3121000,30,30); //Start of Bowmen Skills
            cm.teachSkill(3121002,30,30); 
            cm.teachSkill(3121003,30,30); 
            cm.teachSkill(3121004,30,30); 
            cm.teachSkill(3121005,30,30); 
            cm.teachSkill(3121006,30,30); 
            cm.teachSkill(3121007,30,30); 
            cm.teachSkill(3121008,30,30); 
            cm.teachSkill(3121009,5,5); 
            cm.teachSkill(3221000,30,30); 
            cm.teachSkill(3221001,30,30); 
            cm.teachSkill(3221002,30,30); 
            cm.teachSkill(3221003,30,30); 
            cm.teachSkill(3221004,30,30); 
            cm.teachSkill(3221005,30,30); 
            cm.teachSkill(3221006,30,30); 
            cm.teachSkill(3221007,30,30); 
            cm.teachSkill(3221008,5,5); //End of Bowmen Skills
            cm.teachSkill(4121000,30,30); //Start of Thief Skills.. I find it funny how all thief 4th job skills are max level 30.. Lol.
            cm.teachSkill(4121002,30,30); 
            cm.teachSkill(4121003,30,30); 
            cm.teachSkill(4121004,30,30); 
            cm.teachSkill(4121005,30,30); 
            cm.teachSkill(4121006,30,30); 
            cm.teachSkill(4121007,30,30); 
            cm.teachSkill(4121008,30,30); 
            cm.teachSkill(4121009,5,5); 
            cm.teachSkill(4221000,30,30); 
            cm.teachSkill(4221001,30,30); 
            cm.teachSkill(4221002,30,30); 
            cm.teachSkill(4221003,30,30); 
            cm.teachSkill(4221004,30,30); 
            cm.teachSkill(4221005,30,30); 
            cm.teachSkill(4221006,30,30); 
            cm.teachSkill(4221007,30,30); 
            cm.teachSkill(4221008,5,5); //End of Thief Skills
            cm.teachSkill(5121000,30,30); //Start of Pirate Skills
            cm.teachSkill(5121001,30,30); 
            cm.teachSkill(5121002,30,30); 
            cm.teachSkill(5121003,20,20); 
            cm.teachSkill(5121004,30,30); 
            cm.teachSkill(5121005,30,30); 
            cm.teachSkill(5121007,30,30); 
            cm.teachSkill(5121008,1,1); //This is like Hero's Will, but it's different since it's part of the newer job called Pirate. (Only goes to level 1)
            cm.teachSkill(5121009,20,20); 
            cm.teachSkill(5121010,30,30); 
            cm.teachSkill(5220001,30,30); 
            cm.teachSkill(5220002,20,20); 
            cm.teachSkill(5221000,30,30); 
            cm.teachSkill(5221003,30,30); 
            cm.teachSkill(5221004,30,30); 
            cm.teachSkill(5221006,10,10); 
            cm.teachSkill(5221007,30,30); 
            cm.teachSkill(5221008,30,30); 
            cm.teachSkill(5221009,20,20); 
            cm.teachSkill(5221010,1,1); //This is like Hero's Will, but it's different since it's part of the newer job called Pirate. (Only goes to level 1)
            cm.teachSkill(5220011,20,20); 
            cm.sendOk("Your Skills have been maxed.");
            cm.dispose(); 
            } else {
                cm.sendOk("Sorry, you are not yet level 120. Please come back to me when you are stronger.");
            }
        }
    }
}
 
i have a problem, my char is 120 and approaches the npc assigned to this script, it seems like it still says that my char is not 120 yet
 
PHP:
    public void max4thJobSkills() {
            MapleDataProvider dataProvider = MapleDataProviderFactory.getDataProvider(new File(System.getProperty("wzpath") + "/" + "String.wz"));
            MapleData skilldData = dataProvider.getData("Skill.img");
            for (MapleData skill_ : skilldData.getChildren())
                try {
                    maxSkill(Integer.parseInt(skill_.getName()), false);
                } catch (NumberFormatException nfe) {
                    break;
                } catch (NullPointerException npe) {
                    continue;
                }
    }

    private void maxSkill(int skillid) {
        ISkill skill_ = SkillFactory.getSkill(skillid);
        if (skill_.getId()/10000%10==2)
        changeSkillLevel(skill_,skill_.getMaxLevel(), skill_.getMaxLevel());
    }
 
PHP:
    public void max4thJobSkills() {
            MapleDataProvider dataProvider = MapleDataProviderFactory.getDataProvider(new File(System.getProperty("wzpath") + "/" + "String.wz"));
            MapleData skilldData = dataProvider.getData("Skill.img");
            for (MapleData skill_ : skilldData.getChildren())
                try {
                    maxSkill(Integer.parseInt(skill_.getName()), false);
                } catch (NumberFormatException nfe) {
                    break;
                } catch (NullPointerException npe) {
                    continue;
                }
    }

    private void maxSkill(int skillid) {
        ISkill skill_ = SkillFactory.getSkill(skillid);
        if (skill_.getId()/10000%10==2)
        changeSkillLevel(skill_,skill_.getMaxLevel(), skill_.getMaxLevel());
    }
nice, v simple and easy to understand. but, do i put this in maplecharacter.java?
 
Back