iSkiddo Posted December 6, 2015 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 94 Reputation: 0 Joined: 11/26/11 Last Seen: January 14, 2020 Share Posted December 6, 2015 Hi . i would like to askcan we edit src : in map/status.c case SC_FREEZE: sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->luk*-10; // Caster can increase final duration with luk break; How do we change if Mdef = 60-70 mdef user will break freeze within 1 sec Meanwhile LUK = 150 or higher user hard to get frost Any ideas ? i did try to edit as below : case SC_FREEZE: sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->mdef*-10; // Caster can increase final duration with luk break; but still failed .. hope someone could help me . i checked and tested on much src modification on rathena but still failed Quote Link to comment Share on other sites More sharing options...
0 Kozima Posted January 1, 2016 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 82 Reputation: 2 Joined: 10/30/13 Last Seen: October 26, 2023 Share Posted January 1, 2016 try this Change this case SC_FREEZE: sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->mdef*-10; // Caster can increase final duration with luk break; to this if (status->luk == 150) return 0; sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->luk*-10; // Caster can increase final duration with luk break; and then , recompile your server Quote Link to comment Share on other sites More sharing options...
0 iSkiddo Posted January 19, 2016 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 94 Reputation: 0 Joined: 11/26/11 Last Seen: January 14, 2020 Author Share Posted January 19, 2016 try this Change this case SC_FREEZE: sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->mdef*-10; // Caster can increase final duration with luk break; to this if (status->luk == 150) return 0; sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->luk*-10; // Caster can increase final duration with luk break; and then , recompile your server bump .. checked on this .. still not working .. luk total 150 .. total unfrozen .. Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted January 29, 2016 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: Yesterday at 05:43 PM Share Posted January 29, 2016 The english is hard to understand. You want the duration to be reduced by MDEF but the chance only by LUK? And what do you mean with "Hard to get frozen", what does hard mean? 10%? 1%? 0.1%? Quote Link to comment Share on other sites More sharing options...
0 iSkiddo Posted October 9, 2016 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 94 Reputation: 0 Joined: 11/26/11 Last Seen: January 14, 2020 Author Share Posted October 9, 2016 Frost duration should based on Mdef . means higher Mdef should reduce more frost duration . sorry for my bad english = = Quote Link to comment Share on other sites More sharing options...
0 Azeroth Posted October 10, 2016 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 383 Reputation: 121 Joined: 03/31/12 Last Seen: January 29, 2023 Share Posted October 10, 2016 The english is hard to understand. You want the duration to be reduced by MDEF but the chance only by LUK? And what do you mean with "Hard to get frozen", what does hard mean? 10%? 1%? 0.1%? Probably what he mean is if higher luck around 150+ can reduce duration of frost. Below 150 luck will be same as default. 1 question does LUCK affect the MDEF? Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted October 10, 2016 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: Yesterday at 05:43 PM Share Posted October 10, 2016 MDEF already reduces the duration of Freeze. See: https://raw.githubusercontent.com/rathena/rathena/master/src/map/status.c status_get_sc_def case SC_FREEZE: sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->luk*-10; // Caster can increase final duration with luk break; As tick_def isn't defined it will use the same as sc_def as explained at the top: /// Resistance rate: 10000 = 100% /// Example: 50% (5000) -> sc_def = 5000 -> 25%; /// 5000ms -> tick_def = 5000 -> 2500ms int sc_def = 0, tick_def = -1; // -1 = use sc_def /// Fixed resistance value (after rate calculation) /// Example: 25% (2500) -> sc_def2 = 2000 -> 5%; /// 2500ms -> tick_def2=2000 -> 500ms int sc_def2 = 0, tick_def2 = 0; 1 question does LUCK affect the MDEF? No, but as you can see in the formula quoted above. LUCK of the caster can increase the freeze duration. LUCK of the target reduces chance to be affected but not duration. Quote Link to comment Share on other sites More sharing options...
0 iSkiddo Posted October 17, 2016 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 94 Reputation: 0 Joined: 11/26/11 Last Seen: January 14, 2020 Author Share Posted October 17, 2016 MDEF already reduces the duration of Freeze. See: https://raw.githubusercontent.com/rathena/rathena/master/src/map/status.c status_get_sc_def case SC_FREEZE: sc_def = status->mdef*100; sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10; tick_def2 = status_src->luk*-10; // Caster can increase final duration with luk break; As tick_def isn't defined it will use the same as sc_def as explained at the top: /// Resistance rate: 10000 = 100% /// Example: 50% (5000) -> sc_def = 5000 -> 25%; /// 5000ms -> tick_def = 5000 -> 2500ms int sc_def = 0, tick_def = -1; // -1 = use sc_def /// Fixed resistance value (after rate calculation) /// Example: 25% (2500) -> sc_def2 = 2000 -> 5%; /// 2500ms -> tick_def2=2000 -> 500ms int sc_def2 = 0, tick_def2 = 0; 1 question does LUCK affect the MDEF? No, but as you can see in the formula quoted above. LUCK of the caster can increase the freeze duration. LUCK of the target reduces chance to be affected but not duration. how about your mdef calculation ? how much minimum mdef do they required to reduce freeze duration sir ? Quote Link to comment Share on other sites More sharing options...
0 Playtester Posted October 18, 2016 Group: Developer Topic Count: 37 Topics Per Day: 0.01 Content Count: 897 Reputation: 248 Joined: 01/30/13 Last Seen: Yesterday at 05:43 PM Share Posted October 18, 2016 Every MDEF reduces 1% duration. Quote Link to comment Share on other sites More sharing options...
-2 iSkiddo Posted December 9, 2015 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 94 Reputation: 0 Joined: 11/26/11 Last Seen: January 14, 2020 Author Share Posted December 9, 2015 BUMP ! anyone please help ? Quote Link to comment Share on other sites More sharing options...
-2 iSkiddo Posted January 26, 2016 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 94 Reputation: 0 Joined: 11/26/11 Last Seen: January 14, 2020 Author Share Posted January 26, 2016 Bump .. Anyone ? Quote Link to comment Share on other sites More sharing options...
Question
iSkiddo
Hi . i would like to ask
can we edit src : in map/status.c
How do we change if
Mdef = 60-70 mdef user will break freeze within 1 sec
Meanwhile LUK = 150 or higher user hard to get frost
Any ideas ?
i did try to edit as below :
but still failed .. hope someone could help me . i checked and tested on much src modification on rathena but still failed
Link to comment
Share on other sites
10 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.