Jump to content
  • 0
Sign in to follow this  
Virtue

Question:Alchemist Creation

Question

3 answers to this question

Recommended Posts

  • 0

Yes. The file is db/produce_db.txt. Just search 'AM_PHARMACY' and you will find the area you need.

However, it is not enough to give ranking points. That would require source editing.
To make your custom item give ranking points, first open src/map/itemdb.h and add a constant for your custom Item ID.

enum item_itemid {
    ITEMID_MYCUSTOMITEM            = 29001,
}

Then open src/map/skill.c and need to include your constant to not 'continue'.

Find:

				if (rnd()%10000 < make_per || qty == 1) { //Success
					tmp_item.amount++;
					if(nameid < ITEMID_RED_SLIM_POTION || nameid > ITEMID_WHITE_SLIM_POTION)
						continue;

Below it, change so it like this:

				if (rnd()%10000 < make_per || qty == 1) { //Success
					tmp_item.amount++;
					if((nameid < ITEMID_RED_SLIM_POTION || nameid > ITEMID_WHITE_SLIM_POTION) && nameid != ITEMID_MYCUSTOMITEM)
						continue;

 

Share this post


Link to post
Share on other sites
  • 0

i've gone down this path already, here's a suggestion. if you plan to make custom potion formulas, make sure you create or modify at least one creation guide in-game and make it easily accessible, so people actually know what's going on with the world.

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.