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 Advancer for overlevels at 2nd job.

Status
Not open for further replies.
Initiate Mage
Joined
May 21, 2008
Messages
1
Reaction score
0
I do not know whether this is released. But I found out that there's problems with high rates servers with rebirth. After much rebirth they will get level faster thus over leveling after 2nd job. Skipping 3rd. Job Advance NPC then does not recognise the job advancement.

This is the solve for it, however, it is only for those who had went through 2nd Job.

Code:
/* [NPCid]
	OverLevel Job Advancer
Released and Tested by Mush in AGMS, KMCS.
Specially made for SydneyMS. Releasing in Ragezone.
 */
importPackage(net.sf.odinms.client);


var status = 0;
var job;

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) 
        {
            if (cm.getLevel() < 120) 
            {
		status = 98;
                cm.sendNext("Sorry, but you have to be at least level 120 to get a 4th job advance.");                
		}
		else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN) || cm.getJob().equals(net.sf.odinms.client.MapleJob.BANDIT) 
                    || cm.getJob().equals(net.sf.odinms.client.MapleJob.HUNTER)
                    || cm.getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMAN) 
                    || cm.getJob().equals(net.sf.odinms.client.MapleJob.PAGE) || cm.getJob().equals(net.sf.odinms.client.MapleJob.FIGHTER)|| cm.getJob().equals(net.sf.odinms.client.MapleJob.SPEARMAN)
                    ||cm.getJob().equals(net.sf.odinms.client.MapleJob.CLERIC)|| cm.getJob().equals(net.sf.odinms.client.MapleJob. FP_WIZARD) || cm.getJob().equals(net.sf.odinms.client.MapleJob. IL_WIZARD))
                {
		    cm.sendNext("Hello #b#h ##k, I'm in charge of over-level Job Advancing on #bSydneyMS#k.");
		}
		else if (cm.getLevel() >= 120)
		{
		    if
(cm.getJob().equals(net.sf.odinms.client.MapleJob.NIGHTLORD) || cm.getJob().equals(net.sf.odinms.client.MapleJob.SHADOWER) 
                    || cm.getJob().equals(net.sf.odinms.client.MapleJob.BOWMASTER)
                    || cm.getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMASTER) 
                    || cm.getJob().equals(net.sf.odinms.client.MapleJob.PALADIN) || cm.getJob().equals(net.sf.odinms.client.MapleJob.HERO)|| cm.getJob().equals(net.sf.odinms.client.MapleJob.DARKKNIGHT)
                    ||cm.getJob().equals(net.sf.odinms.client.MapleJob.BISHOP)|| cm.getJob().equals(net.sf.odinms.client.MapleJob. FP_ARCHMAGE) || cm.getJob().equals(net.sf.odinms.client.MapleJob. IL_ARCHMAGE))
		{
                    cm.sendOk("Hello #b#h ##k, \r\nThere arent any more jobs after this. \r\n \r\nGo test out your skills and enjoy! ");
                    cm.dispose();
                }
                else 
                {
                    status = 101;
                    cm.sendNext("Hello #b#h ##k, I'm in charge of Job Advancing on #bSydneyMS#k.");
                }
            }
        }
        else if (status == 1) 
        {
            if (cm.getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN)) 
            {
                status = 105;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Nightlord?");
            } 
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BANDIT)) 
            {
                status = 108;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Shadower?");
            }
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.HUNTER)) 
            {
                status = 111;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Bowmaster?");
            }
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMAN)) 
            {
                status = 114;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Cross-Bowmaster?");
            } 
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.FP_WIZARD)) 
            {
                status = 117;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a F/P Archmage?");
            } 
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.IL_WIZARD)) 
            {
                status = 120;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a I/L Archmage?");
            } 
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.CLERIC)) 
            {
                status = 123;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Bishop?");
            }
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.FIGHTER)) 
            {
                status = 126;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Hero?");
            }
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PAGE)) 
            {
                status = 129;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Paladin?");
            }
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.SPEARMAN)) 
            {
                status = 132;
                cm.sendYesNo("Congrats on reaching level 120! Do you want to advance to a Dark Knight?");
            } 
            else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) 
            {
                cm.sendNext("Such a high level #bBeginner#k! Amazing!");
                cm.dispose();
            }
        }
        else if (status == 106) 
        {
            cm.changeJob(MapleJob.NIGHTLORD);
	    cm.sendOk("Congratulations, you are now a NightLord! Go and test your skills now! Be glad that you can advance at such high level.");
	    cm.dispose();
} 
        else if (status == 109)
        {
            cm.changeJob(MapleJob.SHADOWER);
            cm.sendOk("Congratulations, you are now a Shadower! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        } 
        else if (status == 112) 
        {
            cm.changeJob(MapleJob.BOWMASTER);
            cm.sendOk("Congratulations, you are now a BowMaster! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        } 
        else if (status == 115) 
        {
            cm.changeJob(MapleJob.CROSSBOWMASTER);
            cm.sendOk("Congratulations, you are now a Crossbow Master! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        } 
        else if (status == 118)
        {
            cm.changeJob(MapleJob.FP_ARCHMAGE);
            cm.sendOk("Congratulations, you are now a Fire/Poison ArchMage! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        }
        else if(status == 121) 
        {
            cm.changeJob(MapleJob.IL_ARCHMAGE);
            cm.sendOk("Congratulations, you are now a Ice/Lightning ArchMage! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        }
        else if (status == 124) 
        {
            cm.changeJob(MapleJob.BISHOP);
            cm.sendOk("Congratulations, you are now a Bishop! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        } 
        else if (status == 127) 
        {
            cm.changeJob(MapleJob.HERO);
            cm.sendOk("Congratulations, you are now a Hero! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        } 
        else if (status == 130)
        {
            cm.changeJob(MapleJob.PALADIN);
            cm.sendOk("Congratulations, you are now a Paladin! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        } 
        else if (status == 133)
        {
            cm.changeJob(MapleJob.DARKKNIGHT);
            cm.sendOk("Congratulations, you are now a DarkKnight! Go and test your skills now! Be glad that you can advance at such high level.");
            cm.dispose();
        }
    }
}
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [Mini-Release] Job Advancer for overlevels at 2nd job.

testing
 
Master Summoner
Joined
May 31, 2008
Messages
524
Reaction score
1
Re: [Mini-Release] Job Advancer for overlevels at 2nd job.

This was already released... But, still useful!
 
Status
Not open for further replies.
Back
Top