[Release] Samuel 4th Job NPC (Pirate)

Results 1 to 7 of 7
  1. #1
    Member Minseok is offline
    MemberRank
    May 2008 Join Date
    79Posts

    [Release] Samuel 4th Job NPC (Pirate)

    Coded it last night with some people.

    Code:
    /* [NPC]
    	4th Job Advancer for Pirates
    	Made by Mins of CronicStory
    	Please don't release this anywhere else.
     */
    
    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) {
                    cm.sendNext("Sorry, but you have to be at least level 120 to make 4th Job Advancement.");
                    status = 98;
                } else if (cm.getLevel() >=120) {
                    status = 101;
                    cm.sendNext("Hello, So you want 4th Job Advancement eh?.");
                }
            } else if (status == 102) {
                if (cm.getJob().equals(net.sf.odinms.client.MapleJob.MARAUDER)) {
                    status = 111;
                    cm.sendYesNo("Congratulations on reaching such a high level. Do you want to Job Advance now?");
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.OUTLAW)) {
                    status = 114;
                    cm.sendYesNo("Congratulations on reaching such a high level. Do you want to Job Advance now?");
                }
            } else if (status == 112) {
                cm.changeJob(MapleJob.BUCCANEER);
                cm.teachSkill(5121004,0,30);
                cm.teachSkill(5121005,0,30);
                cm.teachSkill(5121010,0,30);
                cm.teachSkill(5121001,0,30);
                cm.teachSkill(5121002,0,30);
                cm.teachSkill(5121003,0,20);
                cm.teachSkill(5221000,0,20);
                cm.teachSkill(5121000,0,20);
                cm.sendOk("There you go. Hope you enjoy it. I've given you a full set of skills as well, aren't you lucky!");
            } else if (status == 115) {
                cm.changeJob(MapleJob.CORSAIR);
                cm.teachSkill(5220001,0,30);
                cm.teachSkill(5220011,0,20);
                cm.teachSkill(5220002,0,20);
                cm.teachSkill(5121000,0,20);
                cm.teachSkill(5221003,0,30);
                cm.teachSkill(5221004,0,30);
                cm.teachSkill(5221009,0,30);
                cm.teachSkill(5221006,0,10);
                cm.teachSkill(5221007,0,30);
                cm.teachSkill(5221008,0,30);
                cm.teachSkill(5221010,0,1);
                cm.sendOk("There you go. Hope you enjoy it. I've given you a full set of skills as well, aren't you lucky!");
            }
        }
    }
    Enjoy,
    Minseok


  2. #2
    Enthusiast WilsonGB1O is offline
    MemberRank
    Jan 2009 Join Date
    32Posts

    Re: [Release] Samuel 4th Job NPC (Pirate)

    this is in thepack ? malady ?

  3. #3
    Account Upgraded | Title Enabled! HawksKing is offline
    MemberRank
    Aug 2008 Join Date
    Behind You!Location
    219Posts

    Re: [Release] Samuel 4th Job NPC (Pirate)

    I don't think people need Pirate Job Advance NPC anymore.... there are tons out there with all the skills and with job 1-4

    but... hope this might help some people

  4. #4
    Account Upgraded | Title Enabled! Lanny is offline
    MemberRank
    Aug 2008 Join Date
    In your screen!Location
    399Posts

    Re: [Release] Samuel 4th Job NPC (Pirate)

    Quote Originally Posted by HawksKing View Post
    I don't think people need Pirate Job Advance NPC anymore.... there are tons out there with all the skills and with job 1-4

    but... hope this might help some people
    This npc is for getting closer to GMS.. not ones that job advance right away.

  5. #5
    Member Minseok is offline
    MemberRank
    May 2008 Join Date
    79Posts

    Re: [Release] Samuel 4th Job NPC (Pirate)

    This is for GMS...and skillbooks not needed.

  6. #6
    Member Minseok is offline
    MemberRank
    May 2008 Join Date
    79Posts

    Re: [Release] Samuel 4th Job NPC (Pirate)

    Yeah, please don't release this anywhere but here. I don't like my work being leaked like a ho.

    And I did code this. I used the basic layout of the other 4th job NPCs and than redid so that it wouldn't bug people after clicking the NPC.

  7. #7
    Valued Member kingpimptony is offline
    MemberRank
    Jun 2008 Join Date
    148Posts

    Re: [Release] Samuel 4th Job NPC (Pirate)

    when ppl click this npc and get the Lacking skill level 1.o.0



Advertisement