maynard Posted May 17, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Share Posted May 17, 2012 (edited) How to change the item and quantity for every reborn? I want different Item for every reborn. http://rathena.org/b...hreborn-system/ Edited May 17, 2012 by maynard Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted May 17, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted May 17, 2012 You mean,that you want every class,that wants to reborn,to need different items in that script? If yes,then the easiest way to do that would be working with arrays,so you set the array of the jobID's then of the req item for the classes and then 1 for the amount,I'd do it,but I'm scripting a different NPC at the moment,but maybe if you know how to work with arrays,then you could do it. Quote Link to comment Share on other sites More sharing options...
maynard Posted May 17, 2012 Group: Members Topic Count: 44 Topics Per Day: 0.01 Content Count: 159 Reputation: 1 Joined: 12/21/11 Last Seen: April 20, 2014 Author Share Posted May 17, 2012 sorry i didnt explain properly, what i mean to say is every time you reborn the item will be change. 1st reborn apple,1;banana,1; grape,1; 2nd reborn osiris doll,5; 3rd reborn baphomet doll,5; 4th reborn 7292,5; and so on, Dont know how to make script, I can only copy paste from different script and then put together.Anyway thank you sir and if you have time I will wait. For now i'll stick with it and be gratefull to the original creator of script. Quote Link to comment Share on other sites More sharing options...
Rikimaru Posted May 18, 2012 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 658 Reputation: 57 Joined: 11/20/11 Last Seen: July 1, 2017 Share Posted May 18, 2012 So you want to have 4 Reborns,and they always have to bring the NPC Items to reborn again,I could just copy and paste it from that NPC and make it like that You'll just have to change theese things : prontera,155,180,4<tab>script<tab>ThirdReborn<tab>100,{ set .@maxblevel , 99; set .@maxjlevel , 70; set .@reqitem,7292; // CHANGE THIS TO YOUR ITEM ID,WHICH IS THE REQUIRED ITEM set .@reqitemamt, 5; // CHANGE THIS TO YOUR ITEM AMOUNT,WHICH IS THE REQUIRED AMOUNT set .@rebornmax, 10; // THIS IS THE MAXIMUM OF TIMES,WHICH THE PLAYERS CAN REBORN mes "[Third Reborn]"; if(reborncount < 2) { mes "You didn't take second 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; } That's all you have to do. Credits go to deathscythe13 for the Script,I just changed it for him. Quote Link to comment Share on other sites More sharing options...
Question
maynard
How to change the item and quantity for every reborn? I want different Item for every reborn.
http://rathena.org/b...hreborn-system/
Edited by maynardLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.