celeron0134 Posted February 14, 2020 Group: Members Topic Count: 66 Topics Per Day: 0.02 Content Count: 194 Reputation: 1 Joined: 12/13/16 Last Seen: February 14, 2023 Share Posted February 14, 2020 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.. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted March 16, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted March 16, 2020 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) { Quote Link to comment Share on other sites More sharing options...
Question
celeron0134
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.