Jump to content
  • 0
Sign in to follow this  
Saenn

Add delay after cloaking [Azura Strike]

Question

Hi,

 

I want to add a delay after cloaking of frilldora card about Azura Strike.

 

I found that :

 

skill_blockpc_start(sd, MO_EXTREMITYFIST, 3000);

 

So, i need at the end of cloaking, can't cast azura for 3 seconds.

 

And i think, i need to put something while the char is cloaking.

 

Thanks in advance.

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Change this
 

skill->blockpc_start (sd, MO_EXTREMITYFIST, 0);toskill->blockpc_start (sd, MO_EXTREMITYFIST, 3000);

 
@edit

or use this instead.


https://github.com/HerculesWS/Hercules/blob/master/src/map/status.c#L10160
.../src/map/status.c
 

   	 case SC_CLOAKING:+       	 skill->blockpc_start (sd, MO_EXTREMITYFIST, 5000); // 5 seconds delay

 
But they can still cast asura while cloaking.
 
if you dont want that to happen. You can block asura while cloaking. they need to uncloak if they want to cast asura.
 
https://github.com/HerculesWS/Hercules/blob/master/src/map/skill.c#L12773

   	 case MO_EXTREMITYFIST:    //        if(sc && sc->data[SC_EXTREMITYFIST]) //To disable Asura during the 5 min skill block uncomment this...    //            return 0;            if( sc && (sc->data[SC_BLADESTOP] || sc->data[SC_CURSEDCIRCLE_ATKER]) )                break;+       	 if( sc && (sc->data[SC_CLOAKING] )) // cant cast asura while cloaking.+           	 return 0;

 

 

Edited by quesoph

Share this post


Link to post
Share on other sites
  • 0
       	 if( sc && (sc->data[SC_CLOAKING] )) {                status_change_end(&sd->bl,SC_CLOAKING, INVALID_TIMER);                //clif->skill_fail(sd,MO_EXTREMITYFIST,USESKILL_FAIL_LEVEL,0);                return 0;            }
Edited by quesoph

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.