[Tut] How to add rebirth into your private server!

Results 1 to 16 of 16
  1. #1
    Member Hyisashi is offline
    MemberRank
    May 2008 Join Date
    80Posts

    [Tut] How to add rebirth into your private server!

    Ok I finally figured it out by taking portions of other scripts. I feel ashamed of who I took the template from because I can't remember where I saw it. But I re-did a bunch of it so it now sets your level to 1 AND your job to a beginner.

    Shall we start?

    Ok first open up NPCconversation.java (I forgot where I just searched it up in my folder lol)

    add this:

    public void setExp(int exp) {
    getPlayer().updateSingleStat(MapleStat.EXP, Integer.valueOf(exp));
    }
    public void setLevel(int level) {
    getPlayer().setLevel(level);
    getPlayer().updateSingleStat(MapleStat.LEVEL, Integer.valueOf(level));
    }

    Okay now that we defined those..

    Now, I did this with Nana because I felt she was the appropriate person ~_^
    but here is my script

    var status = 0;

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

    function action(mode, type, selection) {
    if (mode == -1) {
    cm.dispose();
    }
    else {
    if (cm.getChar().getMapId() != 100000000) {
    cm.dispose();
    return;
    }
    if (mode == 0) {
    cm.sendOk("Alright, see you next time.");
    cm.dispose();
    return;
    }
    status++;
    if (status == 0) {
    cm.sendYesNo("<here is where you would put what you want to say here. I saw someone require pocky to do it so i added it too" );
    }
    else if (status == 1) {
    if (cm.haveItem(4140000, 1) && cm.getChar().getLevel() == 200) {
    cm.sendOk("You are now Reborn!");
    cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
    cm.unequipEverything();
    cm.gainItem(4140000,-1);
    cm.setLevel(1);
    cm.setExp(0);

    }
    else if (cm.getChar().getLevel() < 200) {
    cm.sendOk("You have to be level 200 to rebirth.");
    }
    else {
    cm.sendOk("You did not bring me my Pocky D:");
    }
    cm.dispose();
    }
    }
    }
    The biggest problem I saw on other peoples was that for changing jobs the would do cm.changejob(000) or cm.changejob(BEGINNER) but for me those didn't work. I went into other job changing people and saw cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
    and that works.


  2. #2
    Member sjorsieboy15 is offline
    MemberRank
    Aug 2005 Join Date
    54Posts

    Re: [Guide] How to add rebirth into your private server!

    k i did the first one but where to put the second quote?
    and what is a pocky?

  3. #3
    Member sjorsieboy15 is offline
    MemberRank
    Aug 2005 Join Date
    54Posts

    Re: [Guide] How to add rebirth into your private server!

    tell me pls!!!

  4. #4
    Enthusiast ColonelBlues is offline
    MemberRank
    Jun 2008 Join Date
    ~2o9~Location
    44Posts

    Re: [Guide] How to add rebirth into your private server!

    Pocky is a delicious snack. Try it.

  5. #5
    Member Hyisashi is offline
    MemberRank
    May 2008 Join Date
    80Posts

    Re: [Guide] How to add rebirth into your private server!

    4140000 is the id for pocky. just delete cm.haveItem(4140000, 1) &&
    and cm.gainItem(4140000,-1); if you dont want to require it.

  6. #6
    Account Upgraded | Title Enabled! WayneLai is offline
    MemberRank
    Jun 2008 Join Date
    290Posts

    Re: [Guide] How to add rebirth into your private server!

    hyisashi please help me i tried the method my NANA dosent reply please add my msn gmahonda@live.com really nid help!plawks!

  7. #7
    Enthusiast Bonger is offline
    MemberRank
    Jul 2008 Join Date
    30Posts

    Re: [Guide] How to add rebirth into your private server!

    Thanks for making this available to us, but I also don't know in which file to put the second part of the script? Should I just paste it in the same file as the first one?

  8. #8
    Eat's candy! WhiteTigerX is offline
    MemberRank
    Jun 2008 Join Date
    The NetherlandsLocation
    678Posts

    Re: [Guide] How to add rebirth into your private server!

    Can u get it for a C++ TitanMS Source ?/

  9. #9
    Enthusiast woahs is offline
    MemberRank
    Jul 2008 Join Date
    39Posts

    Re: [Guide] How to add rebirth into your private server!

    When I click her nothing happens, btw since Nana didnt do anything before I had to make a new file and I jus copy n pasted what you had dere

  10. #10
    Enthusiast Mr.Killer is offline
    MemberRank
    May 2007 Join Date
    35Posts

    Re: [Guide] How to add rebirth into your private server!

    Where Do i put the second Script???

  11. #11
    Alpha Member OmgItsParm is offline
    MemberRank
    Apr 2008 Join Date
    2,070Posts

    Re: [Guide] How to add rebirth into your private server!

    Nice

  12. #12
    Account Upgraded | Title Enabled! 3esah is offline
    MemberRank
    Jul 2008 Join Date
    254Posts

    Re: [Guide] How to add rebirth into your private server!

    hey i need your help Hyisashi i didnt understand when i go to NPCConverationManager i got many things at that do i delete them and i put the thing u post or whatever i didnt understand can u help me my email essssa_808@hotmail.com this is the last thing i need to post my server please reply

  13. #13
    Valued Member Jianwei92 is offline
    MemberRank
    May 2006 Join Date
    SingaporeLocation
    119Posts

    Re: [Guide] How to add rebirth into your private server!

    i dont have NPCconversation.java

    can i use this instead?

    NPCconversationManager.java
    or
    NPCScript.java
    or
    NPCScriptManager.java

  14. #14
    Enthusiast alexman777 is offline
    MemberRank
    Jun 2008 Join Date
    Washington =PLocation
    44Posts

    Re: [Guide] How to add rebirth into your private server!

    my Rebirth guy just lvls the lvl 200 person to lvl 201 what am i supposed to change?

  15. #15
    Account Upgraded | Title Enabled! xkush is offline
    MemberRank
    May 2008 Join Date
    New yorkLocation
    498Posts

    Re: [Guide] How to add rebirth into your private server!

    Does this fix the SP glitching problem?

  16. #16
    Account Upgraded | Title Enabled! kb3z0n is offline
    MemberRank
    May 2007 Join Date
    CanadaLocation
    647Posts

    Re: [Guide] How to add rebirth into your private server!

    Good job dude, people were asking for rebirth like crazy.



Advertisement