leloush 7 Posted December 9, 2013 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 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; } Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted December 9, 2013 (edited) Didn't test : - successrefitem @refine;+ for ( .@i = getequiprefinerycnt(@refine)+1; .@i < 11; .@i++ ) + successrefitem @refine; Edited December 9, 2013 by Patskie 1 leloush reacted to this Quote Share this post Link to post Share on other sites
0 leloush 7 Posted December 9, 2013 (edited) 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 Edited December 9, 2013 by leloush Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted December 9, 2013 (edited) Refer : Announce if ( getequiprefinerycnt(@refine) > 3 ) { // do this } Edited December 9, 2013 by Patskie Quote Share this post Link to post Share on other sites
0 leloush 7 Posted December 9, 2013 thanks for the help pats Quote Share this post Link to post Share on other sites
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
thanks in advanced...
btw this is the script....
//====================SCRIPT===========================
Share this post
Link to post
Share on other sites