justeyngonzales Posted May 10, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 72 Reputation: 0 Joined: 04/30/13 Last Seen: April 12, 2021 Share Posted May 10, 2013 HELP ME GUYS Thank you 10%fix cast time enabled sorry typo Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 10, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 237 Joined: 07/30/12 Last Seen: 21 hours ago Share Posted May 10, 2013 By; clydelion Index: src/map/battle.c =================================================================== --- src/map/battle.c (revision 16781) +++ src/map/battle.c (working copy) @@ -5596,6 +5596,8 @@ { "max_cloth_color", &battle_config.max_cloth_color, 4, 0, INT_MAX, }, { "pet_hair_style", &battle_config.pet_hair_style, 100, 0, INT_MAX, }, { "castrate_dex_scale", &battle_config.castrate_dex_scale, 150, 1, INT_MAX, }, + { "castrate_dex_scale_2", &battle_config.castrate_dex_scale_2, 150, 1, INT_MAX, }, + { "castrate_dex_scale_3", &battle_config.castrate_dex_scale_3, 150, 1, INT_MAX, }, { "vcast_stat_scale", &battle_config.vcast_stat_scale, 530, 1, INT_MAX, }, { "area_size", &battle_config.area_size, 14, 0, INT_MAX, }, { "zeny_from_mobs", &battle_config.zeny_from_mobs, 0, 0, 1, }, Index: src/map/battle.h =================================================================== --- src/map/battle.h (revision 16781) +++ src/map/battle.h (working copy) @@ -345,6 +345,8 @@ int pet_hair_style; // added by [Skotlex] int castrate_dex_scale; // added by [MouseJstr] + int castrate_dex_scale_2; + int castrate_dex_scale_3; int area_size; // added by [MouseJstr] int max_def, over_def_bonus; //added by [Skotlex] Index: src/map/skill.c =================================================================== --- src/map/skill.c (revision 16781) +++ src/map/skill.c (working copy) @@ -13356,10 +13356,22 @@ // calculate base cast time (reduced by dex) if( !(skill_get_castnodex(skill_id, skill_lv)&1) ) { - int scale = battle_config.castrate_dex_scale - status_get_dex(bl); - if( scale > 0 ) // not instant cast - time = time * scale / battle_config.castrate_dex_scale; + int scale = 0; + if(sd && sd->class_&JOBL_THIRD) + scale = battle_config.castrate_dex_scale_3 - status_get_dex(bl); + else if (sd && sd->class_&JOBL_2) + scale = battle_config.castrate_dex_scale_2 - status_get_dex(bl); else + scale = battle_config.castrate_dex_scale - status_get_dex(bl); + if( scale > 0 ){ // not instant cast + if(sd && sd->class_&JOBL_THIRD) + time = time * scale / battle_config.castrate_dex_scale_3; + else if (sd && sd->class_&JOBL_2) + time = time * scale / battle_config.castrate_dex_scale_2; + else + time = time * scale / battle_config.castrate_dex_scale; + } + else return 0; // instant cast } Index: src/map/skill.c =================================================================== --- src/map/skill.c (revision 16781) +++ src/map/skill.c (working copy) @@ -13356,10 +13356,22 @@ // calculate base cast time (reduced by dex) if( !(skill_get_castnodex(skill_id, skill_lv)&1) ) { - int scale = battle_config.castrate_dex_scale - status_get_dex(bl); - if( scale > 0 ) // not instant cast - time = time * scale / battle_config.castrate_dex_scale; + int scale = 0; + if(sd && sd->class_&JOBL_THIRD) + scale = battle_config.castrate_dex_scale_3 - status_get_dex(bl); + else if (sd && sd->class_&JOBL_2) + scale = battle_config.castrate_dex_scale_2 - status_get_dex(bl); else + scale = battle_config.castrate_dex_scale - status_get_dex(bl); + if( scale > 0 ){ // not instant cast + if(sd && sd->class_&JOBL_THIRD) + time = time * scale / battle_config.castrate_dex_scale_3; + else if (sd && sd->class_&JOBL_2) + time = time * scale / battle_config.castrate_dex_scale_2; + else + time = time * scale / battle_config.castrate_dex_scale; + } + else return 0; // instant cast } Index: conf/battle/skill.conf =================================================================== --- conf/battle/skill.conf (revision 16781) +++ conf/battle/skill.conf (working copy) @@ -38,7 +38,9 @@ no_skill_delay: 2 // At what dex does the cast time become zero (instacast)? -castrate_dex_scale: 150 +castrate_dex_scale: 150 //1st class +castrate_dex_scale_2: 150 //2nd class +castrate_dex_scale_3: 150 //3rd class // How much (dex*2+int) does variable cast turns zero? vcast_stat_scale: 530 1 Quote Link to comment Share on other sites More sharing options...
justeyngonzales Posted May 10, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 72 Reputation: 0 Joined: 04/30/13 Last Seen: April 12, 2021 Author Share Posted May 10, 2013 (edited) By; clydelion Index: src/map/battle.c =================================================================== --- src/map/battle.c (revision 16781) +++ src/map/battle.c (working copy) @@ -5596,6 +5596,8 @@ { "max_cloth_color", &battle_config.max_cloth_color, 4, 0, INT_MAX, }, { "pet_hair_style", &battle_config.pet_hair_style, 100, 0, INT_MAX, }, { "castrate_dex_scale", &battle_config.castrate_dex_scale, 150, 1, INT_MAX, }, + { "castrate_dex_scale_2", &battle_config.castrate_dex_scale_2, 150, 1, INT_MAX, }, + { "castrate_dex_scale_3", &battle_config.castrate_dex_scale_3, 150, 1, INT_MAX, }, { "vcast_stat_scale", &battle_config.vcast_stat_scale, 530, 1, INT_MAX, }, { "area_size", &battle_config.area_size, 14, 0, INT_MAX, }, { "zeny_from_mobs", &battle_config.zeny_from_mobs, 0, 0, 1, }, Index: src/map/battle.h =================================================================== --- src/map/battle.h (revision 16781) +++ src/map/battle.h (working copy) @@ -345,6 +345,8 @@ int pet_hair_style; // added by [Skotlex] int castrate_dex_scale; // added by [MouseJstr] + int castrate_dex_scale_2; + int castrate_dex_scale_3; int area_size; // added by [MouseJstr] int max_def, over_def_bonus; //added by [Skotlex] Index: src/map/skill.c =================================================================== --- src/map/skill.c (revision 16781) +++ src/map/skill.c (working copy) @@ -13356,10 +13356,22 @@ // calculate base cast time (reduced by dex) if( !(skill_get_castnodex(skill_id, skill_lv)&1) ) { - int scale = battle_config.castrate_dex_scale - status_get_dex(bl); - if( scale > 0 ) // not instant cast - time = time * scale / battle_config.castrate_dex_scale; + int scale = 0; + if(sd && sd->class_&JOBL_THIRD) + scale = battle_config.castrate_dex_scale_3 - status_get_dex(bl); + else if (sd && sd->class_&JOBL_2) + scale = battle_config.castrate_dex_scale_2 - status_get_dex(bl); else + scale = battle_config.castrate_dex_scale - status_get_dex(bl); + if( scale > 0 ){ // not instant cast + if(sd && sd->class_&JOBL_THIRD) + time = time * scale / battle_config.castrate_dex_scale_3; + else if (sd && sd->class_&JOBL_2) + time = time * scale / battle_config.castrate_dex_scale_2; + else + time = time * scale / battle_config.castrate_dex_scale; + } + else return 0; // instant cast } Index: src/map/skill.c =================================================================== --- src/map/skill.c (revision 16781) +++ src/map/skill.c (working copy) @@ -13356,10 +13356,22 @@ // calculate base cast time (reduced by dex) if( !(skill_get_castnodex(skill_id, skill_lv)&1) ) { - int scale = battle_config.castrate_dex_scale - status_get_dex(bl); - if( scale > 0 ) // not instant cast - time = time * scale / battle_config.castrate_dex_scale; + int scale = 0; + if(sd && sd->class_&JOBL_THIRD) + scale = battle_config.castrate_dex_scale_3 - status_get_dex(bl); + else if (sd && sd->class_&JOBL_2) + scale = battle_config.castrate_dex_scale_2 - status_get_dex(bl); else + scale = battle_config.castrate_dex_scale - status_get_dex(bl); + if( scale > 0 ){ // not instant cast + if(sd && sd->class_&JOBL_THIRD) + time = time * scale / battle_config.castrate_dex_scale_3; + else if (sd && sd->class_&JOBL_2) + time = time * scale / battle_config.castrate_dex_scale_2; + else + time = time * scale / battle_config.castrate_dex_scale; + } + else return 0; // instant cast } Index: conf/battle/skill.conf =================================================================== --- conf/battle/skill.conf (revision 16781) +++ conf/battle/skill.conf (working copy) @@ -38,7 +38,9 @@ no_skill_delay: 2 // At what dex does the cast time become zero (instacast)? -castrate_dex_scale: 150 +castrate_dex_scale: 150 //1st class +castrate_dex_scale_2: 150 //2nd class +castrate_dex_scale_3: 150 //3rd class // How much (dex*2+int) does variable cast turns zero? vcast_stat_scale: 530 SIR 1>..\src\map\skill.c(1843): warning C4554: '&' : check operator precedence for possible error; use parentheses to clarify precedence 1>..\src\map\script.c(6090): warning C4101: 'c3' : unreferenced local variable 1>..\src\map\script.c(6090): warning C4101: 'attr' : unreferenced local variable 1>..\src\map\script.c(6090): warning C4101: 'iden' : unreferenced local variable 1>..\src\map\script.c(6090): warning C4101: 'ref' : unreferenced local variable 1>..\src\map\script.c(6090): warning C4101: 'c1' : unreferenced local variable 1>..\src\map\script.c(6090): warning C4101: 'c2' : unreferenced local variable 1>..\src\map\script.c(6090): warning C4101: 'c4' : unreferenced local variable IT WORKED WITH ERRORS. BUT FINGER OFFENSIVE STILL IN FIXED CAST. ZEN is Now in no cast. Edited May 10, 2013 by justeyngonzales Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 10, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 237 Joined: 07/30/12 Last Seen: 21 hours ago Share Posted May 10, 2013 http://svn.code.sf.net/p/rathena/svn/trunk/db/re/skill_cast_db.txt Quote Link to comment Share on other sites More sharing options...
stydianx Posted June 15, 2013 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 390 Reputation: 27 Joined: 07/12/12 Last Seen: October 24, 2022 Share Posted June 15, 2013 Hi Anakid, uhmm.. i did what you said here, added the ones with + and erased the ones with -.. but its still didn't work.. and about this: http://svn.code.sf.net/p/rathena/svn/trunk/db/re/skill_cast_db.txt are we suppose to add this? Quote Link to comment Share on other sites More sharing options...
Jaburak Posted June 15, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 237 Joined: 07/30/12 Last Seen: 21 hours ago Share Posted June 15, 2013 Try this; trunk/src/config/renewal.h /// renewal cast time /// (disable by commenting the line) /// /// leave this line to enable renewal casting time algorithms /// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats. /// example: /// on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a /// "fixed cast time" which can only be reduced by specialist items and skills #define RENEWAL_CAST Put comment in #define RENEWAL_CAST Quote Link to comment Share on other sites More sharing options...
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.