Jump to content
  • 0

Separate ASPD formula for trans and 3rd class


Thanna

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  271
  • Reputation:   7
  • Joined:  01/06/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

// 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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

He was talking about the fixed cast time w/c is present if RENEWAL_CAST is defined.

Link to comment
Share on other sites

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.

×
×
  • Create New...