DarkWhoteva Posted October 20, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 56 Reputation: 4 Joined: 01/09/12 Last Seen: May 23, 2024 Share Posted October 20, 2012 (edited) Ive read that when ur 15 lvls different (say ur 70, killing a 85 mob would be best) someone said it would be in pc.c but im not too sure which i gotta change to edit the lvl difference? if anyone has done something like this, thanks. Josh Edited October 20, 2012 by DarkWhoteva Quote Link to comment Share on other sites More sharing options...
lekkereten Posted October 20, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 148 Reputation: 46 Joined: 11/02/11 Last Seen: November 25, 2024 Share Posted October 20, 2012 src/map/party.c void party_renewal_exp_mod(unsigned int *base_exp, unsigned int *job_exp, int lvl, int moblvl) { int diff = lvl - moblvl, boost = 0; //-2 ~ +5: 100% if( diff >= -2 && diff <= 5 ) return;//we don't change anything, it's 100% boost //-3 ~ -10: +5% boost for each if( diff >= -10 && diff <= -3 ) boost = 100 + (( -diff * 5 ) - 15 ); // 40% boost if difference is <= -10 else if ( diff <= -10 ) boost = 40; else { boost = ( diff > 5 && diff < 11 ) ? 95 : ( diff > 10 && diff < 16 ) ? 90 : ( diff > 15 && diff < 21 ) ? 85 : ( diff > 20 && diff < 26 ) ? 60 : ( diff > 25 && diff < 31 ) ? 35 : 10; } if( *base_exp ) *base_exp = (unsigned int)cap_value(*base_exp * boost / 100, 1, UINT_MAX); if( *job_exp ) *job_exp = (unsigned int)cap_value(*job_exp * boost / 100, 1, UINT_MAX); return; } The `boost' variable will carry the experience bonus. So, if you're lv 70 and killed a mob lv 80, you get 40% extra exp. Which is calculated by this line: else if ( diff <= -10 ) boost = 40; Quote Link to comment Share on other sites More sharing options...
DarkWhoteva Posted October 20, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 56 Reputation: 4 Joined: 01/09/12 Last Seen: May 23, 2024 Author Share Posted October 20, 2012 Awesome, thanks for the help Quote Link to comment Share on other sites More sharing options...
Snoozel Posted December 12, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 07/08/12 Last Seen: September 4, 2021 Share Posted December 12, 2012 (edited) src/map/party.c ... The `boost' variable will carry the experience bonus. So, if you're lv 70 and killed a mob lv 80, you get 40% extra exp. Which is calculated by this line: else if ( diff <= -10 ) boost = 40; and the 15 level difference bonus? where can i find it? #ifdef RENEWAL_EXP /** * Renewal Experience Earning Mode **/ void party_renewal_exp_mod(unsigned int *base_exp, unsigned int *job_exp, int lvl, int moblvl) { int diff = lvl - moblvl, boost = 0; //-2 ~ +5: 100% if( diff >= -2 && diff <= 5 ) return;//we don't change anything, it's 100% boost //-3 ~ -10: +5% boost for each if( diff >= -10 && diff <= -3 ) boost = 100 + (( -diff * 5 ) - 15 ); // 40% boost if difference is <= -10 else if ( diff <= -10 ) boost = 40; else { boost = ( diff > 5 && diff < 11 ) ? 95 : ( diff > 10 && diff < 16 ) ? 90 : ( diff > 15 && diff < 21 ) ? 85 : ( diff > 20 && diff < 26 ) ? 60 : ( diff > 25 && diff < 31 ) ? 35 : 10; } if( *base_exp ) *base_exp = (unsigned int)cap_value(*base_exp * boost / 100, 1, UINT_MAX); if( *job_exp ) *job_exp = (unsigned int)cap_value(*job_exp * boost / 100, 1, UINT_MAX); return; } #endif http://rode-r.doddlercon.com/viewpage/d/3 Edited December 12, 2012 by Snoozel Quote Link to comment Share on other sites More sharing options...
Snoozel Posted December 13, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 07/08/12 Last Seen: September 4, 2021 Share Posted December 13, 2012 (edited) no idea? bumb... [EDIT] fixed... thx http://rathena.org/board/topic/70659-renewal-exp-gain/page__hl__boost Edited December 13, 2012 by Snoozel Quote Link to comment Share on other sites More sharing options...
whoteva Posted December 13, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 03/18/12 Last Seen: October 5, 2016 Share Posted December 13, 2012 (edited) // 40% boost if difference is <= -10 else if ( diff <= -10 ) < change that to -15 boost = 40; < Gives 40% more Edited December 13, 2012 by whoteva Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted December 14, 2012 we have this file ~ trunk/db/re/level_penalty.txt 1 Quote Link to comment Share on other sites More sharing options...
Snoozel Posted December 14, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 07/08/12 Last Seen: September 4, 2021 Share Posted December 14, 2012 (edited) we dont have this file!! Edited December 14, 2012 by Snoozel Quote Link to comment Share on other sites More sharing options...
malufett Posted December 14, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 554 Reputation: 70 Joined: 04/04/12 Last Seen: November 8, 2013 Share Posted December 14, 2012 we dont have this file!! then add it.. r16842, r16843, r16856 1 Quote Link to comment Share on other sites More sharing options...
Snoozel Posted December 14, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 07/08/12 Last Seen: September 4, 2021 Share Posted December 14, 2012 oh... your tooo fast thx for your help! Quote Link to comment Share on other sites More sharing options...
DarkWhoteva Posted December 14, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 56 Reputation: 4 Joined: 01/09/12 Last Seen: May 23, 2024 Author Share Posted December 14, 2012 how old must ur svn be if you dont have it o.o what version are you using? 1 Quote Link to comment Share on other sites More sharing options...
Snoozel Posted December 14, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 6 Reputation: 0 Joined: 07/08/12 Last Seen: September 4, 2021 Share Posted December 14, 2012 16809 <- this one Quote Link to comment Share on other sites More sharing options...
Question
DarkWhoteva
Ive read that when ur 15 lvls different (say ur 70, killing a 85 mob would be best) someone said it would be in pc.c but im not too sure which i gotta change to edit the lvl difference?
if anyone has done something like this, thanks.
Josh
Edited by DarkWhotevaLink to comment
Share on other sites
11 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.