Simple Rebirth Quest

Page 1 of 2 12 LastLast
Results 1 to 25 of 34
  1. #1
    Proficient Member Darkwar4ever is offline
    MemberRank
    Jun 2008 Join Date
    Albany, New YorkLocation
    189Posts

    Simple Rebirth Quest

    This took a little while to script, and was done because the people on my server rebirthed, got bored, and just stopped playing.

    Well, this quest will limit that to a decent rate.

    This quest assumes the following:

    You don't have the command @rebirth.
    You have players that are bored somewhat.
    You have the commands !pmob or !pnpc, know how to use them, or something similar.
    You don't have boats/trains/other working transports event.js' enabled in world.properties.
    You don't have the rebirth function in Cody or any other NPC except the one in this quest.
    Note: Some NPCs can be found in other places. I suggest you block some portals, or you find new NPCs.

    It's a very simple quest really. You warp in, kill various bosses on inaccessible maps and proceed to the Badlands, a map in NLC which cannot be accessed.

    A rebirth NPC is located there, and will cost 1 billion mesos to rebirth.

    This quest is designed so you can customize it.

    Picture?:


    Not convinced? Look below for more pictures. >.>

    There are instructions in the .rar. I seriously hope you have winrar.

    Download: here or attached below.

    Instructions:
    1) Execute 1 of the 2 SQLs depending on your drop rate.

    Format of instructions:
    Place [NPC] on the map. Place [number] [MOB] on the map.

    So !pnpc [NPCID]
    Or !pmob [MOBID] [MobSpawnTime] Spawn time is calculated in seconds.
    [number] means the number of times you have to do the command in various places of the maps.

    =========================================================
    Place 2030006 - Starter NPC in any map
    =========================================================
    Proceed to the first stage.
    =========================================================
    Place NPC 2111005 on the map. Place 3 8150000 on the map.
    =========================================================
    Talk to 2111005 after collecting items.
    =========================================================
    Place 2040031 on the map. Place 1 8500001 on the map.
    =========================================================
    Talk to 2040031 after collecting items.
    =========================================================
    Place 2041010 on the map. Place 2 8180000 on the map.
    =========================================================
    Talk to 2041010 after collecting items.
    =========================================================
    Place 2041009 on the map. Place 2 8180001 on the map.
    =========================================================
    Talk to 2041009 after collecting items.
    =========================================================
    Place 1052013 anywhere on the map.
    =========================================================
    Talk to 1052013 to rebirth.
    =========================================================

    IDs: (for reference)
    8150000 = crimson balrog
    drops: 4031906

    8500001 = papulatus clock
    drops: 4031901

    manon = 8180000
    drops: manon's tail = 4000235

    griffey = 8180001
    drops: griffey's horn = 4000243








    Attached Files Attached Files
    Last edited by Darkwar4ever; 15-03-09 at 01:05 AM.


  2. #2
    Infraction Banned holymeeper is offline
    MemberRank
    Jun 2008 Join Date
    In a boxLocation
    404Posts

    Re: Simple Rebirth Quest

    Alright i guess X33

  3. #3
    Member HeyitzStan is offline
    MemberRank
    Apr 2008 Join Date
    91Posts

    Re: Simple Rebirth Quest

    i think i'll use this lol

  4. #4
    Account Upgraded | Title Enabled! AzuS is offline
    MemberRank
    Jul 2008 Join Date
    871Posts

    Re: Simple Rebirth Quest

    Not bad xD

    Actually...I never thought of this.....

    Quite smart...

    So its like in order to rebirth, you have to finish a quest?

  5. #5
    Account Upgraded | Title Enabled! silv3rbullet is offline
    MemberRank
    Dec 2008 Join Date
    1,277Posts

    Re: Simple Rebirth Quest

    I already have this on my server, except with a twist.
    It really works well.

    I used to do this with Cody, but I think now i'll do it with the Holy Stone.
    It fits more. ^_^

  6. #6
    Proficient Member Darkwar4ever is offline
    MemberRank
    Jun 2008 Join Date
    Albany, New YorkLocation
    189Posts

    Re: Simple Rebirth Quest

    Yep. This really prevents hackers from over taking the server as well, because doing the quest will take longer to level to 200 in some cases. :3

  7. #7
    Alpha Member watzmename is offline
    MemberRank
    Aug 2008 Join Date
    2,835Posts

    Re: Simple Rebirth Quest

    Could you put up some more screenshots?

  8. #8
    Proficient Member Darkwar4ever is offline
    MemberRank
    Jun 2008 Join Date
    Albany, New YorkLocation
    189Posts

    Re: Simple Rebirth Quest

    Done. :3

    I don't see what's the point though.

    It's just killing bosses, warp to the badlands.

    I replaced all the mobs in the badlands with Crimson Guardians and Skellies and other bosses for the heck of it. XD This way people can't train in that map properly 'cause it seals so much. @_@

  9. #9
    wackyracer#1337 wackyracer is offline
    MemberRank
    Jun 2008 Join Date
    1,524Posts

    Re: Simple Rebirth Quest

    Definitely worth putting in your server. Rebirth should always be a quest. :]

  10. #10
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Simple Rebirth Quest

    holy ffffffffffffffffffffffffk
    GREAT!!

  11. #11
    Account Upgraded | Title Enabled! cihadpx68 is offline
    MemberRank
    Oct 2008 Join Date
    www.sixty8story.comLocation
    827Posts

    Re: Simple Rebirth Quest

    im gonna use this!

  12. #12
    Account Upgraded | Title Enabled! Shadow465 is offline
    MemberRank
    Jul 2008 Join Date
    437Posts

    Re: Simple Rebirth Quest

    Pretty nice idea.(:

    I think I might bite off you.

  13. #13
    Account Upgraded | Title Enabled! ~Justin~ is offline
    MemberRank
    Jul 2008 Join Date
    Up Your Buttt ALocation
    905Posts

    Re: Simple Rebirth Quest

    This is a great release.

  14. #14
    Member MSPS123 is offline
    MemberRank
    Jan 2009 Join Date
    67Posts

    Re: Simple Rebirth Quest

    how do i remove rebirth player command? im using thepack80. i try to remove @rebirth and it still works. i know it's got something to do with playercommand.java but im not sure what to remove.

  15. #15
    Proficient Member Darkwar4ever is offline
    MemberRank
    Jun 2008 Join Date
    Albany, New YorkLocation
    189Posts

    Re: Simple Rebirth Quest

    ThePack80?..

    Er. It's in...

    src/net/sf/odinms/client/messages/playercommand.java.

    Find lines

    Code:
            } else if (splitted[0].equals("@rebirth")) {
                if (player.getLevel() > 199) {
                    player.doReborn();
                } else {
                    mc.dropMessage("You must be at least level 200.");
                }
    Delete them.

    Compile.

    Replace odinms in the dist folder (netbeans) into .dist folder in your ThePack folder.

    Replace odinms in the jdk_1.6.10 or whatever folders as well. Basically jdk_1.10_x/lib/ext/
    Any folder under C:/Java/jdk or jre that has a lib/ext, put odinms in there and replace.

    It should work after.

  16. #16
    Member MSPS123 is offline
    MemberRank
    Jan 2009 Join Date
    67Posts

    Re: Simple Rebirth Quest

    k thanks. ill try it <3

  17. #17
    Account Upgraded | Title Enabled! cihadpx68 is offline
    MemberRank
    Oct 2008 Join Date
    www.sixty8story.comLocation
    827Posts

    Re: Simple Rebirth Quest

    @darkwar4ever
    well, I didn't have !pmob command
    so i and my friend coded an event, and if can
    i want to release it with ur credits for the npc's
    and the events with our credits.
    its just for the ppl who dont have !pmob
    and with the event and all its more better

  18. #18
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Simple Rebirth Quest

    add the !pmob and !pnpc.. it's very important..

    i might add this to EgyptMS..

  19. #19
    Proficient Member lit0aznb3ar is offline
    MemberRank
    Jan 2009 Join Date
    151Posts

    Re: Simple Rebirth Quest

    I have to say this is really sexy its works perfectly but question
    I would like to take out my rebirth functions for cody and take out the command @rebirth. I'm using ThePack v62 how do i take it out? D:

  20. #20
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Simple Rebirth Quest

    dude read the replies before you write...
    someone asked and got answered...

    (You need to compile)

  21. #21
    Proficient Member Darkwar4ever is offline
    MemberRank
    Jun 2008 Join Date
    Albany, New YorkLocation
    189Posts

    Re: Simple Rebirth Quest

    Quote Originally Posted by cihadpx68 View Post
    @darkwar4ever
    well, I didn't have !pmob command
    so i and my friend coded an event, and if can
    i want to release it with ur credits for the npc's
    and the events with our credits.
    its just for the ppl who dont have !pmob
    and with the event and all its more better
    Go ahead, I don't care really. :3 I expanded my quest already... that'll be custom I guess.

    Quote Originally Posted by lit0aznb3ar View Post
    I have to say this is really sexy its works perfectly but question
    I would like to take out my rebirth functions for cody and take out the command @rebirth. I'm using ThePack v62 how do i take it out? D:
    Taking out the rebirth functions in the command is explained. Taking it out for CODY is a bit different.

    You have to find the lines where Rebirth is present. In ThePack, there's a command called cm.doreborn(); or something like that. Search reborn in NPC 9200000.js and replace that line with something simple like:
    cm.sendOk("Well, congratulations on reaching such a high level. Perhaps you should try the Rebirth Quest located at [location]");

    Here's my Cody:

    (It should work with your server because the methods are the same. This one's Rev.78 btw.)
    Code:
    importPackage(net.sf.odinms.client);
    
    var status = 0;
    var jobName;
    var job;
    
    function start() {
        status = -1;
        action(1, 0, 0);
    }
    
    function action(mode, type, selection) {
        if (mode == -1) {
            cm.sendOk("Well okay then. Come back if you change your mind.\r\n\r\nGood luck on your training.");
            cm.dispose();
        } else {
            if (mode == 1)
                status++;
            else
                status--;
            if (status == 0) {
                cm.sendNext("Hello, I'm in charge of Job Advancing.");
            } else if (status == 1) {
                if (cm.getLevel() < 200 && cm.getJob().equals(net.sf.odinms.client.MapleJob.BEGINNER)) {
                    if (cm.getLevel() < 8) {
                        cm.sendNext("Sorry, but you have to be at least level 8 to use my services.");
                        status = 98;
                    } else if (cm.getLevel() < 10) {
                        cm.sendYesNo("Congratulations of reaching such a high level. Would you like to make the #rFirst Job Advancement#k as a #rMagician#k?");
                        status = 150;
                    } else {
                        cm.sendYesNo("Congratulations on reaching such a high level. Would you like to make the #rFirst Job Advancement#k?");
                        status = 153;
                    }
                } else if (cm.getLevel() < 30) {
                    cm.sendNext("Sorry, but you have to be at least level 30 to make the #rSecond Job Advancement#k.");
                    status = 98;
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.THIEF)) {
                    cm.sendSimple("Congratulations on reaching such a high level. Which would you like to be? #b\r\n#L0#Assassin#l\r\n#L1#Bandit#l#k");
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.WARRIOR)) {
                    cm.sendSimple("Congratulations on reaching such a high level. Which would you like to be? #b\r\n#L2#Fighter#l\r\n#L3#Page#l\r\n#L4#Spearman#l#k");
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.MAGICIAN)) {
                    cm.sendSimple("Congratulations on reaching such a high level. Which would you like to be? #b\r\n#L5#Ice Lightning Wizard#l\r\n#L6#Fire Poison Wizard#l\r\n#L7#Cleric#l#k");
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.BOWMAN)) {
                    cm.sendSimple("Congratulations on reaching such a high level. Which would you like to be? #b\r\n#L8#Hunter#l\r\n#L9#Crossbowman#l#k");
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.PIRATE)) {
                    cm.sendSimple("Congratulations on reaching such a high level. Which would you like to be? #b\r\n#L10#Brawler#l\r\n#L11#Gunslinger#l#k");
                } else if (cm.getLevel() < 70) {
                    cm.sendNext("Sorry, but you have to be at least level 70 to make the #rThird Job Advancement#k.");
                    status = 98;
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN)) {
                    status = 63;
                    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.BANDIT)) {
                    status = 66;
                    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.HUNTER)) {
                    status = 69;
                    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.CROSSBOWMAN)) {
                    status = 72;
                    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.FP_WIZARD)) {
                    status = 75;
                    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.IL_WIZARD)) {
                    status = 78;
                    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.CLERIC)) {
                    status = 81;
                    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.FIGHTER)) {
                    status = 84;
                    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.PAGE)) {
                    status = 87;
                    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.SPEARMAN)) {
                    status = 90;
                    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.GUNSLINGER)) {
                    status = 95;
                    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.BRAWLER)) {
                    status = 92;
                    cm.sendYesNo("Congratulations on reaching such a high level. Do you want to Job Advance now?");
                } else if (cm.getLevel() < 120) {
                    cm.sendNext("Sorry, but you have to be at least level 120 to make the #rForth Job Advancement#k.");
                    status = 98;
                } else if (cm.getJob().equals(net.sf.odinms.client.MapleJob.HERMIT)) {
                    status = 105;
                    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.CHIEFBANDIT)) {
                    status = 108;
                    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.RANGER)) {
                    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.SNIPER)) {
                    status = 114;
                    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.FP_MAGE)) {
                    status = 117;
                    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.IL_MAGE)) {
                    status = 120;
                    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.PRIEST)) {
                    status = 123;
                    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.CRUSADER)) {
                    status = 126;
                    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.WHITEKNIGHT)) {
                    status = 129;
                    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.DRAGONKNIGHT)) {
                    status = 132;
                    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.MARAUDER)) {
                    status = 133;
                    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 = 134;
                    cm.sendYesNo("Congratulations on reaching such a high level. Do you want to Job Advance now?");
                } else if (cm.getLevel() < 200) {
                    cm.sendNext("Sorry, but you have already attained the highest level of your job's mastery. \r\n\r\nHowever, you can #rrebirth#k when you are level 200.");
                    status = 98;
                } else if (cm.getLevel() >= 200) {
                    cm.sendYesNo("Ahh... It is good to see you again. Your skills have finally reached the maximum of its potential. So, with all my heart, I congratulate you, great hero. \r\n\r\nYou have been through a long and challenging road, and in so doing, have become immensely strong. It is now that I would recommend you do the rebirth quest in [LOCATION]. By rebirthing, you will become a level 1 #bBeginner#k again, but all your abilities, skills, items and mesos, will remain as they are. However, you will only be able to keep the skills that you have placed in your #bkey setting#k. \r\n\r\nSo, tell me, do you wish to be #rreborn#k?");
                    status = 160;
                } else {
                    cm.dispose();
                }
            } else if (status == 2) {
                switch(selection) {
                    case 0: jobName = "Assassin";             job = net.sf.odinms.client.MapleJob.ASSASSIN;    break;
                    case 1: jobName = "Bandit";               job = net.sf.odinms.client.MapleJob.BANDIT;      break;
                    case 2: jobName = "Fighter";              job = net.sf.odinms.client.MapleJob.FIGHTER;     break;
                    case 3: jobName = "Page";                 job = net.sf.odinms.client.MapleJob.PAGE;        break;
                    case 4: jobName = "Spearman";             job = net.sf.odinms.client.MapleJob.SPEARMAN;    break;
                    case 5: jobName = "Ice Lightning Wizard"; job = net.sf.odinms.client.MapleJob.IL_WIZARD;   break;
                    case 6: jobName = "Fire Poison Wizard";   job = net.sf.odinms.client.MapleJob.FP_WIZARD;   break;
                    case 7: jobName = "Cleric";               job = net.sf.odinms.client.MapleJob.CLERIC;      break;
                    case 8: jobName = "Hunter";               job = net.sf.odinms.client.MapleJob.HUNTER;      break;
                    case 9: jobName = "Crossbowman";          job = net.sf.odinms.client.MapleJob.CROSSBOWMAN; break;
                    case 10:jobName = "Brawler";              job = net.sf.odinms.client.MapleJob.BRAWLER;     break;
                    case 11:jobName = "Gunslinger";           job = net.sf.odinms.client.MapleJob.GUNSLINGER;  break;
                }
                cm.sendYesNo("Do you want to become a #r" + jobName + "#k?");
            } else if (status == 3) {
                cm.changeJob(job);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future maybe :)");
                cm.dispose();
            } else if (status == 61) {
                if (cm.getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN)) {
                    status = 63;
                    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.BANDIT)) {
                    status = 66;
                    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.HUNTER)) {
                    status = 69;
                    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.CROSSBOWMAN)) {
                    status = 72;
                    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.FP_WIZARD)) {
                    status = 75;
                    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.IL_WIZARD)) {
                    status = 78;
                    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.CLERIC)) {
                    status = 81;
                    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.FIGHTER)) {
                    status = 84;
                    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.PAGE)) {
                    status = 87;
                    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.SPEARMAN)) {
                    status = 90;
                    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.GUNSLINGER)) {
                    status = 98;
                    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.BRAWLER)) {
                    status = 93;
                    cm.sendYesNo("Congratulations on reaching such a high level. Do you want to Job Advance now?");
                } else {
                    cm.dispose();
                }
            } else if (status == 64) {
                cm.changeJob(MapleJob.HERMIT);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 67) {
                cm.changeJob(MapleJob.CHIEFBANDIT);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 70) {
                cm.changeJob(MapleJob.RANGER);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 73) {
                cm.changeJob(MapleJob.SNIPER);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 76) {
                cm.changeJob(MapleJob.FP_MAGE);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 79) {
                cm.changeJob(MapleJob.IL_MAGE);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.)");
                cm.dispose();
            } else if (status == 82) {
                cm.changeJob(MapleJob.PRIEST);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 85) {
                cm.changeJob(MapleJob.CRUSADER);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 88) {
                cm.changeJob(MapleJob.WHITEKNIGHT);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 91) {
                cm.changeJob(MapleJob.DRAGONKNIGHT);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 93) {
                cm.changeJob(MapleJob.MARAUDER);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 96) {
                cm.changeJob(MapleJob.OUTLAW);
                cm.sendOk("There you go. Hope you enjoy it. See you around in the future.");
                cm.dispose();
            } else if (status == 99) {
                cm.sendOk("Good luck on your training.");
                cm.dispose();
            } else if (status == 102) {
                if (cm.getJob().equals(net.sf.odinms.client.MapleJob.HERMIT)) {
                    status = 105;
                    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.CHIEFBANDIT)) {
                    status = 108;
                    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.RANGER)) {
                    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.SNIPER)) {
                    status = 114;
                    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.FP_MAGE)) {
                    status = 117;
                    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.IL_MAGE)) {
                    status = 120;
                    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.PRIEST)) {
                    status = 123;
                    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.CRUSADER)) {
                    status = 126;
                    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.WHITEKNIGHT)) {
                    status = 129;
                    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.DRAGONKNIGHT)) {
                    status = 132;
                    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.MARAUDER)) {
                    status = 134;
                    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 = 136;
                    cm.sendYesNo("Congratulations on reaching such a high level. Do you want to Job Advance now?");
                } else {
                    cm.dispose();
                }
            } else if (status == 106) {
                cm.changeJob(MapleJob.NIGHTLORD);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 109) {
                cm.changeJob(MapleJob.SHADOWER);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 112) {
                cm.changeJob(MapleJob.BOWMASTER);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 115) {
                cm.changeJob(MapleJob.MARKSMAN);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 118) {
                cm.changeJob(MapleJob.FP_ARCHMAGE);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 121) {
                cm.changeJob(MapleJob.IL_ARCHMAGE);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 124) {
                cm.changeJob(MapleJob.BISHOP);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 127) {
                cm.changeJob(MapleJob.HERO);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 130) {
                cm.changeJob(MapleJob.PALADIN);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 133) {
                cm.changeJob(MapleJob.DARKKNIGHT);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 134) {
                cm.changeJob(MapleJob.BUCCANEER);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 135) {
                cm.changeJob(MapleJob.CORSAIR);
                cm.sendOk("There you go. Hope you enjoy it.");
                cm.dispose();
            } else if (status == 151) {
                if (cm.c.getPlayer().getInt() >= 20) {
                    cm.changeJob(net.sf.odinms.client.MapleJob.MAGICIAN);
                    cm.sendOk("There you go. Hope you enjoy it. See you around in the future maybe :)");
                    cm.dispose();
                } else {
                    cm.sendOk("You did not meet the minimum requirement of #r20 INT#k.");
                    cm.dispose();
                }
            } else if (status == 154) {
                cm.sendSimple("Which would you like to be? #b\r\n#L0#Warrior#l\r\n#L1#Magician#l\r\n#L2#Bowman#l\r\n#L3#Thief#l\r\n#L4#Pirate#l#k");
            } else if (status == 155) {
                if (selection == 0) {
                    jobName = "Warrior";
                    job = net.sf.odinms.client.MapleJob.WARRIOR;
                }
                if (selection == 1) {
                    jobName = "Magician";
                    job = net.sf.odinms.client.MapleJob.MAGICIAN;
                }
                if (selection == 2) {
                    jobName = "Bowman";
                    job = net.sf.odinms.client.MapleJob.BOWMAN;
                }
                if (selection == 3) {
                    jobName = "Thief";
                    job = net.sf.odinms.client.MapleJob.THIEF;
                }
                if (selection == 4) {
                    jobName = "Pirate";
                    job = net.sf.odinms.client.MapleJob.PIRATE;
                }
                cm.sendYesNo("Do you want to become a #r" + jobName + "#k?");
            } else if (status == 156) {
                if (job == net.sf.odinms.client.MapleJob.WARRIOR && cm.c.getPlayer().getStr() < 35) {
                    cm.sendOk("You did not meet the minimum requirement of #r35 STR#k.");
                    cm.dispose();
                } else if (job == net.sf.odinms.client.MapleJob.MAGICIAN && cm.c.getPlayer().getInt() < 20) {
                    cm.sendOk("You did not meet the minimum requirement of #r20 INT#k.");
                    cm.dispose();
                } else if (job == net.sf.odinms.client.MapleJob.BOWMAN && cm.c.getPlayer().getDex() < 25) {
                    cm.sendOk("You did not meet the minimum requirement of #r25 DEX#k.");
                    cm.dispose();
                } else if (job == net.sf.odinms.client.MapleJob.THIEF && cm.c.getPlayer().getDex() < 25) {
                    cm.sendOk("You did not meet the minimum requirement of #r25 DEX#k.");
                    cm.dispose();
                } else if (job == net.sf.odinms.client.MapleJob.PIRATE && cm.c.getPlayer().getDex() < 20) {
                    cm.sendOk("You did not meet the minimum requirement of #r20 DEX#k.");
                    cm.dispose();
                } else {
                    cm.changeJob(job);
                    cm.sendOk("There you go. Hope you enjoy it. See you around in the future maybe :)");
                    cm.dispose();
                }
            } else if (status == 161) {
                cm.warp(910000000, 0);
            cm.sendOk("Good luck then. Talk to the massive stone on the 2nd floor to start the quest.");
                cm.dispose();
            } else {
                cm.dispose();
            }
        }
    }
    If we look at the code, the two most important sections are:

    Code:
                cm.warp(910000000, 0);
            cm.sendOk("Good luck then. Talk to the massive stone on the 2nd floor to start the quest.");
                cm.dispose();
    and

    Code:
                } else if (cm.getLevel() >= 200) {
                    cm.sendYesNo("Ahh... It is good to see you again. Your skills have finally reached the maximum of its potential. So, with all my heart, I congratulate you, great hero. \r\n\r\nYou have been through a long and challenging road, and in so doing, have become immensely strong. It is now that I would recommend you do the rebirth quest in [LOCATION]. By rebirthing, you will become a level 1 #bBeginner#k again, but all your abilities, skills, items and mesos, will remain as they are. However, you will only be able to keep the skills that you have placed in your #bkey setting#k. \r\n\r\nSo, tell me, do you wish to be #rreborn#k?");
    The most important aspect of the first part is the cm.warp(910000000, 0); function. It'll warp the players to MapID. Hopefully you know this. By default, I put it as FM.

    The second part is basically the descritpion. So where you place your NPC.

    You can also place the NPC into Shanks, to really make life easier.

    So cm.openNpc(ID); If you added that in NPCConversationManager.java

  22. #22
    Proficient Member lit0aznb3ar is offline
    MemberRank
    Jan 2009 Join Date
    151Posts

    Re: Simple Rebirth Quest

    I get everything and yes i did read but the point is how do I compile I download netbeans then?

  23. #23
    Proficient Member Darkwar4ever is offline
    MemberRank
    Jun 2008 Join Date
    Albany, New YorkLocation
    189Posts

    Re: Simple Rebirth Quest

    Search compiling with netbeans.

  24. #24
    Inactive xRayne is offline
    MemberRank
    Aug 2008 Join Date
    391Posts

    Re: Simple Rebirth Quest

    Nice release, very creative.

  25. #25
    Valued Member Indekms321 is offline
    MemberRank
    Mar 2009 Join Date
    132Posts

    Re: Simple Rebirth Quest

    nice but,u can do it with less npc,i mean use the same npc for all the stage.
    if(Mapid == xxx) {
    curmap = 1;



Page 1 of 2 12 LastLast

Advertisement