Easy command to fix a Rebirth bug

🚫
Exiled
Joined
Oct 19, 2006
Messages
400
Reaction score
1
You might have noticed on the PCMaple repack that when you reborn and kill a green or red snail you'll get glitched and get to level 145 then you can't advance. Compile this easy command to your source which allows people to fix their levels. It will make them level 1 again.

@fixlevel


Put this in CommandProcessor.java,

Code:
}    else if (splitted[0].equals("@fixlevel")) {
                            if (player.getLevel() >= 145) {
                            player.setLevel(1);
                        mc.dropMessage("Your level has been reset to 1. Please re-log for it to take effect. Make sure you don't kill any red or green snails!");
                
                            } else {
                                mc.dropMessage("You're not glitched.");
                            }

*Edit*

Zapotek posted an NPC that he said will not give this glitch.

Code:
/* 
	Rebirth NPC
	By
	Zapotek
*/


var status = 0;

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

function action(mode, type, selection) {
	if (mode == -1) {
        	cm.dispose();
        }
	else if (mode == 0){
        	cm.sendOk("Talk to me again when you want to reborn.");
        	cm.dispose();
       } 
       else{            
       	if (mode == 1)
            status++;
        else
            status--;
        
                 if (status == 0) {
        cm.sendYesNo("Hi~ Do you want to reborn ?" );
	
        }
	else if (status == 1) {
       	 if(cm.getChar().getLevel() < 200){
       	 cm.sendOk("You have to be at least level 200.");
        	cm.dispose();
        }
	else{
        cm.sendOk("Good job. Have fun.");
        }
         }
	else if (status == 2) {
        cm.getChar().levelUp();
	cm.unequipEverything();
        cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
        cm.getChar().setLevel(2);
	cm.setExp(0);
	
        cm.sendNext("Tadaa! Don't forget to relog.");

        cm.dispose();
        }            
          }
     }
 
Last edited:
Re: [RELEASE] Easy command to fix a Rebirth bug

Woops it said You have been deleveled to 69. Changed.
 
Re: [RELEASE] Easy command to fix a Rebirth bug

Code:
/* 
	Rebirth NPC
	By
	Zapotek
*/


var status = 0;

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

function action(mode, type, selection) {
	if (mode == -1) {
        	cm.dispose();
        }
	else if (mode == 0){
        	cm.sendOk("Talk to me again when you want to reborn.");
        	cm.dispose();
       } 
       else{            
       	if (mode == 1)
            status++;
        else
            status--;
        
                 if (status == 0) {
        cm.sendYesNo("Hi~ Do you want to reborn ?" );
	
        }
	else if (status == 1) {
       	 if(cm.getChar().getLevel() < 200){
       	 cm.sendOk("You have to be at least level 200.");
        	cm.dispose();
        }
	else{
        cm.sendOk("Good job. Have fun.");
        }
         }
	else if (status == 2) {
        [B]cm.getChar().levelUp();[/B]
	cm.unequipEverything();
        cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
        cm.getChar().setLevel(2);
	cm.setExp(0);
	
        cm.sendNext("Tadaa! Don't forget to relog.");

        cm.dispose();
        }            
          }
     }

Here is a working rebirth NPC. If you don't want to be level 145 after killing a monster, you just have to remove the bolded text.
 
Re: [RELEASE] Easy command to fix a Rebirth bug

Nice one, sure it works though?
 
Re: [RELEASE] Easy command to fix a Rebirth bug

I use it on my server. I just translated it into english (cause I'm french).
 
Re: [RELEASE] Easy command to fix a Rebirth bug

Yeah, it's supposed to be snails, sorry. Changed it.
 
Back