celeron0134 Posted February 14, 2020 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
0 Emistry Posted March 16, 2020 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
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..
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.