[Help] Relocation Skills

Messages
125
Points
0
Github
mvhohenheim
Emulator
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

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

Here's the code that's working,,

Code:
		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;
 
Back
Top