Jump to content
  • 0
Sign in to follow this  
testconta

Skill pvp

Question

 

Hello friends, I would like to know how to activate the Leap skill in pvp and woe, when I use it, it jumps and stays in the same place, it does not advance any cells forward

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

go to your skill.c 

look for 
    

        case TK_HIGHJUMP:
            {
                int x,y, dir = unit->getdir(src);

                //Fails on noteleport maps, except for GvG and BG maps [Skotlex]
                if( map->list[src->m].flag.noteleport
                 && !(map->list[src->m].flag.battleground || map_flag_gvg2(src->m))
                ) {
                    x = src->x;
                    y = src->y;
                } else {
                    x = src->x + dirx[dir]*skill_lv*2;
                    y = src->y + diry[dir]*skill_lv*2;
                }

                clif->skill_nodamage(src,bl,TK_HIGHJUMP,skill_lv,1);
                if (!map->count_oncell(src->m, x, y, BL_PC | BL_NPC | BL_MOB, 0) && map->getcell(src->m, src, x, y, CELL_CHKREACH)) {
                    clif->slide(src,x,y);
                    unit->movepos(src, x, y, 1, 0);
                }
            }
            break;

You can probably erase this entire section: 

Quote

if( map->list[src->m].flag.noteleport
                 && !(map->list[src->m].flag.battleground || map_flag_gvg2(src->m))
                ) {
                    x = src->x;
                    y = src->y;
                }

 

or maybe just erase the flag.battleground

 

then recompile 

 

Not sure exactly and not gonna test it myself but its one of these

Edited by lllaaazzz

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.