Jump to content
  • 0

Back Stab All direction


Question

Posted

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

  • 0
Posted

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) {

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...