Jump to content

+20 Refiner Using Bradium & Kalunium (based on Chilly and Jhared) Revised


Jhosef

Recommended Posts


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

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 by Jhosef
Codebox
  • Upvote 1
Link to comment
Share on other sites

  • 5 weeks later...

  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Ain't working /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

- confirmed not working ..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Anyone who has the same script for +20 refine?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

i've already edit it...

it is working now

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

Tnx joseph

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

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 by emong
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

rAthena already provide the renewal_refine_rate - look inside your db folder

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

its already in the script there's 2 NPC there.. the normal is the cranium and the 2nd one for HD -1 only

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

with jhosef's script both npcs give -3 when it fails.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Nah this kind of npc is already in rAthena's SVN ----> r16126

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

in the npc/merchants/refiner.txt doesnt need Oridecons / Eluniums to Cardium / Bradium?

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

can you make it only one npc? has a menu if the player want to use normal or HD?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...