Jump to content
  • 0

[support]BackSliding and BodyRelocation.


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 1
Posted

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

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