Virtue 10 Posted March 13, 2018 is there a way to add custom potions on alchemist creation ( Pharmacy ) Quote Share this post Link to post Share on other sites
0 bWolfie 139 Posted March 13, 2018 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; 1 Virtue reacted to this Quote Share this post Link to post Share on other sites
0 Virtue 10 Posted March 13, 2018 will try that thanks! Quote Share this post Link to post Share on other sites
0 Blinzer 6 Posted March 15, 2018 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. Quote Share this post Link to post Share on other sites
is there a way to add custom potions on alchemist creation ( Pharmacy )
Share this post
Link to post
Share on other sites