put this in your levelup function (MapleCharacter).
if you have the rebirth function its justPHP Code:if (getLevel() > 199 && haveItem(ITEMID)) {
unequipEverything();
setReborns(getReborns() + 1);
setLevel(1);
setExp(0);
setRemainingSp(0);
setJob(MapleJob.BEGINNER);
updateSingleStat(MapleStat.LEVEL, 1);
updateSingleStat(MapleStat.EXP, 0);
updateSingleStat(MapleStat.AVAILABLESP, 0);
updateSingleStat(MapleStat.JOB, 0);
}
Replace ITEMID with the special item who lets you autorebirth.PHP Code:if (getLevel() > 199 && haveItem(ITEMID)) {
doReborn();
}



Reply With Quote


