Jump to content

Blacksmith with source - Help!


Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

Ok, here's a quickly put together set of information to get you on your way.

 
- This function holds both the scrolls you are interested in

CHARACTER::DoRefineWithScroll(LPITEM item)

- If look for all the references to pkItemScroll in this function and delete them (along with the check for m_iRefineAdditionalCell), it will act exactly like a blessing scroll without needing any item (Do not edit the function itself, of course, create another).

 

- Blacksmith refines are called from InputMain::Refine, more precisely at:

ch->DoRefine(item);

You can edit this call to something else, but don't forget DT's smiths (which don't require items to upgrade):

ch->DoRefine(item, true);

- So, in essence, you can practically replace DoRefine with DoRefineWithScroll stripped of pkItemScroll and it will act as you want except that you'll have to code the specific cases for specific smiths, such as DT or guild ones (nothing *too* hard either, two or three "if"s or so).

Link to comment
Share on other sites

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.