M mofo New member Messages 97 Points 0 Jun 4, 2013 #2 Where in the source can I find the lines to change the weapon aspd penalty? I want to keep renewal aspd but it's a little slow for my taste. I'd like to atleast implement half the penalty instead of getting the full deductions. Thanks in advance
Where in the source can I find the lines to change the weapon aspd penalty? I want to keep renewal aspd but it's a little slow for my taste. I'd like to atleast implement half the penalty instead of getting the full deductions. Thanks in advance
malufett Retired Staff Messages 657 Points 0 Location Philippines Github malufett Emulator Jun 4, 2013 #3 @status.c if( bl->type&BL_PC ) { amotion = status_base_amotion_pc(sd,status);#ifndef RENEWAL_ASPD status->aspd_rate = status_calc_aspd_rate(bl, sc, b_status->aspd_rate); if(status->aspd_rate != 1000) amotion = amotion*status->aspd_rate/1000;#else // aspd = baseaspd + floor(sqrt((agi^2/2) + (dex^2/5))/4 + (potskillbonus*agi/200)) amotion -= (int)(sqrt( (pow(status->agi, 2) / 2) + (pow(status->dex, 2) / 5) ) / 4 + ((float)status_calc_aspd(bl, sc, 1) * status->agi / 200)) * 10; if( (status_calc_aspd(bl, sc, 2) + status->aspd_rate2) != 0 ) // RE ASPD percertage modifier amotion -= (( amotion - ((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : battle_config.max_aspd) ) * (status_calc_aspd(bl, sc, 2) + status->aspd_rate2) / 10 + 5) / 10; if(status->aspd_rate != 1000) // absolute percentage modifier amotion = ( 200 - (200-amotion/10) * status->aspd_rate / 1000 ) * 10;#endif amotion = status_calc_fix_aspd(bl, sc, amotion); status->amotion = cap_value(amotion,((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : battle_config.max_aspd),2000); status->adelay = 2*status->amotion; } else for weapon penalty reduction modify your job_db1.txt
@status.c if( bl->type&BL_PC ) { amotion = status_base_amotion_pc(sd,status);#ifndef RENEWAL_ASPD status->aspd_rate = status_calc_aspd_rate(bl, sc, b_status->aspd_rate); if(status->aspd_rate != 1000) amotion = amotion*status->aspd_rate/1000;#else // aspd = baseaspd + floor(sqrt((agi^2/2) + (dex^2/5))/4 + (potskillbonus*agi/200)) amotion -= (int)(sqrt( (pow(status->agi, 2) / 2) + (pow(status->dex, 2) / 5) ) / 4 + ((float)status_calc_aspd(bl, sc, 1) * status->agi / 200)) * 10; if( (status_calc_aspd(bl, sc, 2) + status->aspd_rate2) != 0 ) // RE ASPD percertage modifier amotion -= (( amotion - ((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : battle_config.max_aspd) ) * (status_calc_aspd(bl, sc, 2) + status->aspd_rate2) / 10 + 5) / 10; if(status->aspd_rate != 1000) // absolute percentage modifier amotion = ( 200 - (200-amotion/10) * status->aspd_rate / 1000 ) * 10;#endif amotion = status_calc_fix_aspd(bl, sc, amotion); status->amotion = cap_value(amotion,((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : battle_config.max_aspd),2000); status->adelay = 2*status->amotion; } else for weapon penalty reduction modify your job_db1.txt
C cJei New member Messages 164 Points 0 Location Makati, PH Emulator Jun 5, 2013 #5 This should marked as answered. Well done malufett