i figured out this a couple of hour ago
i refered to chilly +20 Refiner using bradium and kalunium
in this link
http://www.eathena.w...3
this is the revised script for RATHENA SERVER (Try and Tested).
here is the guide
LOOK IN SCRIPT.C
BUILDIN_FUNC(failedrefitem)
{
int i=-1,num;
TBL_PC *sd;
num=script_getnum(st,2);
sd = script_rid2sd(st);
if( sd == NULL )
return 0;
if (num > 0 && num <= ARRAYLENGTH(equip))
i=pc_checkequip(sd,equip[num-1]);
if(i >= 0) {
sd->status.inventory[i].refine = 0;
pc_unequipitem(sd,i,3);
// ¸˜Bޏ”sƒGƒtƒFƒNƒg‚̃pƒPƒbƒg
clif_refine(sd->fd,1,i,sd->status.inventory[i].refine);
pc_delitem(sd,i,1,0,2,LOG_TYPE_SCRIPT);
// ‘¼‚Ìl‚É‚àŽ¸”s‚ð’Ê’m
clif_misceffect(&sd->bl,2);
}
return 0;
}
then add/copy/paste this below
BUILDIN_FUNC(failedrefitemR) // by jhosef
{
int i=-1,num;
TBL_PC *sd;
num=script_getnum(st,2);
sd = script_rid2sd(st);
if( sd == NULL )
return 0;
if (num > 0 && num <= ARRAYLENGTH(equip))
i=pc_checkequip(sd,equip[num-1]);
if(i >= 0) {
//Logs items, got from (N)PC scripts [Lupus]
sd->status.inventory[i].refine = sd->status.inventory[i].refine - 3;
pc_unequipitem(sd,i,2); // status calc will happen in pc_equipitem() below
clif_refine(sd->fd,0,i,sd->status.inventory[i].refine);
clif_delitem(sd,i,1,2);
clif_additem(sd,i,1,0);
clif_misceffect(&sd->bl,2);
}
return 0;
}
then look on this text
BUILDIN_DEF(failedrefitem,"i"),
then copy/past this text below
BUILDIN_DEF(failedrefitemR,"i"), //jhosef
then compile it
here is the Script
Renewal_Refine.txt
i hope it might help it to you
thanks to chilly and Jhared