Jump to content
  • 0

How to change aftercast delay of Injustice Card


lovingangels

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/27/11
  • Last Seen:  

Good day guys!

 

I wanted my injustice card in my server to attack continuously after Sonic Blow is casted.
 

4268,Injustice_Card,Injustice Card,6,20,,10,,,,,,,,2,,,,,{ bonus3 bAutoSpell,"AS_SONICBLOW",10,50; if(isequipped(4277)) { bonus bBaseAtk,20; bonus bLuk,3; } },{},{}
 

 

I appreciate the help! ^_^

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Normal attack you mean? I think that's Sonic Blow skill behavior..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Try this; trunk/db/re/skill_cast_db.txt

 

Find:

//-- AS_SONICBLOW
136,0,0,2000,0,5000,0,-1

Change to:

//-- AS_SONICBLOW
136,0,0,0,0,5000,0,-1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

Location: skill.c

remove or comment out that line

if (skill == AS_SONICBLOW)
		pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
Edited by Keloyds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/27/11
  • Last Seen:  

Try this; trunk/db/re/skill_cast_db.txt

 

Find:

//-- AS_SONICBLOW
136,0,0,2000,0,5000,0,-1

Change to:

//-- AS_SONICBLOW
136,0,0,0,0,5000,0,-1

 

Will try this. Thanks!

 

Location: skill.c

remove or comment out that line

if (skill == AS_SONICBLOW)
		pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

 

I don't get this but i will figure it out. thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Location: skill.c

remove or comment out that line

if (skill == AS_SONICBLOW)

        pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.

 

I don't get this but i will figure it out. thanks.

 

 

In trunk/src/map/skill.c

 

Find those line and remove or comment (//) that lines.

 

And it should be looking like this

 

			if( battle_config.autospell_check_range &&
				!battle_check_range(src, tbl, skill_get_range2(src, skill,skill_lv) + (skill == RG_CLOSECONFINE?0:1)) )
				continue;

		//	if (skill == AS_SONICBLOW)
		//		pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
		//	else 
			if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
				type = CAST_GROUND;

			sd->state.autocast = 1;
			skill_consume_requirement(sd,skill,skill_lv,1);
			skill_toggle_magicpower(src, skill);
			switch (type) {

or this

 

			if( battle_config.autospell_check_range &&
				!battle_check_range(src, tbl, skill_get_range2(src, skill,skill_lv) + (skill == RG_CLOSECONFINE?0:1)) )
				continue;

			if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding.
				type = CAST_GROUND;

			sd->state.autocast = 1;
			skill_consume_requirement(sd,skill,skill_lv,1);
			skill_toggle_magicpower(src, skill);
			switch (type) {

 

And don't forget to re-compile your server.

 

Correct me if I'm wrong.

Edited by uDe
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

Look for:

 

 

if (skill == AS_SONICBLOW)
     pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
 

 

 

Change to this:

 


if (skill == AS_SONICBLOW)
    // pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking.
 
Edited by Keloyds
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...