You are Unregistered, please register to gain Full access.
    


RaGEZONE sponsored advertisment:

Dragonica Image
The free 3D side scrolling MMORPG.

 
 
LinkBack (8) Thread Tools
Old 06-07-2008   8 links from elsewhere to this Post. Click to view. #1 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

[Release] Rebirth NPC [No Compiling Needed]

Your Ad Here
Credits to kakashirock Rock for the Idea. Basically What it does is Checks to see if the character is lvl 200. Then lvls the character to 201 so that their exp will be 0. And then at the end drops their lvl to 1 and changes the class to Beginner.
Any Way heres the Script Enjoy!

Rebirth NPC Script V3:
Code:
/*
@    Author : Snow
@
@    NPC = NAME
@    Map =  MAP
@    NPC MapId = MAPID
@    Function = Rebirth Player
@
*/

var status = 0;

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

function action(mode, type, selection) {

         
         if (mode == -1) {//ExitChat
        cm.dispose();
    
    }else if (mode == 0){//No
        cm.sendOk("Ok, talk to me when your sure you want to #bRebirth#k.");
        cm.dispose();

    }else{            //Regular Talk
        if (mode == 1)
            status++;
        else
            status--;
        
                 if (status == 0) {
        cm.sendYesNo("Welcome, great hero. You have been through a long and challenging road, and you have become immensely strong. If you bring me a Maple Coin,I can use my magic to increase your power even further, and surpass your limits! You will become a level 1 Beginner again, but you will keep your stats the same and all the Skill in you Hot Keys. Do you wish to be reborn? #b(Note: Please Make Sure you Have Room for all your Equipment in your Inventory. Also Make Sure you use all your SP. As it won't Be useable in your next Job. )#k" );
        }else if (status == 1) {
        if(cm.getChar().getLevel() < 200){
        cm.sendOk("Sorry, You have to be level 200 to rebirth.");
        cm.dispose();
        }else{
        cm.sendOk("#bGood-Job#k, you have qualified for a #eRebirth#n.");
        }
         }else if (status == 2) {
        cm.getChar().levelUp();
        cm.unequipEverything()
        cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNER);
        cm.sendNext("Enjoy your rebirth!(Note: You will have to Change Channels For the Full Effect to Take Place.");
        cm.getChar().setLevel(2);
        cm.dispose();
        }            
          }
     }
Credits to: kylec510 For Editting the Script So CCIng is uneccesary, and for removing the SP
+Rep Me if you enjoyed! XD
__________________

Last edited by ryuko; 06-07-2008 at 07:22 AM.
ryuko is offline   Reply With Quote

RaGEZONE sponsored advertisment:
Old 06-07-2008   #2 (permalink)
RaGEZONER
 
Rank: Hobbit
Join Date: Apr 2008
Posts: 78
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Great.
Which NPC did you use?
king123321 is offline   Reply With Quote

Endorsement
Old 06-07-2008   #3 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by king123321 View Post
Great.
Which NPC did you use?
the one i used. was nana but you can use it for anyone you want. as long as its not a shop or a quest giver
__________________
ryuko is offline   Reply With Quote

Endorsement

Old 06-07-2008   #4 (permalink)
GFX artist
 
lws8's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Singapore
Posts: 450
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

@ Author : Snow
@
@ NPC = NAME
@ Map = MAP
@ NPC MapId = MAPID
@ Function = Rebirth Player

Do i need to fill up this all?
lws8 is offline   Reply With Quote
Old 06-07-2008   #5 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by lws8 View Post
@ Author : Snow
@
@ NPC = NAME
@ Map = MAP
@ NPC MapId = MAPID
@ Function = Rebirth Player

Do i need to fill up this all?
no thats just author notes
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #6 (permalink)
GFX artist
 
lws8's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Singapore
Posts: 450
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Can give me some ID of NPC that are free to be used? @_@
I save it it script/npc right? @_@
lws8 is offline   Reply With Quote
Old 06-07-2008   #7 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by lws8 View Post
Can give me some ID of NPC that are free to be used? @_@
erm lol thats alot. The ones that i would use would either be Spiegelman (2042002) or Nana(H) (9201001)
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #8 (permalink)
Average Member
 
Rank: Hobbit
Join Date: Mar 2008
Posts: 59
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

hmm any bug found ?like exp problem...stats problem skill problem~
kentky is offline   Reply With Quote
Old 06-07-2008   #9 (permalink)
GFX artist
 
lws8's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Singapore
Posts: 450
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by ryuko View Post
erm lol thats alot. The ones that i would use would either be Spiegelman (2042002) or Nana(H) (9201001)
Oh, i'll use spiegelman ba =D

Thanks!
lws8 is offline   Reply With Quote
Old 06-07-2008   #10 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by kentky View Post
hmm any bug found ?like exp problem...stats problem skill problem~
i didnt reset the stats or skill because. i want people to make hybrid characters. (I.e all the skills left on their key map will stay their and they can use them but they will have a different class)
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #11 (permalink)
Average Member
 
Rank: Hobbit
Join Date: Mar 2008
Posts: 59
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

can rebirth how many time ?
kentky is offline   Reply With Quote
Old 06-07-2008   #12 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by kentky View Post
can rebirth how many time ?
as many times as you want. as long as you get to lvl 200
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #13 (permalink)
<33 gLa.gLa
 
sean360's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Philippines
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Thanks for this!! as what you stated earlier I'm also having problem compiling the set exp. I'll test it now
sean360 is offline   Reply With Quote
Old 06-07-2008   #14 (permalink)
Newbie
 
Rank: Hobbit
Join Date: May 2008
Posts: 1
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Thank you ^^
wnsghks0707 is offline   Reply With Quote
Old 06-07-2008   #15 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by sean360 View Post
Thanks for this!! as what you stated earlier I'm also having problem compiling the set exp. I'll test it now
might wanna use v.3 so u dont have to cc after talking. and also it sets all remaining sp to 0. so that players dont get the lacking lvl 1 and 2 skills error
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #16 (permalink)
<33 gLa.gLa
 
sean360's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Philippines
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by ryuko View Post
might wanna use v.3 so u dont have to cc after talking. and also it sets all remaining sp to 0. so that players dont get the lacking lvl 1 and 2 skills error
Wow even much better xD Thanks again!
sean360 is offline   Reply With Quote
Old 06-07-2008   #17 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by sean360 View Post
Wow even much better xD Thanks again!
well its a little buggy atm. you stay lvl 1 until you cc. So just use the old script. i reposted it
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #18 (permalink)
<33 gLa.gLa
 
sean360's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Philippines
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by ryuko View Post
well its a little buggy atm. you stay lvl 1 until you cc. So just use the old script. i reposted it
My server only has 1 channel lol and what do you mean it stays at lvl 1? like you dont level or what?
sean360 is offline   Reply With Quote
Old 06-07-2008   #19 (permalink)
Love me or Hate me.
 
ryuko's Avatar
 
Rank: Member +
Join Date: Apr 2008
Posts: 660
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by sean360 View Post
My server only has 1 channel lol and what do you mean it stays at lvl 1? like you dont level or what?
like i mean its not permanent. If you log out you'll come back as lvl 201
__________________
ryuko is offline   Reply With Quote
Old 06-07-2008   #20 (permalink)
<33 gLa.gLa
 
sean360's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Philippines
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by ryuko View Post
like i mean its not permanent. If you log out you'll come back as lvl 201
can you post the old one again?

Edit: Nevermind I fixed the whole script. This script will reborn you 100% now. It sets your level to 1, resets ur exp to 0 and changes your job to beginner without ccing or relogging. Enjoy!

Quote:
/*
@ Author : Snow
@
@ NPC = NAME
@ Map = MAP
@ NPC MapId = MAPID
@ Function = Rebirth Player
@
*/

var status = 0;

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

function action(mode, type, selection) {


if (mode == -1) {//ExitChat
cm.dispose();

}else if (mode == 0){//No
cm.sendOk("Ok, talk to me when you're sure you want to be #bReborn#k.");
cm.dispose();

}else{ //Regular Talk
if (mode == 1)
status++;
else
status--;

if (status == 0) {
cm.sendYesNo("Welcome, great hero. You have been through a long and challenging road, and you have become immensely strong. I can increase your power even further, and surpass your limits! You will become a level 1 #bBeginner#k again, but you will keep your stats the same and all the skills in your #bhot keys#k. Do you wish to be #rReborn#k?");
}else if (status == 1) {
if(cm.getChar().getLevel() < 200){
cm.sendOk("Sorry, You have to be level 200 to rebirth.");
cm.dispose();
}else{
cm.sendOk("#bGood-Job#k, you have been qualified for a #eRebirth#n.");
}
}else if (status == 2) {
wui = 1;
var statup = new java.util.ArrayList();
var p = cm.c.getPlayer();
cm.getChar().levelUp();
cm.unequipEverything()
cm.changeJob(net.sf.odinms.client.MapleJob.BEGINNE R);
cm.sendNext("You have bee reborned! Good luck on your next journey.");
cm.setLevel(2);
statup.add (new net.sf.odinms.tools.Pair(net.sf.odinms.client.Mapl eStat.LEVEL, java.lang.Integer.valueOf(1)));
p.getClient().getSession().write (net.sf.odinms.tools.MaplePacketCreator.updatePlay erStats(statup));
cm.dispose();
}
}
}
EDIT: Also add this at NPCConversationManager.java then compile

Quote:
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));
}

Last edited by sean360; 06-07-2008 at 10:01 AM.
sean360 is offline   Reply With Quote
Old 06-07-2008   #21 (permalink)
Newbie
 
Rank: Hobbit
Join Date: Jun 2008
Posts: 21
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

i have same problem of getting stuck at lvl 201 after trying it out no matter relogging/ccing

i also tried sean's edited one, which i could not talk to the npc at all.

anyone help can help?
Defrost is offline   Reply With Quote
Old 06-07-2008   #22 (permalink)
<33 gLa.gLa
 
sean360's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Philippines
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by Defrost View Post
i have same problem of getting stuck at lvl 201 after trying it out no matter relogging/ccing

i also tried sean's edited one, which i could not talk to the npc at all.

anyone help can help?
Oops you need to add this at NpcConversationManager.java then compile

Quote:
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));
}
sean360 is offline   Reply With Quote
Old 06-07-2008   #23 (permalink)
TacoStory? o.o
 
iFLON's Avatar
 
Rank: Member +
Join Date: May 2008
Posts: 557
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

ok im going to make malady be it and say something like "Get out of here before i use magic on you!"

hmmm interesting :/
iFLON is offline   Reply With Quote
Old 06-07-2008   #24 (permalink)
Newbie
 
Rank: Hobbit
Join Date: Jun 2008
Posts: 21
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

thx for the swift reply sean, but i could not still get it to work.

i'm not sure if i am compliling it correctly, is there any file that i can just replace it? thx
Defrost is offline   Reply With Quote
Old 06-07-2008   #25 (permalink)
<33 gLa.gLa
 
sean360's Avatar
 
Rank: Member +
Join Date: Apr 2008
Location: Philippines
Posts: 495
Thanked 0 Times in 0 Posts

Re: [Release] Rebirth NPC [No Compiling Needed]

Originally Posted by Defrost View Post
thx for the swift reply sean, but i could not still get it to work.

i'm not sure if i am compliling it correctly, is there any file that i can just replace it? thx
well even if you replace the old one with mine you still need to recompile. And what do you use to compile?
sean360 is offline   Reply With Quote
 

Bookmarks

Thread Tools


LinkBacks (?)
LinkBack to this Thread: http://forum.ragezone.com/f427/release-rebirth-npc-no-compiling-needed-409263/
Posted By For Type Date
maplestory libary This thread Refback 07-29-2009 08:42 AM
MapleStory Development Team: OdinMS Based: NPCs This thread Refback 04-24-2009 11:27 PM
MapleStory Development Team This thread Refback 04-08-2009 12:23 AM
OdinMS Source Releases,Guides,Repacks,Revs,Tutorials,HTML-PHP,Tools,Handbook - GameCheetah This thread Refback 04-05-2009 10:45 AM
FanMS Repack v1.1 (FINAL UPLOAD) - Maplestory Releases - ServerFiles.org This thread Refback 04-02-2009 09:03 PM
[OdinMS]Releases,Guides,Repacks,Revs,orials,HTML-PHP,Tools,Handbook - Maplestory Releases - ServerFiles.org This thread Refback 03-29-2009 06:53 PM
MapleStory Private Server Libary :Npcs: - GameCheetah This thread Refback 03-28-2009 08:38 AM
[Release] [Library of Useful OdinMS Stuff] [Fixes] [Guides] [Registration Pages] - GameCheetah This thread Refback 03-24-2009 11:04 PM



Translated by Google
Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Maltese Norwegian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Taiwanese Thai Turkish Ukrainian Vietnamese
no new posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274