• 0
Sign in to follow this  
Followers 0
Virtue

Question:Alchemist Creation

Question

3 answers to this question

  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0