Jump to content
  • 0

Old Rogue Backstab


huntax

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  12/11/12
  • Last Seen:  

I need help making it so the player or monster does not turn around to face you.

What should i edit here?

 


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

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  12/11/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   1
  • Joined:  03/07/12
  • Last Seen:  

dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]

Replace


 

//dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  44
  • Reputation:   0
  • Joined:  12/11/12
  • Last Seen:  

dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]

Replace

 

//dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]

I'll try it thank you

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