Refiner to +10

leloush

New member
Messages
269
Points
0
Location
in front of my laptop =)
Emulator
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 
default_tongue.png


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;
}
 
 
 
default_ani_meow.gif

 
Didn't test : 

Code:
- successrefitem @refine;+ for ( .@i = getequiprefinerycnt(@refine)+1; .@i < 11; .@i++ ) +	successrefitem @refine;
 
Last edited by a moderator:
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
default_biggrin.png


 
Last edited by a moderator:
Refer : Announce

Code:
if ( getequiprefinerycnt(@refine) > 3 ) { // do this }
 
Last edited by a moderator:
Back
Top