Sallycantdance Posted October 25, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 2 hours ago Share Posted October 25, 2022 (edited) hello i would like to ask is there any script how to disable body relocation in an npc coordinates or npc location so that they cant cover the npc thanks in advance Edited October 25, 2022 by GM Winter Quote Link to comment Share on other sites More sharing options...
1 RagEmp Posted October 25, 2022 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 10 Reputation: 3 Joined: 10/21/22 Last Seen: January 21, 2023 Share Posted October 25, 2022 (edited) 7 hours ago, GM Winter said: hello i would like to ask is there any script how to disable body relocation in an npc coordinates or npc location so that they cant cover the npc thanks in advance Go to skill.cpp and do this: case MO_BODYRELOCATION: + if ( map_count_oncell(src->m,x,y,BL_NPC,0) ) { + clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); + return 0; + } if (unit_movepos(src, x, y, 2, 1)) { #if PACKETVER >= 20111005 clif_snap(src, src->x, src->y); Dont forget to recompile Edited October 25, 2022 by RagEmp 3 Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted October 25, 2022 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 2 hours ago Author Share Posted October 25, 2022 7 hours ago, RagEmp said: Go to skill.cpp and do this: case MO_BODYRELOCATION: + if ( map_count_oncell(src->m,x,y,BL_NPC,0) ) { + clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); + return 0; + } if (unit_movepos(src, x, y, 2, 1)) { #if PACKETVER >= 20111005 clif_snap(src, src->x, src->y); Dont forget to recompile thank you sir 100% working Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
hello i would like to ask is there any script how to disable body relocation in an npc coordinates or npc location so that they cant cover the npc thanks in advance
Edited by GM WinterLink 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.