Question:Alchemist Creation

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.

Code:
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:

Code:
				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;
 
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.

 
Back
Top