Jump to content
  • 0
Sign in to follow this  
Juan Meissner

TK_DODGE help

Question

 

I made some modifications to the TK_DODGE Skill, and for some strange reason the skill stopped working even though I returned it to the old formula, could anyone help me, this really does not make sense because I had compiled, the skill was working just as I wanted, and then stopped working, does not display any error on the console.

 

		if(sc->data[SC_DODGE_READY] && ( !sc->opt1 || sc->opt1 == OPT1_BURNING ) &&
			(flag&BF_WEAPON || sc->data[SC_STRUP])
			&& rnd()%100 < 20) {
			if (t_sd && pc_issit(t_sd)) pc->setstand(t_sd); //Stand it to dodge.
			clif->skill_nodamage(bl,bl,TK_DODGE,1,1);
			if (!sc->data[SC_COMBOATTACK])
				sc_start4(src, bl, SC_COMBOATTACK, 100, TK_JUMPKICK, src->id, 1, 0, 2000);
			return 0;
		}

 

Does anyone know what it could be? I'm also trying to make the somersault work with short attacks, skills, and weapons that way.

		if(sc->data[SC_DODGE_READY] && ( !sc->opt1 || sc->opt1 == OPT1_BURNING ) &&
			(flag&(BF_WEAPON|BF_SHORT|BF_SKILL|BF_NORMAL))
			&& rnd()%100 < 20) {
			if (t_sd && pc_issit(t_sd)) pc->setstand(t_sd); //Stand it to dodge.
			clif->skill_nodamage(bl,bl,TK_DODGE,1,1);
			if (!sc->data[SC_COMBOATTACK])
				sc_start4(src, bl, SC_COMBOATTACK, 100, TK_JUMPKICK, src->id, 1, 0, 2000);
			return 0;
		}

 

I develop a custom server, I make much more complex modifications than this one, and for some reason this particular modification is giving me a headache.

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.