Remove 20% Fixed Cast Time in Renewal IF

Hadeszeus

New member
Messages
651
Points
0
Location
Philippines
Anyone knows how to removed 20% Fixed Cast Time while RENEWAL_CAST is enable, IF the user has already met the max castrate_dex_scale and vcast_stat_scale 20% Fixed Cast Time will be ignored.

In the default set up. If RENEWAL_CAST is enable even you reach the max castrate and vcast scale you will still need 20% Fixed Cast Time reduction to no cast.

/// 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
// At what dex does the cast time become zero (instacast)?
castrate_dex_scale: 200 //150
 
// How much (dex*2+int) does variable cast turns zero?
vcast_stat_scale: 530 //530
 
add before  this line  // underflow checking/capping 

if( (status_get_dex(bl)*2 + status_get_int(bl)) >= 530 )
  fixed = 0;

 
add before  this line  // underflow checking/capping

if( (status_get_dex(bl)*2 + status_get_int(bl)) >= 530 )

  fixed = 0;
OMG Thank you! 

If you don't mind can u also give the line of 20% fixed castime? I want to reduce the value maybe to 15%
around line 13921   , you can find  20% fixed castime

Code:
fixed = (int)time * 20 / 100; // fixed time
 
Back
Top