Jump to content
  • 0

Block Body Relocation while Spider Web


Ukiram

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

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?

 
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

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.

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   2
  • Joined:  10/04/19
  • Last Seen:  

@anacondaq hi, how if Sniper Ankle Snare? Thanks

Link to comment
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.   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.

×
×
  • Create New...