Hello community, I would like to change the skill TK_HIGHJUMP in src skill.cpp to work on maps like PvP / GvG and WoE.
The formula is this:
case TK_HIGHJUMP:{int x,y, dir = unit_getdir(src);//Fails on noteleport maps, except for GvG and BG maps [Skotlex]if( map_getmapflag(src->m, MF_NOTELEPORT)&&!(map_getmapflag(src->m, MF_BATTLEGROUND)|| map_flag_gvg2(src->m))){
x = src->x;
y = src->y;}elseif(dir%2){//Diagonal
x = src->x + dirx[dir]*(skill_lv*4)/3;
y = src->y + diry[dir]*(skill_lv*4)/3;}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,x,y,CELL_CHKREACH)&& unit_movepos(src, x, y,1,0))
clif_blown(src);}
thanks in advance if anyone can make this change for me
Question
IsabelaFernandez
Hello community, I would like to change the skill TK_HIGHJUMP in src skill.cpp to work on maps like PvP / GvG and WoE.
The formula is this:
thanks in advance if anyone can make this change for me
Edited by TheDerpySupportLink to comment
Share on other sites
2 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.