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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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