Jump to content
  • 0

10% Fixed Cast Time Request


Esdeath

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Untitled_zpse35fd476.png

^ Guys I wanted to achieve that setup on my server. How can I do it? I tried to look arround but I didn't manage to get a solution. 

 

NOTE : I want only 3rd job to have renewal cast

Edited by esquilla13
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   3
  • Joined:  08/23/12
  • Last Seen:  

Each skill has their own fixed cast time.You'll have to edit each skill manually in the /db/ in skill_cast_db.txt. Where it is at is depending if you use renewal or not.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Dastgir said that one of this files should be edited https://github.com/rathena/rathena/search?utf8=%E2%9C%93&q=RENEWAL_CAST

"include condition if it'd third job and removing the #else with else statement" - Dastgir

 

But yeah I really can't do it >.< I hope someone help me out here.

Edited by esquilla13
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   3
  • Joined:  08/23/12
  • Last Seen:  

You'll have to do a source edit and recompile to do what you're talking about.

 

It would be easier to manually edit all of the skills.

 

You're looking for the Fixed Casting Time, which is at the end of the line.

 

skill_cast_db.txt

// SkillID,CastingTime,AfterCastActDelay,AfterCastWalkDelay,Duration1,Duration2,Cool Down,Fixed Casting Time

 

Unless you are asking for someone to do this for you, then best of luck.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Editing all of skills is a lot of work/time to do. While editing it on src would be more easier. I only need the idea on where to include that condition that will check if it is a 3rd Class, if its yes Then Renewal Cast will affect only all 3rd Jobs Skills. ~


uppppppppp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

you have to looking for word RENEWAL_CAST then read the code add a condition like

IF (3rdjob && RENEWAL_CAST) = RENEWAL CAST
ELSE
PRE RENEWAL CAST

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

I still didn't get it >.<

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

If u want 3rd Class skill that only has fixed cast time, the gives all fixed cast time value for non-3rd skill to -1 on db/re/skill_cast_db.txt. /heh

 

If u want every 3rd Class casts any skill, it has fixed cast time, example Creator casts AM_POTIONPITCHER (db value: 0), it doesn't get Fixed Cast time. But when Genetic casts the same skill with same db value, it has 20% fixed cast time. maybe...

 

diff --git a/src/map/skill.c b/src/map/skill.c
index f9b6297..4069135 100755
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15474,10 +15474,14 @@ int skill_vfcastfix(struct block_list *bl, double time, uint16 skill_id, uint16
  if( bl->type == BL_MOB )
  return (int)time;
 
- if( fixed == 0 ){
- fixed = (int)time * 20 / 100; // fixed time
- time = time * 80 / 100; // variable time
- }else if( fixed < 0 ) // no fixed cast time
+ if (!sd || (sd && sd->class_&JOBL_THIRD)) {
+ if( fixed == 0 ){
+ fixed = (int)time * 20 / 100; // fixed time
+ time = time * 80 / 100; // variable time
+ }else if( fixed < 0 ) // no fixed cast time
+ fixed = 0;
+ }
+ else
  fixed = 0;
 
  if(sd  && !(skill_get_castnodex(skill_id, skill_lv)&4) ){ // Increases/Decreases fixed/variable cast time of a skill by item/card bonuses.
 
 

 

if u want change the 20% to 10%, just change

 

diff --git a/src/map/skill.c b/src/map/skill.c
index f9b6297..efdb192 100755
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15475,8 +15475,8 @@ int skill_vfcastfix(struct block_list *bl, double time, uint16 skill_id, uint16
  return (int)time;
 
  if( fixed == 0 ){
- fixed = (int)time * 20 / 100; // fixed time
- time = time * 80 / 100; // variable time
+ fixed = (int)time * 10 / 100; // fixed time
+ time = time * 90 / 100; // variable time
  }else if( fixed < 0 ) // no fixed cast time
  fixed = 0;
 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Is Renewal Casting time reduce-able by cast-time modifiers (berzebub, etc, etc) ?


If u want 3rd Class skill that only has fixed cast time, the gives all fixed cast time value for non-3rd skill to -1 on db/re/skill_cast_db.txt. /heh
 
If u want every 3rd Class casts any skill, it has fixed cast time, example Creator casts AM_POTIONPITCHER (db value: 0), it doesn't get Fixed Cast time. But when Genetic casts the same skill with same db value, it has 20% fixed cast time. maybe...
 

diff --git a/src/map/skill.c b/src/map/skill.c
index f9b6297..4069135 100755
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15474,10 +15474,14 @@ int skill_vfcastfix(struct block_list *bl, double time, uint16 skill_id, uint16
  if( bl->type == BL_MOB )
  return (int)time;
 
- if( fixed == 0 ){
- fixed = (int)time * 20 / 100; // fixed time
- time = time * 80 / 100; // variable time
- }else if( fixed < 0 ) // no fixed cast time
+ if (!sd || (sd && sd->class_&JOBL_THIRD)) {
+ if( fixed == 0 ){
+ fixed = (int)time * 20 / 100; // fixed time
+ time = time * 80 / 100; // variable time
+ }else if( fixed < 0 ) // no fixed cast time
+ fixed = 0;
+ }
+ else
  fixed = 0;
 
  if(sd  && !(skill_get_castnodex(skill_id, skill_lv)&4) ){ // Increases/Decreases fixed/variable cast time of a skill by item/card bonuses.
 
 
 
if u want change the 20% to 10%, just change
 
diff --git a/src/map/skill.c b/src/map/skill.c
index f9b6297..efdb192 100755
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -15475,8 +15475,8 @@ int skill_vfcastfix(struct block_list *bl, double time, uint16 skill_id, uint16
  return (int)time;
 
  if( fixed == 0 ){
- fixed = (int)time * 20 / 100; // fixed time
- time = time * 80 / 100; // variable time
+ fixed = (int)time * 10 / 100; // fixed time
+ time = time * 90 / 100; // variable time
  }else if( fixed < 0 ) // no fixed cast time
  fixed = 0;
 

Should I enable renewal casting?


UP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

UP UP! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

you request bit confused me

if you want fixed cast just add fixed cast time like this

 

You'll have to do a source edit and recompile to do what you're talking about.

 

It would be easier to manually edit all of the skills.

 

You're looking for the Fixed Casting Time, which is at the end of the line.

 

skill_cast_db.txt

// SkillID,CastingTime,AfterCastActDelay,AfterCastWalkDelay,Duration1,Duration2,Cool Down,Fixed Casting Time

 

Unless you are asking for someone to do this for you, then best of luck.

 

and remove all non 3rd job fixed cast if any

  • Upvote 1
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...