Jump to content
  • 0
Sign in to follow this  
Easycore

skill->addtimerskill

Question

Hi,

I have been working in a custom skill area, This ability hits a 3x3 area and then 1 second takes another hit.
What complicates me is the skill-> addtimerskill function, I tried to use this for the second hit, but the target is always self (src & bl).
There is another way for timer skills that allow realize it in area?
Or I used this function wrong?
 
The code:
		case QQ_CUSTOM:			clif->skill_nodamage(src,bl,skill_id,skill_lv,1);			skill->castend_damage_id(src, src, skill_id, skill_lv,tick, flag);			skill->addtimerskill(src,tick+1000,bl->id,src->x,src->y,skill_id,skill_lv,0,flag);			break;
		case GN_CARTCANNON:		case KO_HAPPOKUNAI:		case KO_HUUMARANKA:		case KO_MUCHANAGE:		case KO_BAKURETSU:		case GN_ILLUSIONDOPING:		case MH_XENO_SLASHER:		case QQ_CUSTOM:			if( flag&1 ) {//Recursive invocation				// skill->area_temp[0] holds number of targets in area				// skill->area_temp[1] holds the id of the original target				// skill->area_temp[2] counts how many targets have already been processed				int sflag = skill->area_temp[0] & 0xFFF, heal;				struct status_change *tsc = status->get_sc(bl);				if( flag&SD_LEVEL )					sflag |= SD_LEVEL; // -1 will be used in packets instead of the skill level....

 

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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