Saenn 0 Posted May 18, 2014 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. Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted May 18, 2014 https://github.com/HerculesWS/Hercules/blob/master/src/map/skill.c#L6189 .../src/map/skill.c case AS_CLOAKING: if( tsc->data[SC_CLOAKING] ) skill->blockpc_start (sd, MO_EXTREMITYFIST, 3000); else skill->blockpc_start (sd, MO_EXTREMITYFIST, 0); Quote Share this post Link to post Share on other sites
0 Saenn 0 Posted May 18, 2014 It's after and while cloaking ? Quote Share this post Link to post Share on other sites
0 Saenn 0 Posted May 18, 2014 And how to do it while ? Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted May 18, 2014 (edited) 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 May 18, 2014 by quesoph Quote Share this post Link to post Share on other sites
0 Saenn 0 Posted May 18, 2014 The last edit is ok. Can i add sc_cloaking end after "// cant cast asura while cloaking." ? Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted May 18, 2014 (edited) 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 May 18, 2014 by quesoph Quote Share this post Link to post Share on other sites
0 Saenn 0 Posted May 18, 2014 Oh perfect, thanks man Quote Share this post Link to post Share on other sites
Hi,
I want to add a delay after cloaking of frilldora card about Azura Strike.
I found that :
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