Jhosef Posted April 6, 2012 Posted April 6, 2012 (edited) 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 Edited May 7, 2012 by Jhosef Codebox 1 Quote
sizenine Posted May 6, 2012 Posted May 6, 2012 works fine for me... but Suhnbi is not supposed to be there because Suhnbi already exists in payon. Instead, the HD Ore refiner named "Mighty Hammer" should be there but is not there. Quote
Meister Posted May 7, 2012 Posted May 7, 2012 (edited) Fixed! Thanks Jhosef! I only a question. Where can I see the refine rate? What's the refine rate for this +20 refine.. Thanks! Edited May 7, 2012 by emong Quote
GM Takumirai Posted May 7, 2012 Posted May 7, 2012 rAthena already provide the renewal_refine_rate - look inside your db folder Quote
Virtue Posted May 18, 2012 Posted May 18, 2012 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 how can i make this only for using HD Bradiums and Carniums? and if possible they only receive -1 penalty and stops when the equipment reaches back to refine level 10 while on the Bradiums and Carniums only it just gives -3 refine and does not stop at refine level 10. Quote
GM Takumirai Posted May 19, 2012 Posted May 19, 2012 its already in the script there's 2 NPC there.. the normal is the cranium and the 2nd one for HD -1 only Quote
Virtue Posted May 19, 2012 Posted May 19, 2012 with jhosef's script both npcs give -3 when it fails. Quote
Jhosef Posted May 19, 2012 Author Posted May 19, 2012 just edit this sd->status.inventory[i].refine = sd->status.inventory[i].refine - 3; to sd->status.inventory[i].refine = sd->status.inventory[i].refine - 1; Quote
Virtue Posted May 20, 2012 Posted May 20, 2012 just edit this sd->status.inventory[i].refine = sd->status.inventory[i].refine - 3; to sd->status.inventory[i].refine = sd->status.inventory[i].refine - 1; i did something and used your script and source to give no negative / minus refine. but it leaves the weapon attack of the weapon unless you relog. Quote
Lelouch vi Britannia Posted May 20, 2012 Posted May 20, 2012 Nah this kind of npc is already in rAthena's SVN ----> r16126 Quote
donkeyg Posted June 23, 2012 Posted June 23, 2012 in the npc/merchants/refiner.txt doesnt need Oridecons / Eluniums to Cardium / Bradium? Quote
Rebel Posted July 24, 2012 Posted July 24, 2012 can you make it only one npc? has a menu if the player want to use normal or HD? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.