[RELEASE] Rebirth Script C++ - No relog needed -

Results 1 to 10 of 10
  1. #1
    01010010 01011010 Biesmen is offline
    Super ModRank
    Apr 2007 Join Date
    2,517Posts

    [RELEASE] Rebirth Script C++ - No relog needed -

    Hello.
    This one has been created by the creators of the re-pack of Biesmen. ( Biesmens re-pack )

    You don't need to relog, it's a simple code.

    There is also a guide how to install, + how to put it at the place as in my re-pack.

    Let's start!

    Step 1 : Open Microsoft Visual C++ 2008 Express Edition ( Or just the Microsoft Visual C++ that you use. )

    Step 2 : Click File>New>File

    Step 3 : You might see at the left a "List" where you see :
    General
    Visual C++
    Click on Visual C++ and choose "C++ file (.cpp )

    Picture :

    Step 4 : Now click on "Open"


    Step 5 : Now you will see this :
    Picture :

    Step 6 : Now you need to add this code at the top :
    Code:
    #include "NPCs.h"
    #include "NPCsScripts.h"
    #include "Player.h"
    #include "Levels.h"
    #include "PlayerPacket.h"
    #include "PacketCreator.h"


    Step 7 : Now press 2 times "Enter" ( So it will go 2 lines down )
    And add this code :

    Code:
    // Rebirth made by Biesmen,Lid0r,IWannaWin from RageZone, code made by Biesmen. Fixes by Lid0r and IWannaWin//
    // There isn't a Rebirth normally...//
    void NPCsScripts::npc_9040000(NPC* npc){ // Rebirth NPC
    Player* player = npc->getPlayer();
    int state = npc->getState();
    if(state ==0){
    if(player->getLevel() >= 255 && player->getDex() >= 1){
    npc->addText("Hello. Do you want to #rRebirth#k? That means you get from level #d255#k to level #d1#k.");
    npc->addText("You will keep all your stats! So do you want to rebirth?");
    npc->sendYesNo();
    }else{
    npc->addText("Sorry.. You aren't level #d255#k come back when you are level #d255#k");
    npc->sendOK();
    npc->end();
    }
    }
    else if(state == 1){
    if(npc->getSelected() == YES){
    Levels::setLevel(player, 1);
    npc->addText("Congratulations! You are now level 1!");
    npc->sendOK();
    npc->end();
    }else{
    npc->addText("Oh well, bye"); 
    npc->sendOK();
    npc->end();
    }
    }
    }
    Step 8 : The whole code will look like this now :

    Code:
    #include "NPCs.h"
    #include "NPCsScripts.h"
    #include "Player.h"
    #include "Levels.h"
    #include "PlayerPacket.h"
    #include "PacketCreator.h"
    
    // Rebirth made by Biesmen,Lid0r,IWannaWin from RageZone, code made by Biesmen. Fixes by Lid0r and IWannaWin//
    // There isn't a Rebirth normally...//
    void NPCsScripts::npc_9040000(NPC* npc){ // Rebirth NPC
    Player* player = npc->getPlayer();
    int state = npc->getState();
    if(state ==0){
    if(player->getLevel() >= 255 && player->getDex() >= 1){
    npc->addText("Hello. Do you want to #rRebirth#k? That means you get from level #d255#k to level #d1#k.");
    npc->addText("You will keep all your stats! So do you want to rebirth?");
    npc->sendYesNo();
    }else{
    npc->addText("Sorry.. You aren't level #d255#k come back when you are level #d255#k");
    npc->sendOK();
    npc->end();
    }
    }
    else if(state == 1){
    if(npc->getSelected() == YES){
    Levels::setLevel(player, 1);
    npc->addText("Congratulations! You are now level 1!");
    npc->sendOK();
    npc->end();
    }else{
    npc->addText("Oh well, bye"); 
    npc->sendOK();
    npc->end();
    }
    }
    }
    Here is a picture, to see if the colors are right.
    Picture :

    Step 9 : Now click on "File" ( Left at the top at the Menu ) and click on
    Save Source1.cpp As... Then save it as "Rebirth" at the location of your source ( Example C:\MyServer\MapleStory\MapleStoryServer )

    Step 10 : Yeah, we aren't done yet, we need to add this cpp file to the "source" first.

    Go to ( Example C:\MyServer\MapleStory ) and open MapleStoryServer.sln

    Step 11 : Click on "View" at the Menu at the top. And then select Solution Explorer.

    Step 12 : Then click on "+" at MapleStoryServer
    And then click on "+" at Source Files
    Then click on "+" at NPCs
    Then right click on that NPCs folder ( Where you had to click on "+" ) and select Add>Existing Item and go to ( Example C:\MyServer\MapleStory\MapleStoryServer ) and select Rebirth.cpp

    Step 13 : Now it will look like this
    Picture :

    Step 14 : Now click at the menu "Build" and then "Build Solution"

    Step 15 : It will give a error now that the NPC : "9040000" doesn't exist.
    Now open NPCsScripts.h

    Step 16 : Now just find something with this [coder]case NPCID: npc_NPCID(npc); break;[/code]

    and paste under a line with that
    this code :
    Code:
    case 9040000: npc_9040000(npc); break;
    and now search something with this code :
    Code:
    static void npc_NPCID(NPC* npc)


    And paste under that line this code :
    Code:
    static void npc_9040000(NPC* npc);
    How to add this NPC in Henesys?

    Step 1 : Go to (Example C:\MyServer\MapleStory\MapleStoryServer\Maps )
    and open : 100000000.xml

    Step 2 : Now add under a code that looks like this :
    Code:
    <NPC>
         <id>NPCID</id>
         <x>54</x>
         <cy>545</cy>
         <fh>145</fh>
         <rx0>-21</rx0>
         <rx1>79</rx1>
         </NPC>
    Add this code :

    Code:
    <NPC>
         <id>9040000</id>
         <x>29</x>
         <cy>274</cy>
         <fh>145</fh>
         <rx0>-21</rx0>
         <rx1>79</rx1>
         </NPC>

    Well.. That was it.. No relog needed.

    I will update this thread when I updated the code.
    The name will be changed to [RELEASE] Rebirth Script C++ - No relog needed - UPDATE 1
    or UPDATE 2
    That depends on how many updates I've done

    Have fun..


  2. #2
    Enthusiast Charlie is offline
    MemberRank
    Apr 2008 Join Date
    38Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    I've no idea about MS files but the code itself looks fine.

    More stuff can be added like in the following example:
    Code:
    ...
    if(player->getLevel() >= 255 && player->getDex() >= 1 && player->getStr() < 2000 && player->getFame() >= 10)
    /* I have no idea if there are still str/dex/etc hackers and if there is fame
     * system working in MS servers but it's easy to get the idea this way.
     */
    ..

  3. #3
    Wut? Csharp? Kerelmans is offline
    MemberRank
    Apr 2008 Join Date
    Olalalala CityLocation
    417Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    rebirth= back to lv1, BEGINNER (you forgot to change the job)

  4. #4
    01010010 01011010 Biesmen is offline
    Super ModRank
    Apr 2007 Join Date
    2,517Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    I'll update it later. Thx

  5. #5
    Delta Sparks is offline
    MemberRank
    Apr 2008 Join Date
    2,073Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    Very very nice, GJ Biesmen

  6. #6
    01010010 01011010 Biesmen is offline
    Super ModRank
    Apr 2007 Join Date
    2,517Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    Thank you, Sparks ^^

  7. #7
    Apprentice SandWichesMS is offline
    MemberRank
    Nov 2008 Join Date
    8Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    hey ty i will try it later thxx dude hope it work .... =D
    hey i used ur repack but .. no1 can enter it i dunno y it says doo to lot of ppl i dunno wat this means anywayz tell me when u make v.2 with fm ty

  8. #8
    Infraction Banned viinnh is offline
    MemberRank
    Sep 2008 Join Date
    AustraliaLocation
    1,189Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    dont bump threads ..

  9. #9
    Account Upgraded | Title Enabled! PoopStory is offline
    MemberRank
    Apr 2008 Join Date
    www.poopstory.comLocation
    246Posts

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    another person bumped..
    and the person is:
    SandWichesMS

    ban ban ban :)

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

    Re: [RELEASE] Rebirth Script C++ - No relog needed -

    OMG You're still alive?
    i used ur repack like a year ago with TitanMS ..
    I Quit TitanMS a LOOOOOOOONG time ago
    OdinMS FTW



Advertisement