Jump to content
  • 0

Backstab


Rain408

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   0
  • Joined:  05/23/15
  • Last Seen:  

Rogue/stalker skill backstab

I want to remove the monster/player rotation on backstab

How would I do that?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   0
  • Joined:  05/23/15
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

 

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!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

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

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