Jump to content
  • 0

How to change aftercast delay of Injustice Card


Question

Posted

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! ^_^

6 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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.

Posted (edited)

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
Posted (edited)

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

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