Jump to content
  • 0

Question

4 answers to this question

Recommended Posts

  • 0
Posted

Open ../src/map/skill.c and in the function skill_castend_damage_id change:

	case RG_BACKSTAP:
	{
		uint8 dir = map_calc_dir(src, bl->x, bl->y), t_dir = unit_getdir(bl);
		if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {
			status_change_end(src, SC_HIDING, INVALID_TIMER);
			skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
			dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]
			unit_setdir(bl,dir);
		}
		else if (sd)
			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
	}
	break;

to:

	case RG_BACKSTAP:
	{
		uint8 dir = map_calc_dir(src, bl->x, bl->y), t_dir = unit_getdir(bl);
		if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {
			status_change_end(src, SC_HIDING, INVALID_TIMER);
			skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
		}
		else if (sd)
			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
	}
	break;
  • Upvote 2
  • 0
Posted (edited)

Open ../src/map/skill.c and in the function skill_castend_damage_id change:

case RG_BACKSTAP:	{		uint8 dir = map_calc_dir(src, bl->x, bl->y), t_dir = unit_getdir(bl);		if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {			status_change_end(src, SC_HIDING, INVALID_TIMER);			skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);			dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]			unit_setdir(bl,dir);		}		else if (sd)			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);	}	break;
to:
case RG_BACKSTAP:	{		uint8 dir = map_calc_dir(src, bl->x, bl->y), t_dir = unit_getdir(bl);		if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {			status_change_end(src, SC_HIDING, INVALID_TIMER);			skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);		}		else if (sd)			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);	}	break;

I like to ask a follow up question, How would i remove skill delay for just this skill or make skill delay base on agi?

Pretty much want it spammable like DS

I figure out how to add in ago reduce cast delay, but figure that won't work bc the buff on sniper to big.

How do I remove after cast delay for just 1 skill

Edited by Rain408
  • 0
Posted

 

Open ../src/map/skill.c and in the function skill_castend_damage_id change:

	case RG_BACKSTAP:
	{
		uint8 dir = map_calc_dir(src, bl->x, bl->y), t_dir = unit_getdir(bl);
		if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {
			status_change_end(src, SC_HIDING, INVALID_TIMER);
			skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
			dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]
			unit_setdir(bl,dir);
		}
		else if (sd)
			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
	}
	break;

to:

	case RG_BACKSTAP:
	{
		uint8 dir = map_calc_dir(src, bl->x, bl->y), t_dir = unit_getdir(bl);
		if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {
			status_change_end(src, SC_HIDING, INVALID_TIMER);
			skill_attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
		}
		else if (sd)
			clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
	}
	break;

Isn't working are you able to give a working copy for this one need it badly.

That would be awesome!

  • 0
Posted

i cant understand this where do i change it all and what should i do i need this script because the job rouge on my server when the player use backstab the player turning around towards to backstaber please help me also out thank you please provide step by step ^_^

 

thank you again

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