Bringer Posted September 16, 2016 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 745 Reputation: 47 Joined: 03/12/14 Last Seen: 11 hours ago Share Posted September 16, 2016 (edited) Working 99%But the Problem is Knockback issue Can anyone How to Remove the Knockback Problem ? #ifndef RENEWAL case NJ_ISSEN: #endif case MO_EXTREMITYFIST: { //struct block_list *mbl = bl; // For NJ_ISSEN //short x, y, i = 2; // Move 2 cells (From target) //short dir = map_calc_dir(src,bl->x,bl->y); skill_attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag); if (skill_id == MO_EXTREMITYFIST) { status_set_sp(src, 0, 0); status_change_end(src, SC_EXPLOSIONSPIRITS, INVALID_TIMER); status_change_end(src, SC_BLADESTOP, INVALID_TIMER); #ifdef RENEWAL sc_start(src,src,SC_EXTREMITYFIST2,100,skill_lv,skill_get_time(skill_id,skill_lv)); #endif } else { status_set_hp(src, 1, 0); status_change_end(src, SC_NEN, INVALID_TIMER); status_change_end(src, SC_HIDING, INVALID_TIMER); } //Client expects you to move to target regardless of distance //{ struct unit_data *ud = unit_bl2ud(src); short dx,dy; int i,speed; i = skill_id == MO_EXTREMITYFIST?1:2; //Move 2 cells for Issen, 1 for Asura dx = bl->x - src->x; dy = bl->y - src->y; if (dx < 0) dx-=i; else if (dx > 0) dx+=i; if (dy < 0) dy-=i; else if (dy > 0) dy+=i; if (!dx && !dy) dy++; if (map_getcell(src->m, src->x+dx, src->y+dy, CELL_CHKNOPASS)) { dx = bl->x; dy = bl->y; } else { dx = src->x + dx; dy = src->y + dy; } if(unit_walktoxy(src, dx, dy, 2) && ud) { //Increase can't walk delay to not alter your walk path ud->canmove_tick = tick; speed = status_get_speed(src); for (i = 0; i < ud->walkpath.path_len; i ++) { if(ud->walkpath.path[i]&1) ud->canmove_tick+=7*speed/5; else ud->canmove_tick+=speed; } } } break; Edited October 31, 2016 by Bringer Quote Link to comment Share on other sites More sharing options...
Question
Bringer
Working 99%
But the Problem is Knockback issue
Can anyone How to Remove the Knockback Problem ?
Link to comment
Share on other sites
0 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.