Jump to content
  • 0

Rebirth NPC


ay0konapala

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  07/28/14
  • Last Seen:  

Is there anyone got this kind of script? Or If anyone can make some script like this?


 


What kind of Rebirth System :


 


  • Works on all kind of SVN. Either eAthena SVN or rAthena SVN or even GiT
  • The Rebirth NPC will always check their Level (255), Job level(120), weight limit before they rebirth, If they didn't meet the requirements then the NPC won't let them rebirth.
  • Each rebirth will have an additional name TAG. I.E: (normal name: Keyboard) then (1st Rebirth: Bronze V - Keyboard)
  • The rebirth will be from Bronze V,IV,III,II,I. Then Silver V,IV,III,II,I, Gold V,IV,III,II,I, Platinum V,IV,III,II,I, Diamond V,IV,III,II,I, lastly Challenger I. Each rebirth will have their specific name tag depends on their rebirth stage.
  • Players who got to rebirth will be Broadcasted.
  • Optional : Saves the rebirth of each character in the logs of Account ID, Character Name, No. of Reborn and IP Address.

 


How the Rebirth System works :


 


  • Each Rebirth will have atleast 10 Item Requirements like (Sample) 512, 513, 514, 515, 516...
  • The requirements for each rebirth depends on me as well as the prices.

 


 


Hope someone will share or make some kind of this script...


 


Thank you! More powers rAthena :)

Edited by Emistry
your up bump is way too long.
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  04/03/22
  • Last Seen:  

On 8/4/2014 at 1:54 PM, Emistry said:

try this

prontera,155,181,5	script	Sample#rebirth	757,{
if( BaseLevel < .rebirth_lvl[0] || JobLevel < .rebirth_lvl[1] ){
	mes "You need Level "+.rebirth_lvl[0]+" / "+.rebirth_lvl[1]+".";
}
else if( rebirth_count >= .rebirth_title_size ){
	mes "You reach max rebirth already.";
}
else{
	for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 ){
		mes " > "+getitemname( .item_list[.@i] )+" x "+.item_list[.@i+1];
		if( countitem( .item_list[.@i] ) < .item_list[.@i+1] )
			.@fail++;
	}
	if( !.@fail )
		if( select( "Rebirth to "+.rebirth_title$[rebirth_count],"Cancel" ) == 1 ){
			resetlvl 1;
			set rebirth_count,rebirth_count + 1;
			for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 )
				delitem .item_list[.@i],.item_list[.@i+1];
			mes "DONE";
		}

}
close;

OnInit:
setarray .rebirth_lvl,255,120;
setarray .item_list,
	512,10,
	607,20,
	608,30;
set .item_list_size,getarraysize( .item_list ) - 1;

setarray .rebirth_title$,
	"Bronze I",
	"Bronze II",
	"Bronze III",
	"Bronze IV",
	"Bronze V";
set .rebirth_title_size,getarraysize( .rebirth_title$ );
end;
}
 

didnt test. log isnt included.

sir emistry, how about if i want to replace the reward title, instead i want a 300 status points every rebirth? thank you sir

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  07/28/14
  • Last Seen:  

up

:'(

PLEASE HELP WITH THIS.

Edited by Emistry
your up bump is way too long.
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

try this


prontera,155,181,5	script	Sample#rebirth	757,{
if( BaseLevel < .rebirth_lvl[0] || JobLevel < .rebirth_lvl[1] ){
	mes "You need Level "+.rebirth_lvl[0]+" / "+.rebirth_lvl[1]+".";
}
else if( rebirth_count >= .rebirth_title_size ){
	mes "You reach max rebirth already.";
}
else{
	for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 ){
		mes " > "+getitemname( .item_list[.@i] )+" x "+.item_list[.@i+1];
		if( countitem( .item_list[.@i] ) < .item_list[.@i+1] )
			.@fail++;
	}
	if( !.@fail )
		if( select( "Rebirth to "+.rebirth_title$[rebirth_count],"Cancel" ) == 1 ){
			resetlvl 1;
			set rebirth_count,rebirth_count + 1;
			for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 )
				delitem .item_list[.@i],.item_list[.@i+1];
			mes "DONE";
		}

}
close;

OnInit:
setarray .rebirth_lvl,255,120;
setarray .item_list,
	512,10,
	607,20,
	608,30;
set .item_list_size,getarraysize( .item_list ) - 1;

setarray .rebirth_title$,
	"Bronze I",
	"Bronze II",
	"Bronze III",
	"Bronze IV",
	"Bronze V";
set .rebirth_title_size,getarraysize( .rebirth_title$ );
end;
}
 

didnt test. log isnt included.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  07/28/14
  • Last Seen:  

Thanks sir Emistry! I'll test this script as soon as i got home.

Sir Emistry, I found some problems in the npc that you made.

 

1. There is a 'null' requirements when talking on the npc.

2. There are no reward each rebirth.

3. The titles are not working.

 

Please help. Thanks!

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 ){

change to

for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 2 ){
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  07/28/14
  • Last Seen:  

How about the reward and the rebirth title? It's not working.

The only problem is the required items are not deleting.

prontera,147,155,5 script Bronze Division#rebirth 757,{
if( BaseLevel < .rebirth_lvl[0] || JobLevel < .rebirth_lvl[1] ){
mes "You need Level "+.rebirth_lvl[0]+" / "+.rebirth_lvl[1]+".";
}
else if( rebirth_count >= .rebirth_title_size ){
mes "You reach max rebirth already.";
}
else{
for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 2 ){
mes " > "+getitemname( .item_list[.@i] )+" x "+.item_list[.@i+1];
if( countitem( .item_list[.@i] ) < .item_list[.@i+1] )
.@fail++;
}
if( !.@fail )
if( select( "Rebirth to "+.rebirth_title$[rebirth_count],"Cancel" ) == 1 ){
resetlvl 1;
set rebirth_count,rebirth_count + 1;
for( set .@i,0; .@i < .item_list_size; set .@i,.@i + 1 )
delitem .item_list[.@i],.item_list[.@i+2];
mes "DONE";
}

}
close;

OnInit:
setarray .rebirth_lvl,255,120;
setarray .item_list,
512,10,
607,20,
608,30;
set .item_list_size,getarraysize( .item_list ) - 2;

setarray .rebirth_title$,
"Bronze I",
"Bronze II",
"Bronze III",
"Bronze IV",
"Bronze V";
set .rebirth_title_size,getarraysize( .rebirth_title$ );
end;
}
 
That is the script.
 
and there's still no title and no reward.

BUMP*

Is there any Moderators or Script Mods that can help me regarding my problem? Please please please!

 

BUMP!

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...