Jump to content
  • 0
Sign in to follow this  
leloush

Refiner to +10

Question

hello hercules,

i just wanted this npc to refine to +10 the desired equipment

it works fine but it only refine +1 not +10... i tried alot of ways to make it +10.. but im lack of luck haha  :P

thanks in advanced... 

 

btw this is the script....

 

//====================SCRIPT===========================

prontera,155,173,0 script Safe Refiner 714,{
 
mes "Hello i am ^ff0000[100% Sure Refiner]^000000";
mes "I can refine your equipments to its maximum limit.";
mes "But be careful on what you are choosing for. i cant de-refine it.";
next;
mes "Are you sure?";
next;
mes "OK but first u must know this";
next;
mes "i will required you to have ^ff0000[eRO Refine Ticket[10PCS]^000000";
next;
mes "Ok choose what item you want to be refined";
next;
set @refine,.equip_part[select(getequipname(.equip_part[0]),
getequipname(.equip_part[1]),
getequipname(.equip_part[2]),
getequipname(.equip_part[3]),
getequipname(.equip_part[4]),
getequipname(.equip_part[5]),
getequipname(.equip_part[6]),
getequipname(.equip_part[7]),
getequipname(.equip_part[8]),
getequipname(.equip_part[9]))-1];
 
if(countitem(25107) < 10) {
mes "I told you to have:";
mes ""+((countitem(25107) < 10)?"^ff0000[eRO Refine Tickets^000000":"")+"";
close;
}
if(getequiprefinerycnt(@refine) >= 10) {
mes "+10 Item cannot be refined anymore.";
close;
}
else {
delitem 25107,10;
successrefitem @refine;
mes "Clang Clang! Success!";
next;
mes "Here yah go enjoy ur stay";
close;
}
 
OnInit:
setarray .equip_part[0],1,2,3,4,5,6,7,8,9,10;
}
 
 
 
:meow:

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Didn't test : 

 

- successrefitem @refine;+ for ( .@i = getequiprefinerycnt(@refine)+1; .@i < 11; .@i++ ) +	successrefitem @refine;
Edited by Patskie

Share this post


Link to post
Share on other sites
  • 0

 

Didn't test : 

 

- successrefitem @refine;+ for ( .@i = getequiprefinerycnt(@refine)+1; .@i < 11; .@i++ ) +	successrefitem @refine;

thanks it works properly...

 

btw how to add check if the item is currently example +3 > and the npc will not going to perform his magic..

and also broadcast? if you dont mind

 

thanks :D

Edited by leloush

Share this post


Link to post
Share on other sites
  • 0

Refer : Announce

if ( getequiprefinerycnt(@refine) > 3 ) { // do this }
Edited by Patskie

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.