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

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.