Jump to content
  • 0

Separate ASPD formula for trans and 3rd class


Question

Posted

is it possible to separate trans and 3rd class cast formula, if a char is trans he/she will not be affected by fixed cast, and when a char is 3rd class the formula will be used is the renewal formula

thanks in advance

4 answers to this question

Recommended Posts

Posted

Would this be enough?

Index: map/skill.c
===================================================================
--- map/skill.c (revision 16920)
+++ map/skill.c (working copy)
@@ -13666,7 +13666,7 @@
{
 struct status_change *sc = status_get_sc(bl);
 struct map_session_data *sd = BL_CAST(BL_PC,bl);
- int fixed = skill_get_fixed_cast(skill_id, skill_lv), fixcast_r = 0, varcast_r = 0, i = 0;
+ int fixed = (sd && sd->class_&JOBL_THIRD) ? skill_get_fixed_cast(skill_id, skill_lv):0 , fixcast_r = 0, varcast_r = 0, i = 0;

 if( time < 0 )
  return 0;

Posted (edited)

Would this be enough?

Index: map/skill.c
===================================================================
--- map/skill.c (revision 16920)
+++ map/skill.c (working copy)
@@ -13666,7 +13666,7 @@
{
 struct status_change *sc = status_get_sc(bl);
 struct map_session_data *sd = BL_CAST(BL_PC,bl);
- int fixed = skill_get_fixed_cast(skill_id, skill_lv), fixcast_r = 0, varcast_r = 0, i = 0;
+ int fixed = (sd && sd->class_&JOBL_THIRD) ? skill_get_fixed_cast(skill_id, skill_lv):0 , fixcast_r = 0, varcast_r = 0, i = 0;

 if( time < 0 )
  return 0;

I will try it sir, and I'll just ask if it is possible on ASPD formula too?

Edited by Thanna
Posted

// Maximum atk speed. (Default 190, Highest allowed 199)

max_aspd: 190

// Same as max_aspd, but for 3rd classes. (Default 193, Highest allowed 199)

max_third_aspd: 193

Maybe this will help you. player.conf

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...