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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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