if(getequippercentrefinery(.@part) <= rand(100) && !countitem(6635)) { <-- add item check failedrefitem .@part; mes "[" + getarg(0) + "]"; emotion (!rand(5))?e_cash:e_omg; set .@lose,rand(1,3); if (.@lose == 1) { mes "OH! MY GOD!"; mes "Damn it! Not again!"; mes "I'm terribly sorry, but you know practice does make perfect."; mes "Um, right? Heh heh..."; } else if(.@lose == 2) { mes "Nooooooo!"; mes "It broke!"; mes "I-I'm sorry!"; } else { mes "Crap!"; mes "It couldn't take"; mes "much more tempering!"; mes "Sorry about this..."; } close; } mes "["+getarg(0)+"]"; successrefitem .@part; if(countitem(6635)) delitem 6635,1; <-- Delete item emotion e_heh;
that's using blessed ores not blacksmith's blessingOr simply use the officail script : https://github.com/HerculesWS/Hercules/blob/master/npc/re/merchants/blessed_refiner.txt
can you please add it on the hd_refiner.txt i dont really get it,^ You dont have to add a script on that item. just edit your refine.txt and add item checker on the script countitem(6635) a
example on line:
if(getequippercentrefinery(.@part) <= rand(100) && !countitem(6635)) { <-- add item check failedrefitem .@part; mes "[" + getarg(0) + "]"; emotion (!rand(5))?e_cash:e_omg; set .@lose,rand(1,3); if (.@lose == 1) { mes "OH! MY GOD!"; mes "Damn it! Not again!"; mes "I'm terribly sorry, but you know practice does make perfect."; mes "Um, right? Heh heh..."; } else if(.@lose == 2) { mes "Nooooooo!"; mes "It broke!"; mes "I-I'm sorry!"; } else { mes "Crap!"; mes "It couldn't take"; mes "much more tempering!"; mes "Sorry about this..."; } close; } mes "["+getarg(0)+"]"; successrefitem .@part; if(countitem(6635)) delitem 6635,1; <-- Delete item emotion e_heh;
We use essential cookies to make this site work, and optional cookies to enhance your experience.