Mechomorph XD Posted March 6, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 71 Reputation: 1 Joined: 03/06/12 Last Seen: January 22, 2021 Share Posted March 6, 2012 Now, I Made Custom Potion and I'll This Potion Creation by Alchemist Class. But Problem is After Created Already. Alchemist Rank NOT Increase EDIT: (By I Added Case CustomItemID Already In Skill.c, Line 10893) switch(nameid){ some information } Base ON eAthena 15075 NOT rAthena, Help Me Please. Quote Link to comment Share on other sites More sharing options...
Brian Posted March 6, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted March 6, 2012 This is the part in /src/map/skill.c that affects which brewed potions give Alchemist Rank points: (search for //Apply quantity modifiers and that should find it) } else { int fame = 0; tmp_item.amount = 0; for (i=0; i< qty; i++) { //Apply quantity modifiers. if (rand()%10000 < make_per || qty == 1) { //Success tmp_item.amount++; if(nameid < 545 || nameid > 547) continue; if(skill_id != AM_PHARMACY && skill_id != AM_TWILIGHT1 && skill_id != AM_TWILIGHT2 && skill_id != AM_TWILIGHT3) continue; //Add fame as needed. switch(++sd->potion_success_counter) { case 3: fame+=1; // Success to prepare 3 Condensed Potions in a row break; case 5: fame+=3; // Success to prepare 5 Condensed Potions in a row break; case 7: fame+=10; // Success to prepare 7 Condensed Potions in a row break; case 10: fame+=50; // Success to prepare 10 Condensed Potions in a row sd->potion_success_counter = 0; break; } } else //Failure sd->potion_success_counter = 0; } This line: if(nameid < 545 || nameid > 547) continue; means "if item_id is less than 545 or greater than 547, do NOT apply fame" i.e. "only apply fame points to item_id 545, 546, 547" Add your new potion's item_id there, save, and recompile. Quote Link to comment Share on other sites More sharing options...
Mechomorph XD Posted March 7, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 71 Reputation: 1 Joined: 03/06/12 Last Seen: January 22, 2021 Author Share Posted March 7, 2012 (edited) I Can Do That, Thank You Brian Edited March 7, 2012 by Mechomorph XD Quote Link to comment Share on other sites More sharing options...
Question
Mechomorph XD
Now, I Made Custom Potion and I'll This Potion Creation by Alchemist Class.
But Problem is After Created Already. Alchemist Rank NOT Increase
Base ON eAthena 15075 NOT rAthena, Help Me Please.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.