huntax Posted March 23, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 44 Reputation: 0 Joined: 12/11/12 Last Seen: May 3, 2013 Share Posted March 23, 2013 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; Quote Link to comment Share on other sites More sharing options...
huntax Posted March 24, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 44 Reputation: 0 Joined: 12/11/12 Last Seen: May 3, 2013 Author Share Posted March 24, 2013 bump Quote Link to comment Share on other sites More sharing options...
Altimage Posted March 24, 2013 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 96 Reputation: 1 Joined: 03/07/12 Last Seen: January 19, 2023 Share Posted March 24, 2013 dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest]Replace //dir = dir < 4 ? dir+4 : dir-4; // change direction [Celest] Quote Link to comment Share on other sites More sharing options...
huntax Posted March 24, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 44 Reputation: 0 Joined: 12/11/12 Last Seen: May 3, 2013 Author Share Posted March 24, 2013 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 Quote Link to comment Share on other sites More sharing options...
Question
huntax
I need help making it so the player or monster does not turn around to face you.
What should i edit here?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.