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 :
Step 8 : The whole code will look like this now :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(); } } }
Here is a picture, to see if the colors are right.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(); } } }
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 :
and now search something with this code :Code:case 9040000: npc_9040000(npc); break;
Code:static void npc_NPCID(NPC* npc)
And paste under that line this code :
How to add this NPC in Henesys?Code:static void npc_9040000(NPC* npc);
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 :
Add this code :Code:<NPC> <id>NPCID</id> <x>54</x> <cy>545</cy> <fh>145</fh> <rx0>-21</rx0> <rx1>79</rx1> </NPC>
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..







![[RELEASE] Rebirth Script C++ - No relog needed -](http://ragezone.com/hyper728.png)

