Jump to content
  • 0

Block Body Relocation while Spider Web


Question

Posted

Hello. Any source mod I can do so when a Professor casts Spider Web on a Champion, he won't be able to move away using Body Relocation?

 

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

open skill.cpp

Find

	case MO_BODYRELOCATION:
		if (unit_movepos(src, x, y, 2, 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;

Replace to:

	case MO_BODYRELOCATION:

		// Block skill usage while you have SC_SPIDERWEB status
		if(sc&& sc->data[SC_SPIDERWEB])
			break;

		if (unit_movepos(src, x, y, 2, 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;

 

Edited by anacondaq
  • Upvote 2
  • 0
Posted
8 hours ago, anacondaq said:

open skill.cpp

Find


	case MO_BODYRELOCATION:
		if (unit_movepos(src, x, y, 2, 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;

Replace to:


	case MO_BODYRELOCATION:

		// Block skill usage while you have SC_SPIDERWEB status
		if(sc&& sc->data[SC_SPIDERWEB])
			break;

		if (unit_movepos(src, x, y, 2, 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;

 

THANK YOU FOR THIS. I WILL TRY THIS. THIS WILL BE SUPER APPRECIATED.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...