Jump to content
  • 0

Rebirth/Reborn System


ays297

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   0
  • Joined:  11/30/11
  • Last Seen:  

I would like a script that allows my player to reborn/rebirth multiple times after the normal rebirth. Gives additional statpoint (100)

The NPC for the first rebirth to only require 3 kinds of items and only appears twice a day for 10 minutes. (12:00 and 0:00)

The NPC for the second rebirth requires 5 osiris doll (to be exact). This NPC will also be in charged of the next rebirths but will require the same items with the first rebirth.

I would also like that for every rebirth that there will be a server wide announcement. And also, a rebirth ladder in game and if possible also for my website.

Thanks a lot. :(

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   7
  • Joined:  01/25/12
  • Last Seen:  

ohh is this wafflero? i like wafflero smile.png

ok im gonna make mine:

- script reborn1sttrigger -1,{
OnClock1200:
OnClock0000:
announce "I have arrived!",0;
enablenpc "FirstReborn";
end;
OnClock1210:
OnClock0010:
announce "If that's all ill be going now",0;
disablenpc "FirstReborn";
end;
OnInit:
disablenpc "FirstReborn";
end;

}

prontera,151,180,4 script FirstReborn 100,{
set .@maxblevel , 99;
set .@maxjlevel , 70;
set .@reqitem1, 512;
set .@reqitem2, 513;
set .@reqitem3, 514;
set .@reqitem1amt, 1;
set .@reqitem2amt, 1;
set .@reqitem3amt, 1;
mes "[FirstReborn]";
if(reborncount) {
 mes "You have finish reborn!";
 close;
}
if(Upper != 1 || BaseLevel < .@maxblevel || JobLevel < .@maxjlevel || countitem(.@reqitem1) < .@reqitem1amt
 || countitem(.@reqitem2) < .@reqitem2amt || countitem(.@reqitem3) < .@reqitem3amt ) {
 mes "You need to be Base Lvl: "+.@maxblevel;
 mes "You need to be Job Lvl: "+.@maxjlevel;
 mes "You need to have "+.@reqitem1amt+" "+getitemname(.@reqitem1);
 mes "You need to have "+.@reqitem2amt+" "+getitemname(.@reqitem2);
 mes "You need to have "+.@reqitem3amt+" "+getitemname(.@reqitem3);
 mes "You dont have enough requirements!";
 close;
}

mes "Congratulations you are now reborn!";
delitem .@reqitem1,.@reqitem1amt;
delitem .@reqitem2,.@reqitem2amt;
delitem .@reqitem3,.@reqitem3amt;
jobchange Job_Novice_High;
resetlvl(1);
skill 142,1,0;
skill 143,1,0;
set reborncount, reborncount+1;
ResetStatus;
set StatusPoint, StatusPoint+(reborncount*100);
announce strcharinfo(0)+" has been reborn.",0;
close;
}
prontera,155,180,4 script SecondReborn 100,{
set .@maxblevel , 99;
set .@maxjlevel , 70;
set .@reqitem, 751;
set .@reqitemamt, 5;
set .@rebornmax, 10;
mes "[secondReborn]";

if(reborncount < 1) {
mes "You didn't take first reborn yet.";
close;
}

if(reborncount >= .@rebornmax) {
 mes "You cannot reborn anymore.";
 close;
}
if(Upper != 1 || BaseLevel < .@maxblevel || JobLevel < .@maxjlevel || countitem(.@reqitem) < .@reqitemamt ) {
 mes "You need to be Base Lvl: "+.@maxblevel;
 mes "You need to be Job Lvl: "+.@maxjlevel;
 mes "You need to have "+.@reqitemamt+" "+getitemname(.@reqitem);
 mes "You dont have enough requirements!";
 close;
}

mes "Congratulations you are now reborn!";
delitem .@reqitem,.@reqitemamt;
jobchange Job_Novice_High;
resetlvl(1);
skill 142,1,0;
skill 143,1,0;
set reborncount, reborncount+1;
ResetStatus;
set StatusPoint, StatusPoint+(reborncount*100);
announce strcharinfo(0)+" has been reborn "+reborncount+" times.",0;
close;
}
prontera,159,180,4 script RebornLadder 100,{
set .@count, query_sql ("SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC",.@charid,.@reborncount);

mes "[RebornLadder]";
for( set .@i, 0; .@i < .@count; set .@i, .@i+1) {
 query_sql "SELECT `name` FROM `char` WHERE char_id="+.@charid[.@i]+"",.@charname$;
 mes .@charname$+" "+.@reborncount[.@i];
}
close;
}

prontera,150,193,4 script Reset Girl 124,{
set .rskill,5000; // Set value in zeny for skill reset here
set .rstat,5000; // Set value in zeny for stat reset here
set .rboth,9000; // Set value for "package deal" (i.e.: reseting both) here.
mes "[Reset Girl]";
mes "I am a Reset Girl.";
mes "Reset Stats: "+ .rstat +"z";
mes "Reset Skills: "+ .rskill +"z";
mes "Reset Both: "+ .rboth +"z";
mes "Please select the service you want:";
next;
switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Quit")) {
case 1:
 mes "[Reset Girl]";
 if (Zeny < .rskill) {
  mes "Sorry, you don't have enough Zeny.";
  close;
 }
 mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
 set Zeny,Zeny-.rskill;
 ResetSkill;
 close;
case 2:
 mes "[Reset Girl]";
 if (Zeny < .rstat) {
  mes "Sorry, you don't have enough Zeny.";
  close;
 }
 mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
 set Zeny,Zeny-.rstat;
 ResetStatus;
 set StatusPoint, StatusPoint+(reborncount*100);
 close;
case 3:
 mes "[Reset Girl]";
 if (Zeny < .rboth) {
  mes "Sorry, you don't have enough Zeny.";
  close;
 }
 mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
 set Zeny,Zeny-.rboth;
 ResetSkill;
 ResetStatus;
 set StatusPoint, StatusPoint+(reborncount*100);
 close;
case 4:
 mes "Come again soon!";
 close;
}
}

Edited by Arcenciel
Codeboxed
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  08/23/23
  • Last Seen:  

anyone know how add sub job script HELPP

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  02/03/25
  • Last Seen:  

Hello, Question about the script.. i got it to work, but the SQL query is giving out bugs and i have no idea as to where I should add the needed data in my SQL. using myphpadmin on debian. 

Also, is there an updated version of the script ? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  02/03/25
  • Last Seen:  

On 5/5/2012 at 10:29 PM, deathscythe13 said:

ohh is this wafflero? i like wafflero http://cdn.rathena.org/board/public/style_emoticons/default/smile.png

ok im gonna make mine:

 

- script reborn1sttrigger -1,{
OnClock1200:
OnClock0000:
announce "I have arrived!",0;
enablenpc "FirstReborn";
end;
OnClock1210:
OnClock0010:
announce "If that's all ill be going now",0;
disablenpc "FirstReborn";
end;
OnInit:
disablenpc "FirstReborn";
end;

}

prontera,151,180,4 script FirstReborn 100,{
set .@maxblevel , 99;
set .@maxjlevel , 70;
set .@reqitem1, 512;
set .@reqitem2, 513;
set .@reqitem3, 514;
set .@reqitem1amt, 1;
set .@reqitem2amt, 1;
set .@reqitem3amt, 1;
mes "[FirstReborn]";
if(reborncount) {
 mes "You have finish reborn!";
 close;
}
if(Upper != 1 || BaseLevel < .@maxblevel || JobLevel < .@maxjlevel || countitem(.@reqitem1) < .@reqitem1amt
 || countitem(.@reqitem2) < .@reqitem2amt || countitem(.@reqitem3) < .@reqitem3amt ) {
 mes "You need to be Base Lvl: "+.@maxblevel;
 mes "You need to be Job Lvl: "+.@maxjlevel;
 mes "You need to have "+.@reqitem1amt+" "+getitemname(.@reqitem1);
 mes "You need to have "+.@reqitem2amt+" "+getitemname(.@reqitem2);
 mes "You need to have "+.@reqitem3amt+" "+getitemname(.@reqitem3);
 mes "You dont have enough requirements!";
 close;
}

mes "Congratulations you are now reborn!";
delitem .@reqitem1,.@reqitem1amt;
delitem .@reqitem2,.@reqitem2amt;
delitem .@reqitem3,.@reqitem3amt;
jobchange Job_Novice_High;
resetlvl(1);
skill 142,1,0;
skill 143,1,0;
set reborncount, reborncount+1;
ResetStatus;
set StatusPoint, StatusPoint+(reborncount*100);
announce strcharinfo(0)+" has been reborn.",0;
close;
}
prontera,155,180,4 script SecondReborn 100,{
set .@maxblevel , 99;
set .@maxjlevel , 70;
set .@reqitem, 751;
set .@reqitemamt, 5;
set .@rebornmax, 10;
mes "[secondReborn]";

if(reborncount < 1) {
mes "You didn't take first reborn yet.";
close;
}

if(reborncount >= .@rebornmax) {
 mes "You cannot reborn anymore.";
 close;
}
if(Upper != 1 || BaseLevel < .@maxblevel || JobLevel < .@maxjlevel || countitem(.@reqitem) < .@reqitemamt ) {
 mes "You need to be Base Lvl: "+.@maxblevel;
 mes "You need to be Job Lvl: "+.@maxjlevel;
 mes "You need to have "+.@reqitemamt+" "+getitemname(.@reqitem);
 mes "You dont have enough requirements!";
 close;
}

mes "Congratulations you are now reborn!";
delitem .@reqitem,.@reqitemamt;
jobchange Job_Novice_High;
resetlvl(1);
skill 142,1,0;
skill 143,1,0;
set reborncount, reborncount+1;
ResetStatus;
set StatusPoint, StatusPoint+(reborncount*100);
announce strcharinfo(0)+" has been reborn "+reborncount+" times.",0;
close;
}
prontera,159,180,4 script RebornLadder 100,{
set .@count, query_sql ("SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC",.@charid,.@reborncount);

mes "[RebornLadder]";
for( set .@i, 0; .@i < .@count; set .@i, .@i+1) {
 query_sql "SELECT `name` FROM `char` WHERE char_id="+.@charid[.@i]+"",.@charname$;
 mes .@charname$+" "+.@reborncount[.@i];
}
close;
}

prontera,150,193,4 script Reset Girl 124,{
set .rskill,5000; // Set value in zeny for skill reset here
set .rstat,5000; // Set value in zeny for stat reset here
set .rboth,9000; // Set value for "package deal" (i.e.: reseting both) here.
mes "[Reset Girl]";
mes "I am a Reset Girl.";
mes "Reset Stats: "+ .rstat +"z";
mes "Reset Skills: "+ .rskill +"z";
mes "Reset Both: "+ .rboth +"z";
mes "Please select the service you want:";
next;
switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Quit")) {
case 1:
 mes "[Reset Girl]";
 if (Zeny < .rskill) {
  mes "Sorry, you don't have enough Zeny.";
  close;
 }
 mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
 set Zeny,Zeny-.rskill;
 ResetSkill;
 close;
case 2:
 mes "[Reset Girl]";
 if (Zeny < .rstat) {
  mes "Sorry, you don't have enough Zeny.";
  close;
 }
 mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
 set Zeny,Zeny-.rstat;
 ResetStatus;
 set StatusPoint, StatusPoint+(reborncount*100);
 close;
case 3:
 mes "[Reset Girl]";
 if (Zeny < .rboth) {
  mes "Sorry, you don't have enough Zeny.";
  close;
 }
 mes "Alright, here we go now.. Remember, changes won't take effect until you log back on!";
 set Zeny,Zeny-.rboth;
 ResetSkill;
 ResetStatus;
 set StatusPoint, StatusPoint+(reborncount*100);
 close;
case 4:
 mes "Come again soon!";
 close;
}
}
 

 

Nice script ! Im using it now.

I do have a problem tho, the SQL Query is showing errors, idk how to add the needed data for myphpadmin, do i have to make a new table for it ? or do i plug it in char in the database?

prontera,164,164,4	script	Reborn Ladder	625,{
set .@count, query_sql ("SELECT char_id,value FROM `global_reg_value` WHERE str='reborncount' ORDER BY value DESC",.@charid,.@reborncount);

mes "[Reborn Ladder]";
for( set .@i, 0; .@i < .@count; set .@i, .@i+1) {
 query_sql "SELECT `name` FROM `char` WHERE char_id="+.@charid[.@i]+"",.@charname$;
 mes .@charname$+" "+.@reborncount[.@i];
}
close;
}

image.thumb.png.94a7871b74c44602852ebca3560720c5.png

so in this pic, do I add new table as char_id, or do i go into char and add a column that has reborncount as int?

Edited by CarlitoInigo
Additional Info and Screenshot
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

I Love waffle ro too long time ago !

Is this working btw? XD Cause I'm here again to ask for some tabbings sorry..

What if the each rebirth must hunt different kinds of items?

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

sir how to set the required item to be different every reborn?

Edited by maynard
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   1
  • Joined:  06/16/12
  • Last Seen:  

ohh is this wafflero? i like wafflero smile.png

ok im gonna make mine:

sir why after i load this script its error... is this script only work on rathena?

Edited by Arcenciel
Removed code
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...