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!

Job Commands - Needs some work

Status
Not open for further replies.
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
These commands are aplit into two sections. The first section you use one command for all job advances, and the second you use the correct job for the job adance.
Ex. The first section I use @NL to become a Rouge/Assassin/Hermit/NightLord
The Second Section i use @Rouge, then @Assassin, then @Hermit, then @NightLord

Section ONE!

Warriors Section :
Code:
                            //Start Spear
                         }else if (splitted[0].equals("@DK")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(100));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Warrior!");
                        }else if (player.getJob().isA(MapleJob.getById(100)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(130));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Spearman!");
                        }else if (player.getJob().isA(MapleJob.getById(130)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(131));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Dragon Knight!");
                        }else if (player.getJob().isA(MapleJob.getById(131)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(132));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Dark Knight!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Dark Knight!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //end Spear
                            //Start page
                         }else if (splitted[0].equals("@WK")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(100));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Warrior!");
                        }else if (player.getJob().isA(MapleJob.getById(100)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(120));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Page!");
                        }else if (player.getJob().isA(MapleJob.getById(120)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(121));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a White Knight!");
                        }else if (player.getJob().isA(MapleJob.getById(121)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(122));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Paladin!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Paladin!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //end Page
                            //Start Fighter
                           }else if (splitted[0].equals("@Sader")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(100));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Warrior!");
                        }else if (player.getJob().isA(MapleJob.getById(100)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(110));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Fighter!");
                        }else if (player.getJob().isA(MapleJob.getById(110)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(111));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Crusader!");
                        }else if (player.getJob().isA(MapleJob.getById(111)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(112));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hero!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Hero!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //end Fighter
Magician Section :
Code:
                          //Start Cleric
                         }else if (splitted[0].equals("@Bishop")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 8 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(200));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Magician!");
                        }else if (player.getJob().isA(MapleJob.getById(200)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(230));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Cleric!");
                        }else if (player.getJob().isA(MapleJob.getById(230)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(231));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Priest!");
                        }else if (player.getJob().isA(MapleJob.getById(231)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(232));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Bishop!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Bishop!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                          //End Cleric
                            //Start Ice
                           }else if (splitted[0].equals("@IL")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 8 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(200));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Magician!");
                        }else if (player.getJob().isA(MapleJob.getById(200)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(220));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a IL_Wizard!");
                        }else if (player.getJob().isA(MapleJob.getById(220)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(221));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a IL_Mage!");
                        }else if (player.getJob().isA(MapleJob.getById(221)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(222));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a IL_ArchMage!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a IL_Arch Mage!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //End Ice
                            //Start Fire
                          }else if (splitted[0].equals("@FP")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 8 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(200));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Magician!");
                        }else if (player.getJob().isA(MapleJob.getById(200)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(210));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a FP_Wizard!");
                        }else if (player.getJob().isA(MapleJob.getById(210)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(211));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a FP_Mage!");
                        }else if (player.getJob().isA(MapleJob.getById(211)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(212));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a FP_ArchMage!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on FP_Arch Mage!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //End Fire
Archers Section :
Code:
                            //Start xbow
                           }else if (splitted[0].equals("@Sniper")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(300));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Archer!");
                        }else if (player.getJob().isA(MapleJob.getById(300)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(320));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Crossbow Man!");
                        }else if (player.getJob().isA(MapleJob.getById(320)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(321));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Sniper!");
                        }else if (player.getJob().isA(MapleJob.getById(321)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(322));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Crossbow Master!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Crossbow Master!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //end Sniper
                            //Start bow
                         }else if (splitted[0].equals("@Ranger")) {
                          int expfix;
                          StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(300));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Archer!");
                        }else if (player.getJob().isA(MapleJob.getById(300)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(320));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hunter!");
                        }else if (player.getJob().isA(MapleJob.getById(320)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(321));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Ranger!");
                        }else if (player.getJob().isA(MapleJob.getById(321)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(322));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Bow Master!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Bow Master!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                            //end Bow
Thief Section :
Code:
    //Start Assassin
                      }else if (splitted[0].equals("@NL")) {
                          int expfix;
                           StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(400));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Rouge!");
                        }else if (player.getJob().isA(MapleJob.getById(400)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(410));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now an Assassin!");
                        }else if (player.getJob().isA(MapleJob.getById(410)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(411));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hermit!");
                        }else if (player.getJob().isA(MapleJob.getById(411)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(412));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Night Lord!");
MaplePacket packet = MaplePacketCreator.serverNotice(6, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Night Lord!");
                        }else{
                             mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }//End Assassin
                          //Start Bandit
                        }else if (splitted[0].equals("@CB")) {
                          int expfix;
                            StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(400));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Rouge!");
                        }else if (player.getJob().isA(MapleJob.getById(400)) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(420));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Bandit!");
                        }else if (player.getJob().isA(MapleJob.getById(420)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(421));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Chief Bandit!");
                        }else if (player.getJob().isA(MapleJob.getById(421)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(422));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Shadower!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Shadower!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
                          //End Bandit
Section TWO!
Commands split up (This is better)
Ex. @Rouge then @Assassin, then @Hermit, then @NightLord

Warrior Section :
Code:
//Warrior
}else if (splitted[0].equals("@Warrior")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(100));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Warrior!");
mc.dropMessage("Type @Fighter, @Page, or @Spearman To advance to the second job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Fighter
}else if (splitted[0].equals("@Fighter")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(100)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(110));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Fighter!");
mc.dropMessage("Type @Crusader to Advance to the Third Job!!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Crusader
}else if (splitted[0].equals("@Crusader")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(110)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(111));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Crusader!");
mc.dropMessage("Type @Hero to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Hero
}else if (splitted[0].equals("@Hero")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(111)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(112));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hero!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Page
}else if (splitted[0].equals("@Page")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(100)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(120));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Page!");
mc.dropMessage("Type @WhiteKnight to Advance to the Third Job!!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Crusader
}else if (splitted[0].equals("@WhiteKnight")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(120)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(121));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a White Knight!");
mc.dropMessage("Type @Paladin to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Hero
}else if (splitted[0].equals("@Paladin")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(121)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(122));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Paladin!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Page
}else if (splitted[0].equals("@Spearman")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(100)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(130));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Spearman!");
mc.dropMessage("Type @DragonKnight to Advance to the Third Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Crusader
}else if (splitted[0].equals("@DragonKnight")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(130)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(131));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Dragon Knight!");
mc.dropMessage("Type @DarkKnight to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Hero
}else if (splitted[0].equals("@DarkKnight")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(131)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(132));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Dark Knight!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
Magician Section :
Code:
//Magician
}else if (splitted[0].equals("@Magician")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(200));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Magician!");
mc.dropMessage("Type @FPWizard, @ILWizard, or @Cleric To advance to the second job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//F/P Wizard
}else if (splitted[0].equals("@FPWizard")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(200)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(210));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a F/P Wizard");
mc.dropMessage("Type @FPMage to Advance to the Third Job!!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//F/P Mage
}else if (splitted[0].equals("@FPMage")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(210)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(211));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a F/P Mage!");
mc.dropMessage("Type @Fire to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//F/P Arch Mage
}else if (splitted[0].equals("@Fire")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(211)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(212));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a F/P Arch Mage!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//I/L Wizard
}else if (splitted[0].equals("@ILWizard")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(200)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(220));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a I/L Wizard!");
mc.dropMessage("Type @ILMage to Advance to the Third Job!!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//I/L Mage
}else if (splitted[0].equals("@ILMage")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(220)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(221));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a I/L Mage!");
mc.dropMessage("Type @Ice to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//I/L Arch Mage
}else if (splitted[0].equals("@Ice")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(221)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(222));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a I/L Arch Mage!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Cleric
}else if (splitted[0].equals("@Cleric")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(200)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(230));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Cleric!");
mc.dropMessage("Type @Priest to Advance to the Third Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Priest
}else if (splitted[0].equals("@Priest")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(230)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(231));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Priest!");
mc.dropMessage("Type @Bishop to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Bishop
}else if (splitted[0].equals("@Bishop")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(231)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(232));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Bishop!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
Archer Section :
Code:
//Archer
}else if (splitted[0].equals("@Archer")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(300));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now an Archer!");
mc.dropMessage("Type @Hunter or @CrossBow To advance to the second job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Hunter
}else if (splitted[0].equals("@Hunter")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(300)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(310));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hunter!");
mc.dropMessage("Type @Ranger to Advance to the Third Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Ranger
}else if (splitted[0].equals("@Ranger")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(310)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(311));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Ranger!");
mc.dropMessage("Type @BowMaster to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//BowMaster
}else if (splitted[0].equals("@BowMaster")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(311)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(312));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a BowMaster!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Crossbow 
}else if (splitted[0].equals("@CrossBow")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(300)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(320));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Crossbow Man!");
mc.dropMessage("Type @Sniper to Advance to the Third Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Sniper
}else if (splitted[0].equals("@Sniper")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(320)) && player.getLevel() >= 70 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(321));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Sniper!");
mc.dropMessage("Type @MarksMan to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Marksman
}else if (splitted[0].equals("@MarksMan")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(321)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(322));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Marksman!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
Rouge Section :
Code:
//Rouge
}else if (splitted[0].equals("@Rouge")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(0)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(400));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Rouge!");
mc.dropMessage("Type @Assassin or @Bandit To advance to the second job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Assassin
}else if (splitted[0].equals("@Assassin")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(400)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(410));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now an Assassin!");
mc.dropMessage("Type @Hermit to Advance to the Third Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Hermit
}else if (splitted[0].equals("@Hermit")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(410)) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(411));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hermit!");
mc.dropMessage("Type @NightLord to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Night Lord
}else if (splitted[0].equals("@NightLord")) {
int expfix;
                        if (player.getJob().isA(MapleJob.getById(411)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(412));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Night Lord!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Bandit
}else if (splitted[0].equals("@Bandit")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(400)) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(420));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Bandit!");
mc.dropMessage("Type @ChiefBandit to Advance to the Third Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Chief Bandit
}else if (splitted[0].equals("@ChiefBandit")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(420)) && player.getLevel() >= 70 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(421));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Chief Bandit!");
mc.dropMessage("Type @Shadower to Advance to the Forth Job!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
//Shadower
}else if (splitted[0].equals("@Shadower")) {
int expfix;
                       if (player.getJob().isA(MapleJob.getById(421)) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(422));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Shadower!");
mc.dropMessage("This is your Last Job Advance. Type @rebirth when you're at level 200 to Rebirth and turn back to a beginner!");
                        } else {
                      mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
}
What needs working on :

- When you're an assassin you can do @CB and change jobs to a Bandit and then @NL to turn back into a Assassin

- Make the "Congratulaitons to <charname> on becomming a <4th job>!"


Have Fun Guys!
 
Last edited:
my milkshake.
Joined
Aug 23, 2008
Messages
230
Reaction score
10
Re: [Release]Job Commands - Needs some work

Wall of text? ew...
 
Skilled Illusionist
Loyal Member
Joined
Jun 23, 2008
Messages
324
Reaction score
0
Re: [Release]Job Commands - Needs some work

Wow nice release Looney, hope someone could try it and test does it has errors
 
Junior Spellweaver
Joined
Apr 30, 2008
Messages
114
Reaction score
5
Re: [Release]Job Commands - Needs some work

Wow nice release Looney, hope someone could try it and test does it has errors

The only error is that when ure a bandit u can switch to a nightlord. everything else seems to be fully functional
 
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
Re: [Release]Job Commands - Needs some work

The only error is that when ure a bandit u can switch to a nightlord. everything else seems to be fully functional
Actually its if your a bandit you can switch to a Assassin, but if your a Hermit you cannot switch. the only jobs i guess are the splits
EX. From Archer, Mage?, Assassin, and such.

Wow nice release Looney, hope someone could try it and test does it has errors

Correct It does work except for those two "Glitches" it comes with 0 Errors =)

Wall of text? ew...
Criticism..I Hate J00! Anyways I did say "I know its messy" SORRY! I'll try to fix it or something.
 
Newbie Spellweaver
Joined
Jun 1, 2008
Messages
91
Reaction score
0
Re: [Release]Job Commands - Needs some work

Good job on the release.
 
Legendary Battlemage
Loyal Member
Joined
Dec 7, 2007
Messages
622
Reaction score
11
Re: [Release]Job Commands - Needs some work

why not just add the command @cody so it opens up the npc so he does advance so much easier thats what i added on meh server
 
Skilled Illusionist
Loyal Member
Joined
Jun 23, 2008
Messages
324
Reaction score
0
Re: [Release]Job Commands - Needs some work

why not just add the command @cody so it opens up the npc so he does advance so much easier thats what i added on meh server

Good idea dude ~!!XD
 
Mythic Archon
Loyal Member
Joined
Jul 23, 2008
Messages
796
Reaction score
56
Re: [Release]Job Commands - Needs some work

Insignificant*
THere's a @opennpc command already.
 
Junior Spellweaver
Joined
Apr 30, 2008
Messages
114
Reaction score
5
Re: [Release]Job Commands - Needs some work

Insignificant*
THere's a @opennpc command already.

Geez stop complaining, if u dont like it dont flame her... she tried her best
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release]Job Commands - Needs some work

Looks ok.
 
Newbie Spellweaver
Joined
Aug 19, 2008
Messages
6
Reaction score
0
Re: [Release]Job Commands - Needs some work

good job i have no problem with this =] fully working
 
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
Re: [Release]Job Commands - Needs some work

Code:
    //Start Assassin
                      }else if (splitted[0].equals("@Rouge")) {
                          int expfix;
                           StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.BEGINNER) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(400));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Rouge!");
                }else{
                             mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
                        }
                   }else if (splitted[0].equals("@Assasin")) {
  int expfix;
                           StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.THIEF) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(410));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now an Assassin!");
                     }else{
                             mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
                        }
                   }else if (splitted[0].equals("@Hermit")) {
  int expfix;
                           StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                     if (player.getJob().isA(MapleJob.ASSASSIN) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(411));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Hermit!");
                     }else{
                             mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
                        }
                  }else if (splitted[0].equals("@NL")) {
  int expfix;
                           StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.HERMIT) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(412));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Night Lord!");
MaplePacket packet = MaplePacketCreator.serverNotice(6, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Night Lord!");
                        }else{
                             mc.dropMessage("You Either are an insignificant level or Job, Please Try again.");
                        }//End Assassin
                          //Start Bandit
                        }else if (splitted[0].equals("@CB")) {
                          int expfix;
                            StringBuilder sb = new StringBuilder();
                            sb.append(c.getPlayer().getName());
                        if (player.getJob().isA(MapleJob.BEGINNER) && player.getLevel() >= 10 && player.getLevel() <= 29) {
 c.getPlayer().changeJob(MapleJob.getById(400));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Rouge!");
                        }else if (player.getJob().isA(MapleJob.THIEF) && player.getLevel() >= 30 && player.getLevel() <= 69) {
 c.getPlayer().changeJob(MapleJob.getById(420));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Bandit!");
                        }else if (player.getJob().isA(MapleJob.BANDIT) && player.getLevel() >= 70 && player.getLevel() <= 119) {
 c.getPlayer().changeJob(MapleJob.getById(421));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Chief Bandit!");
                        }else if (player.getJob().isA(MapleJob.CHIEFBANDIT) && player.getLevel() >= 120 && player.getLevel() <= 199) {
 c.getPlayer().changeJob(MapleJob.getById(422));
 expfix = c.getPlayer().getExp();
                                      c.getPlayer().gainExp(-expfix, false, false);
                      player.updateSingleStat(MapleStat.EXP, player.getExp()); 
mc.dropMessage("You're now a Shadower!");
MaplePacket packet = MaplePacketCreator.serverNotice(0, "Congratulations " + sb.append(c.getPlayer().getName()) + " on becomming a Shadower!");
                        }else{
                              mc.dropMessage("You Either are an insugnificant level or Job, Please Try again.");
                        }
}

I did nothing but copy/paste, you have everything done.

But, i don't get how can you.. being an Assasin do a @CB and become a Bandit, since the requeriment to become bandit is be a rouge not an assassin :/
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release]Job Commands - Needs some work

I guess u need type @rouge then cb or whatever
 
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
Re: [Release]Job Commands - Needs some work

I'm just going to split the commands, anyways I think it would be easier to do @<job> instead of opening a stupid npc. Also This script announces when you get to the 4th job...I think *_*
 
Experienced Elementalist
Joined
Jul 26, 2008
Messages
280
Reaction score
0
Re: [Release]Job Commands - Needs some work

Lol the script looks perfectly fine but it has some bugs. Just like my old @str command. I had to make it look weird then everything worked. So try to do that :p Play around with the && and || although it means the same thing. Might work. Worked for me. Joining commands abit complicated.
 
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
Re: [Release]Job Commands - Needs some work

Lol the script looks perfectly fine but it has some bugs. Just like my old @str command. I had to make it look weird then everything worked. So try to do that :p Play around with the && and || although it means the same thing. Might work. Worked for me. Joining commands abit complicated.


lol, those are logic operator..

&& = And (If boths are true, then)

|| = Or (If one is true and another false, can process, only 1 is needed to process)


GMLonney.

The way you just said you wants to make it, is better (@<JobName>)..

But, i still don't get how can you become a Bandit, from a Assasin if the code seen to be so extrict with the job requeriment.
 
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
Re: [Release]Job Commands - Needs some work

lol, those are logic operator..

&& = And (If boths are true, then)

|| = Or (If one is true and another false, can process, only 1 is needed to process)


GMLonney.

The way you just said you wants to make it, is better (@<JobName>)..

But, i still don't get how can you become a Bandit, from a Assasin if the code seen to be so extrict with the job requeriment.
I have no idea either, I tried making all the job advances different like @Rouge @Assassin @Hermit and so and and it didn't work. So yea
I also switched mine from MapleJob.(Job Name) to MapleJob.getById(0))

It might not seem easier but it is and its more organized.

**Edit
Updated Commands and split them into TWO Sections.
 
Last edited:
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
Re: [Release]Job Commands - Needs some work

with job ID's it did makes a different with the "glitch"?
 
Status
Not open for further replies.
Back
Top