Jump to content
  • 0

please advise me about skill effect


Question

Posted

hello

 

I try to put a stun effect to Double strafe and Bash by my own but effect doesn't work. This is what I did in Skill.c

 

case AC_DOUBLE:

sc_start(src,bl,SC_STUN,(2*skill_lv+10),skill_lv,skill_get_time2(skill_id,skill_lv));  << I take this line from skill case AS_SONICBLOW:

break;

 

case SM_BASH:

sc_start(src,bl,SC_STUN,(2*skill_lv+10),skill_lv,skill_get_time2(skill_id,skill_lv));  << I take this line from skill case AS_SONICBLOW:

break;

 
//if( sd && skill_lv > 5 && pc_checkskill(sd,SM_FATALBLOW)>0 ){
//BaseChance gets multiplied with BaseLevel/50.0; 500/50 simplifies to 10 [Playtester]
//status_change_start(src,bl,SC_STUN,(skill_lv-5)*sd->status.base_level*10,
//skill_lv,0,0,0,skill_get_time2(SM_FATALBLOW,skill_lv),SCSTART_NONE);
//}
//break;
 
I really don't have any knowledge about writing program code can anybody teach me how to fix it?

2 answers to this question

Recommended Posts

Posted

 

hello

 

I try to put a stun effect to Double strafe and Bash by my own but effect doesn't work. This is what I did in Skill.c

 

case AC_DOUBLE:

sc_start(src,bl,SC_STUN,(2*skill_lv+10),skill_lv,skill_get_time2(skill_id,skill_lv));  << I take this line from skill case AS_SONICBLOW:

break;

 

case SM_BASH:

sc_start(src,bl,SC_STUN,(2*skill_lv+10),skill_lv,skill_get_time2(skill_id,skill_lv));  << I take this line from skill case AS_SONICBLOW:

break;

 
//if( sd && skill_lv > 5 && pc_checkskill(sd,SM_FATALBLOW)>0 ){
//BaseChance gets multiplied with BaseLevel/50.0; 500/50 simplifies to 10 [Playtester]
//status_change_start(src,bl,SC_STUN,(skill_lv-5)*sd->status.base_level*10,
//skill_lv,0,0,0,skill_get_time2(SM_FATALBLOW,skill_lv),SCSTART_NONE);
//}
//break;
 
I really don't have any knowledge about writing program code can anybody teach me how to fix it?

 

 

Try this:

 

Find:

		case AC_DOUBLE:
			if( pc_checkskill(sd, HT_POWER)) {
				duration = 2000;
				nodelay = 1; //Neither gives walk nor attack delay
				target_id = 0; //Does not need to be used on previous target
			}
			break;

Replace it to:

		case AC_DOUBLE:
			sc_start(src,bl,SC_STUN,(2*skill_lv+10),skill_lv,skill_get_time2(skill_id,skill_lv));
			if( pc_checkskill(sd, HT_POWER)) {
				duration = 2000;
				nodelay = 1; //Neither gives walk nor attack delay
				target_id = 0; //Does not need to be used on previous target
			}
			break;

For bash skill, i think fatal blow will do the job.

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