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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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