pupa09 Posted August 10, 2016 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/16/12 Last Seen: August 18, 2016 Share Posted August 10, 2016 I want to make forging weapon & create potion become 100% success, I have try change inside the "items.conf" weapon_produce_rate with huge number like 900000000 also get fail at the end.Is it I miss something for this ? Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted August 11, 2016 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: 4 hours ago Share Posted August 11, 2016 Maximum value is INT_MAX, so 900M should still be okay, but try to just put something like 10000 for now (100x) rate. Then you can debug here: } else { // Weapon Forging - skill bonuses are straight from kRO website, other things from a jRO calculator [DracoRPG] make_per = 5000 + ((sd->class_&JOBL_THIRD)?1400:sd->status.job_level*20) + status->dex*10 + status->luk*10; // Base make_per += pc_checkskill(sd,skill_id)*500; // Smithing skills bonus: +5/+10/+15 make_per += pc_checkskill(sd,BS_WEAPONRESEARCH)*100 +((wlv >= 3)? pc_checkskill(sd,BS_ORIDEOCON)*100:0); // Weaponry Research bonus: +1/+2/+3/+4/+5/+6/+7/+8/+9/+10, Oridecon Research bonus (custom): +1/+2/+3/+4/+5 make_per -= (ele?2000:0) + sc*1500 + (wlv>1?wlv*1000:0); // Element Stone: -20%, Star Crumb: -15% each, Weapon level malus: -0/-20/-30 if (pc_search_inventory(sd,ITEMID_EMPERIUM_ANVIL) > 0) make_per+= 1000; // Emperium Anvil: +10 else if (pc_search_inventory(sd,ITEMID_GOLDEN_ANVIL) > 0) make_per+= 500; // Golden Anvil: +5 else if (pc_search_inventory(sd,ITEMID_ORIDECON_ANVIL) > 0) make_per+= 300; // Oridecon Anvil: +3 else if (pc_search_inventory(sd,ITEMID_ANVIL) > 0) make_per+= 0; // Anvil: +0? if (battle_config.wp_rate != 100) make_per = make_per * battle_config.wp_rate / 100; } Here you can check what make_per is before wp_rate is applied and after. Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted August 11, 2016 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 14 hours ago Share Posted August 11, 2016 Just max the value try 100 or something ( read the note (note 1, 2, 3) ) Quote Link to comment Share on other sites More sharing options...
0 pupa09 Posted August 11, 2016 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/16/12 Last Seen: August 18, 2016 Author Share Posted August 11, 2016 Just max the value try 100 or something ( read the note (note 1, 2, 3) ) The default is 100, it fail, so I pump up the number because I don't know that 100% mean what if fail, or mean the 100% is normal rate, beyond 100 is start pump up the success rate. But at the end also fail. Quote Link to comment Share on other sites More sharing options...
0 pupa09 Posted August 11, 2016 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/16/12 Last Seen: August 18, 2016 Author Share Posted August 11, 2016 Maximum value is INT_MAX, so 900M should still be okay, but try to just put something like 10000 for now (100x) rate. Then you can debug here: } else { // Weapon Forging - skill bonuses are straight from kRO website, other things from a jRO calculator [DracoRPG] make_per = 5000 + ((sd->class_&JOBL_THIRD)?1400:sd->status.job_level*20) + status->dex*10 + status->luk*10; // Base make_per += pc_checkskill(sd,skill_id)*500; // Smithing skills bonus: +5/+10/+15 make_per += pc_checkskill(sd,BS_WEAPONRESEARCH)*100 +((wlv >= 3)? pc_checkskill(sd,BS_ORIDEOCON)*100:0); // Weaponry Research bonus: +1/+2/+3/+4/+5/+6/+7/+8/+9/+10, Oridecon Research bonus (custom): +1/+2/+3/+4/+5 make_per -= (ele?2000:0) + sc*1500 + (wlv>1?wlv*1000:0); // Element Stone: -20%, Star Crumb: -15% each, Weapon level malus: -0/-20/-30 if (pc_search_inventory(sd,ITEMID_EMPERIUM_ANVIL) > 0) make_per+= 1000; // Emperium Anvil: +10 else if (pc_search_inventory(sd,ITEMID_GOLDEN_ANVIL) > 0) make_per+= 500; // Golden Anvil: +5 else if (pc_search_inventory(sd,ITEMID_ORIDECON_ANVIL) > 0) make_per+= 300; // Oridecon Anvil: +3 else if (pc_search_inventory(sd,ITEMID_ANVIL) > 0) make_per+= 0; // Anvil: +0? if (battle_config.wp_rate != 100) make_per = make_per * battle_config.wp_rate / 100; } Here you can check what make_per is before wp_rate is applied and after. Just now I have low down to 50000, but it seem like ok for everytime it success. Maybe 900m too much. Ok I will have a look for the skill.c file, Thank you. Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted August 11, 2016 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: 4 hours ago Share Posted August 11, 2016 Yeah, you probably created an overflow when the rate is multiplied with your setting. The highest value you even need is 2000 actually. Because the lowest possible success chance is 5%. If you multiply that by 20, you already have 100%. Quote Link to comment Share on other sites More sharing options...
Question
pupa09
I want to make forging weapon & create potion become 100% success, I have try change inside the "items.conf" weapon_produce_rate with huge number like 900000000 also get fail at the end.
Is it I miss something for this ?
Link to comment
Share on other sites
5 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.