Jump to content
  • 0

Back Stab All direction


celeron0134

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   1
  • Joined:  12/13/16
  • Last Seen:  

Good day rathena.. how to change backstab so that you can use this any direction the enemy faces? 

tried editing

i tried and change to this

case RG_BACKSTAP:
{
         -int 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) {
         +if (!check_distance_bl(src, bl, 0) || bl->type == BL_SKILL) {
                   status_change_end(src, SC_HIDING, INVALID_TIMER);
                   skill_attack(BF_WEAPON, src, src, bl, skillid, skilllv, tick, flag);
                   -dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]
                   -unit_setdir(bl,dir);
         }
         else if (sd)
                   clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0);
         }
break;

but i got errors like the map server isnt running that i can't connect anymore..

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

try remove the direction checking ...

!map_check_dir(dir, t_dir) // <-- remove this checking

change

if ((!check_distance_bl(src, bl, 0) && !map_check_dir(dir, t_dir)) || bl->type == BL_SKILL) {

into

if (!check_distance_bl(src, bl, 0) || bl->type == BL_SKILL) {

 

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