how to fix reborn getting 201 level

Results 1 to 10 of 10
  1. #1
    Valued Member godlike2328 is offline
    MemberRank
    May 2008 Join Date
    MalaysiaLocation
    138Posts

    how to fix reborn getting 201 level

    /*
    @ Author : Snow
    @
    @ NPC = NAME
    @ Map = MAP
    @ NPC MapId = MAPID
    @ Function = Rebirth Player
    @
    */

    var status = 0;

    function start() {
    status = -1;
    action(1, 0, 0);
    }

    function action(mode, type, selection) {


    if (mode == -1) {//ExitChat
    cm.dispose();

    }else if (mode == 0){//No
    cm.sendOk("Ok, talk to me when you're sure you want to be #bReborn#k.");
    cm.dispose();

    }else{ //Regular Talk
    if (mode == 1)
    status++;
    else
    status--;

    if (status == 0) {
    cm.sendYesNo("Welcome, great hero. You have been through a long and challenging road, and you have become immensely strong. I can increase your power even further, and surpass your limits! You will become a level 1 #bBeginner#k again, but you will keep your stats the same and all the skills in your #bhot keys#k. Do you wish to be #rReborn#k?");
    }else if (status == 1) {
    if(cm.getChar().getLevel() < 200){
    cm.sendOk("Sorry, You have to be level 200 to rebirth.");
    cm.dispose();
    }else{
    cm.sendOk("#bGood-Job#k, you have been qualified for a #eRebirth#n.");
    }
    }else if (status == 2) {
    wui = 1;
    var statup = new java.util.ArrayList();
    var p = cm.c.getPlayer();
    cm.getChar().levelUp();
    cm.unequipEverything()
    cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
    cm.sendNext("You have bee reborned! Good luck on your next journey.");
    cm.setLevel(2);
    statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.LEVEL, java.lang.Integer.valueOf(1)));
    p.getClient().getSession().write (net.sf.odinms.tools.MaplePacketCreator.updatePlayerStats(statup));
    cm.dispose();
    }
    }



    just remove the cm.unequipEverything() lol.


  2. #2
    Alpha Member WGFreak is offline
    MemberRank
    Jun 2007 Join Date
    Planet Earth.Location
    1,469Posts

    Re: how to fix reborn getting 201 level

    Please add a tag to your title.

    Should be like: [Release] Fix reborn getting 201 level

  3. #3
    Account Upgraded | Title Enabled! Amandy is offline
    MemberRank
    Feb 2007 Join Date
    Crapvile, USALocation
    768Posts

    Re: how to fix reborn getting 201 level

    And use [code] tags it will make the post look more presentable.

  4. #4
    Valued Member godlike2328 is offline
    MemberRank
    May 2008 Join Date
    MalaysiaLocation
    138Posts

    Re: how to fix reborn getting 201 level

    sorry i first am newbie on forum

  5. #5
    Account Upgraded | Title Enabled! xxandycxx is offline
    MemberRank
    Jun 2008 Join Date
    In your pantsLocation
    851Posts

    Re: how to fix reborn getting 201 level

    Lol...

  6. #6
    Account Upgraded | Title Enabled! itzikd is offline
    MemberRank
    Apr 2008 Join Date
    207Posts
    Code:
     
    @ Author : Snow
    @
    @ NPC = NAME
    @ Map = MAP
    @ NPC MapId = MAPID
    @ Function = Rebirth Player
    @
    */
     
    var status = 0;
     
    function start() {
    status = -1;
    action(1, 0, 0);
    }
     
    function action(mode, type, selection) {
     
     
    if (mode == -1) {//ExitChat
    cm.dispose();
     
    }else if (mode == 0){//No
    cm.sendOk("Ok, talk to me when you're sure you want to be #bReborn#k.");
    cm.dispose();
     
    }else{ //Regular Talk
    if (mode == 1)
    status++;
    else
    status--;
     
    if (status == 0) {
    cm.sendYesNo("Welcome, great hero. You have been through a long and challenging road, and you have become immensely strong. I can increase your power even further, and surpass your limits! You will become a level 1 #bBeginner#k again, but you will keep your stats the same and all the skills in your #bhot keys#k. Do you wish to be #rReborn#k?");
    }else if (status == 1) {
    if(cm.getChar().getLevel() < 200){
    cm.sendOk("Sorry, You have to be level 200 to rebirth.");
    cm.dispose();
    }else{
    cm.sendOk("#bGood-Job#k, you have been qualified for a #eRebirth#n.");
    }
    }else if (status == 2) {
            wui = 1;
            var statup = new java.util.ArrayList();
            var p = cm.c.getPlayer();
    cm.getChar().levelUp();
    cm.unequipEverything()
    cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
    cm.sendNext("You have bee reborned! Good luck on your next journey.");
        cm.setLevel(2);
            statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.MapleStat.LEVEL, java.lang.Integer.valueOf(1)));
            p.getClient().getSession().write (net.sf.odinms.tools.MaplePacketCreator.updatePlayerStats(statup));
    cm.dispose();
    } 
    }
     
     
     
    just remove the cm.unequipEverything() lol.
    there

  7. #7
    Gamma Xerixe is offline
    MemberRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,605Posts

    Re: how to fix reborn getting 201 level

    Wasn't this posted somewhere in the forum before?

  8. #8
    Member boiboi is offline
    MemberRank
    Jun 2008 Join Date
    60Posts

    Re: how to fix reborn getting 201 level

    O_o i fixed the bug by just clearing the inv ;O

  9. #9
    Novice 646587 is offline
    MemberRank
    Jun 2008 Join Date
    3Posts

    Re: [Release]how to fix reborn getting 201 level

    cm.setLevel(2);

    this does nt change my level.. changing job works

  10. #10
    GoldMember XkelvinchiaX is offline
    MemberRank
    Sep 2006 Join Date
    MalaysiaLocation
    286Posts

    Re: [Release]how to fix reborn getting 201 level

    y i click le once,cant click another again...



Advertisement