Jump to content
  • 0

[support]BackSliding and BodyRelocation.


quesoph

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

I have tried to add this to prevent players from using moving skills while in fiberlock, ankle snare, close confine.

case TF_BACKSLIDING: //This is the correct implementation as per packet logging information. [skotlex]
	if( sd->sc.data[sC_CLOSECONFINE2] || sd->sc.data[sC_ANKLE] || sd->sc.data[sC_SPIDERWEB] )
	{
		clif_skill_fail(sd,sd->menuskill_id,0,0);
		break;
	}

and

case MO_BODYRELOCATION:
	if( sc && sc->data[sC_CLOSECONFINE2] || sc->data[sC_ANKLE] || sc->data[sC_SPIDERWEB] )
	{
		clif_skill_fail(sd,sd->menuskill_id,0,0);
		break;
	}

it does work well in my test server. but i was wondering cause my test server crashed because of this..

is there anyone who could pin point the problem to this?.

im not really good at these. lol.

Thank you.

Edited by quesoph
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  169
  • Topics Per Day:  0.04
  • Content Count:  1260
  • Reputation:   750
  • Joined:  11/19/11
  • Last Seen:  

if( sd->sc.data[sC_CLOSECONFINE2] || sd->sc.data[sC_ANKLE] || sd->sc.data[sC_SPIDERWEB] )

to

if( sd && ( sd->sc.data[sC_CLOSECONFINE2] || sd->sc.data[sC_ANKLE] || sd->sc.data[sC_SPIDERWEB] ) )

and

if( sc && sc->data[sC_CLOSECONFINE2] || sc->data[sC_ANKLE] || sc->data[sC_SPIDERWEB] )

to

if( sd && ( sd->sc.data[sC_CLOSECONFINE2] || sd->sc.data[sC_ANKLE] || sd->sc.data[sC_SPIDERWEB] ) )

hope it helps ;)

  • Upvote 1
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  210
  • Reputation:   10
  • Joined:  11/20/11
  • Last Seen:  

Thank you sir Ind.. ;)

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...