Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

@jobadv

Junior Spellweaver
Joined
Aug 3, 2008
Messages
138
Reaction score
11
Hi everyone,
I've worked on a command for 2nd to 4th job advances.
I've originally written it exclusively for my server, but realized it would be nice to share it with you guys.
To advance to 2nd, type @jobadv <job>.
Further advances would only require you to type @jobadv.
The system also allows you to go from 2nd to 4th job in case you overleveled, and generally advancing to 2nd is available at all times you're above 30 and 1st job, so you can't be stuck.
I've worked hard to type out all of it (idea and sketch came up at school), and as a loyable member of the OdinTeh project, I would like to ask you all not to post this anywhere else with my permission.
This is intended to be a player command, but feel free to change it to a GM command.
Make sure to include MapleJob and MapleCharacter in your imports before reporting any failed compiles. Informative messages are included, by the way.

Code:
else if (splitted[0].equals("@jobadv")) {
                   MapleCharacter player = c.getPlayer();
                   int level = player.getLevel();
                   MapleJob job = player.getJob();
                   int done = 0;
                   if (done == 0) {
                   if (level >= 70 && level <= 119) {
                           if (job == net.sf.odinms.client.MapleJob.ASSASSIN) {
                               player.changeJob(net.sf.odinms.client.MapleJob.HERMIT);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Hermit.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.BANDIT) {
                               player.changeJob(net.sf.odinms.client.MapleJob.CHIEFBANDIT);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Chief Bandit.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.HUNTER) {
                               player.changeJob(net.sf.odinms.client.MapleJob.RANGER);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Ranger.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.CROSSBOWMAN) {
                               player.changeJob(net.sf.odinms.client.MapleJob.SNIPER);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Sniper.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.FIGHTER) {
                               player.changeJob(net.sf.odinms.client.MapleJob.CRUSADER);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Crusader.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.PAGE) {
                               player.changeJob(net.sf.odinms.client.MapleJob.WHITEKNIGHT);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a White Knight.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.SPEARMAN) {
                               player.changeJob(net.sf.odinms.client.MapleJob.DRAGONKNIGHT);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Dragon Knight.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.IL_WIZARD) {
                               player.changeJob(net.sf.odinms.client.MapleJob.IL_MAGE);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as an Ice/Lightning Mage.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.FP_WIZARD) {
                               player.changeJob(net.sf.odinms.client.MapleJob.FP_MAGE);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Fire/Poison Mage.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.CLERIC) {
                               player.changeJob(net.sf.odinms.client.MapleJob.PRIEST);
                               mc.dropMessage("Congratulations, you have successfully taken the 3rd job advancement as a Priest.");
                           }
                           else {
                           }
                           done = 1;
                       }
                    else if (level >= 120) {
                           if (job == net.sf.odinms.client.MapleJob.ASSASSIN || job == net.sf.odinms.client.MapleJob.HERMIT) {
                               player.changeJob(net.sf.odinms.client.MapleJob.NIGHTLORD);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Night Lord.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.BANDIT || job == net.sf.odinms.client.MapleJob.CHIEFBANDIT) {
                               player.changeJob(net.sf.odinms.client.MapleJob.SHADOWER);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Shadower.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.HUNTER || job == net.sf.odinms.client.MapleJob.RANGER) {
                               player.changeJob(net.sf.odinms.client.MapleJob.BOWMASTER);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Bowmaster.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.CROSSBOWMAN || job == net.sf.odinms.client.MapleJob.SNIPER) {
                               player.changeJob(net.sf.odinms.client.MapleJob.CROSSBOWMASTER);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Marksman.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.IL_WIZARD || job == net.sf.odinms.client.MapleJob.IL_MAGE) {
                               player.changeJob(net.sf.odinms.client.MapleJob.IL_ARCHMAGE);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as an Ice/Lightning Arch Mage.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.FP_WIZARD || job == net.sf.odinms.client.MapleJob.FP_MAGE) {
                               player.changeJob(net.sf.odinms.client.MapleJob.FP_ARCHMAGE);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Fire/Poison Arch Mage.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.CLERIC || job == net.sf.odinms.client.MapleJob.PRIEST) {
                               player.changeJob(net.sf.odinms.client.MapleJob.BISHOP);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Bishop.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.FIGHTER || job == net.sf.odinms.client.MapleJob.CRUSADER) {
                               player.changeJob(net.sf.odinms.client.MapleJob.HERO);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Hero.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.SPEARMAN || job == net.sf.odinms.client.MapleJob.DRAGONKNIGHT) {
                               player.changeJob(net.sf.odinms.client.MapleJob.DARKKNIGHT);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Dark Knight.");
                           }
                           else if (job == net.sf.odinms.client.MapleJob.PAGE || job == net.sf.odinms.client.MapleJob.WHITEKNIGHT) {
                               player.changeJob(net.sf.odinms.client.MapleJob.PALADIN);
                               mc.dropMessage("Congratulations, you have successfully taken the 4th job advancement as a Paladin.");
                           }
                           else {
                           }
                           done = 1;
                    }
                       if (level >= 30) {
                       if ((splitted[1].equals("spearman")) && job == (net.sf.odinms.client.MapleJob.WARRIOR)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.SPEARMAN);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Spearman.");
                       }
                       else if ((splitted[1].equals("fighter")) && job == (net.sf.odinms.client.MapleJob.WARRIOR)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.FIGHTER);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Fighter.");
                       }
                       else if ((splitted[1].equals("page")) && job == (net.sf.odinms.client.MapleJob.WARRIOR)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.PAGE);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Page.");
                       }
                       else if ((splitted[1].equals("ilwizard")) && job == (net.sf.odinms.client.MapleJob.MAGICIAN)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.IL_WIZARD);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as an Ice/Lightning Wizard.");
                       }
                       else if ((splitted[1].equals("fpwizard")) && job == (net.sf.odinms.client.MapleJob.MAGICIAN)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.FP_WIZARD);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Fire/Poison Wizard.");
                       }
                       else if ((splitted[1].equals("cleric")) && job == (net.sf.odinms.client.MapleJob.MAGICIAN)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.CLERIC);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Cleric.");
                       }
                       else if ((splitted[1].equals("hunter")) && job == (net.sf.odinms.client.MapleJob.BOWMAN)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.HUNTER);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Hunter.");
                       }
                       else if ((splitted[1].equals("crossbowman")) && job == (net.sf.odinms.client.MapleJob.BOWMAN)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.CROSSBOWMAN);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Crossbowman.");
                       }
                       else if ((splitted[1].equals("assassin")) && job == (net.sf.odinms.client.MapleJob.THIEF)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.ASSASSIN);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as an Assassin.");
                       }
                       else if ((splitted[1].equals("bandit")) && job == (net.sf.odinms.client.MapleJob.THIEF)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.BANDIT);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a Bandit.");
                       }
                       done = 1;
                        if (splitted[1].equals("help")) {
                      mc.dropMessage("To perform a 2nd job advancement, type @jobadv <desiredjob>.");
                      mc.dropMessage("<desiredjob> can be any of the following:");
                      mc.dropMessage("fighter, spearman, page, ilwizard, fpwizard, cleric, hunter, crossbowman, assassin, bandit.");
                      mc.dropMessage("Future job advances only require you to type @jobadv."); 
                      done = 1;
                   }
                         }
                   if (done == 0) {
                       mc.dropMessage("This system allows you to perform all job advances from 2nd to 4th.");
                       mc.dropMessage("To perform a 2nd job advancement, type @jobadv <desiredjob>.");
                       mc.dropMessage("<desiredjob> can be any of the following:");
                       mc.dropMessage("fighter, spearman, page, ilwizard, fpwizard, cleric, hunter, crossbowman, assassin, bandit.");
                       mc.dropMessage("Future job advances only require you to type @jobadv.");
                       mc.dropMessage("For your first job advance, talk to your respective job instructor.");
                   }     
               }
               }

Pirates not included due to them being too buggy to be used in an actual server at this time. If you really need them, look at the code and make the required modifications.
Your comments are more than welcome.
 
Junior Spellweaver
Joined
Aug 3, 2008
Messages
138
Reaction score
11
Re: [Release] @jobadv

yeah worked fine but idk for all it works best for v.59
 
Master Summoner
Joined
Jul 28, 2008
Messages
503
Reaction score
0
Re: [Release] @jobadv

w8 so they could job themselves to any job 0.o?
 
Experienced Elementalist
Joined
Jul 8, 2008
Messages
246
Reaction score
0
Re: [Release] @jobadv

for the ppl who have pirate job add this onto the end for every job there is, i never used v59 so i woulndt no

Code:
     }
                       else if ((splitted[1].equals("NAMEofPIRATEjob")) && job == (net.sf.odinms.client.MapleJob.CURRENTJOB)) {
                           player.changeJob(net.sf.odinms.client.MapleJob.ADVANCEDJOB);
                           mc.dropMessage("Congratulations, you have successfully taken the 2nd job advancement as a NEWJOB.");

REPLACE the letters that are obvious, do so for every Job.
 
Junior Spellweaver
Joined
Apr 29, 2008
Messages
199
Reaction score
0
Re: [Release] @jobadv

why dont use autojob to go from job2>job3>job4

Code:
                if (getLevel() == 70)
                {
                if (job == MapleJob.ASSASSIN)
                {changeJob(MapleJob.HERMIT);}
                else if (job == MapleJob.BANDIT)
                {changeJob(MapleJob.CHIEFBANDIT);}
                else if (job == MapleJob.HUNTER)
                {changeJob(MapleJob.RANGER);}
                else if (job == MapleJob.CROSSBOWMAN)
                {changeJob(MapleJob.SNIPER);}
                else if (job == MapleJob.FP_WIZARD)
                {changeJob(MapleJob.FP_MAGE);}
                else if (job == MapleJob.IL_WIZARD)
                {changeJob(MapleJob.IL_MAGE);}
                else if (job == MapleJob.CLERIC)
                {changeJob(MapleJob.PRIEST);}
                else if (job == MapleJob.FIGHTER)
                {changeJob(MapleJob.CRUSADER);}
                else if (job == MapleJob.PAGE)
                {changeJob(MapleJob.WHITEKNIGHT);}
                else if (job == MapleJob.SPEARMAN)
                {changeJob(MapleJob.DRAGONKNIGHT);}
                }
                if(getLevel() == 120)
                {
                 if (job == MapleJob.HERMIT)
                {changeJob(MapleJob.NIGHTLORD);}   
                 else if (job == MapleJob.CHIEFBANDIT)
                {changeJob(MapleJob.SHADOWER);}
                else if (job == MapleJob.RANGER)
                {changeJob(MapleJob.BOWMASTER);}
                else if (job == MapleJob.SNIPER)
                {changeJob(MapleJob.CROSSBOWMASTER);}
                else if (job == MapleJob.FP_MAGE)
                {changeJob(MapleJob.FP_ARCHMAGE);}
                else if (job == MapleJob.IL_MAGE)
                {changeJob(MapleJob.IL_ARCHMAGE);}
                else if (job == MapleJob.PRIEST)
                {changeJob(MapleJob.BISHOP);}
                else if (job == MapleJob.CRUSADER)
                {changeJob(MapleJob.HERO);}
                else if (job == MapleJob.WHITEKNIGHT)
                {changeJob(MapleJob.PALADIN);}
                else if (job == MapleJob.DRAGONKNIGHT)
                {changeJob(MapleJob.DARKKNIGHT);} 
                }
 
Banned
Banned
Joined
Aug 16, 2008
Messages
102
Reaction score
0
Re: [Release] @jobadv

Lol... this is for lazy people right?
 
Banned
Banned
Joined
Aug 16, 2008
Messages
102
Reaction score
0
Re: [Release] @jobadv

Lol, How did you start writing scripts?
 
Junior Spellweaver
Joined
Aug 3, 2008
Messages
138
Reaction score
11
Re: [Release] @jobadv

hmm i have tons of friends they play ms to we all begun we were'nt so smart so we just wrote piece by piece
 
Banned
Banned
Joined
Aug 16, 2008
Messages
102
Reaction score
0
Re: [Release] @jobadv

How did you's start? I'm Struggling..
 
Junior Spellweaver
Joined
Aug 3, 2008
Messages
138
Reaction score
11
Re: [Release] @jobadv

erm i did'nt have any use for my ragezone acc so i started to make :p btw if u wonder how i release fast we have like 7 ppl in this acct
 
Custom Title Activated
Loyal Member
Joined
Apr 5, 2008
Messages
1,025
Reaction score
5
Re: [Release] @jobadv

pretty sure this was released before...
 
Master Summoner
Joined
Jul 28, 2008
Messages
503
Reaction score
0
Re: [Release] @jobadv

pretty sure this was released before...

actually it was :S

he is just a leecher he thinks he is the only smart one :S

look at all his releases all leeches
 
Back
Top