Jump to content
  • 0
Sign in to follow this  
Mikhail von Hohenheim

[Help] Relocation Skills

Question

as title suggests,, 

 

what i'm trying to do is I would like to merge the src of MO_BODYRELOCATION and SR_RIDEINLIGHTNING,, but whenever i do that,, getting errors,,

 

like when you target the location w/ ride in lightning,, you will be moved also to that location at the same time giving damage,,

 

thanks in advance

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Nevermind,, i actually place it on the wrong place,,

 

Here's the code that's working,,

 

		case SR_RIDEINLIGHTNING:			r = skill->get_splash(skill_id, skill_lv);			map->foreachinarea(skill->area_sub, src->m, x-r, y-r, x+r, y+r, BL_CHAR,			                   src, skill_id, skill_lv, tick, flag|BCT_ENEMY|1, skill->castend_damage_id);			if (unit->movepos(src, x, y, 1, 1)) {	#if PACKETVER >= 20111005				clif->snap(src, src->x, src->y);	#else				clif->skill_poseffect(src,skill_id,skill_lv,src->x,src->y,tick);	#endif				if (sd)					skill->blockpc_start (sd, MO_EXTREMITYFIST, 2000);			}			break;

 

Share this post


Link to post
Share on other sites

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.