keough Posted February 20, 2019 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 49 Reputation: 45 Joined: 07/01/12 Last Seen: Monday at 02:07 AM Share Posted February 20, 2019 Hello guys? Anyone can do this? Like when you ice wall a long range monster it will not attack you since you are behind the ICE WALL, Help please. Thank you and God Bless Quote Link to comment Share on other sites More sharing options...
1 AnnieRuru Posted February 21, 2019 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 21, 2019 src/map/skill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 1864faeec..92a79e3e9 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -18026,8 +18026,8 @@ struct skill_unit *skill_initunit(struct skill_unit_group *group, int idx, int x // Perform oninit actions switch (group->skill_id) { case WZ_ICEWALL: - map_setgatcell(unit->bl.m,unit->bl.x,unit->bl.y,5); - clif_changemapcell(0,unit->bl.m,unit->bl.x,unit->bl.y,5,AREA); + map_setgatcell(unit->bl.m,unit->bl.x,unit->bl.y,1); + clif_changemapcell(0,unit->bl.m,unit->bl.x,unit->bl.y,1,AREA); skill_unitsetmapcell(unit,WZ_ICEWALL,group->skill_lv,CELL_ICEWALL,true); break; case SA_LANDPROTECTOR: answer is change gat type 5 into gat type 1 because the map_get2cell function say so .. in src\map\map.cpp // gat system inline static struct mapcell map_gat2cell(int gat) { struct mapcell cell; memset(&cell,0,sizeof(struct mapcell)); switch( gat ) { case 0: cell.walkable = 1; cell.shootable = 1; cell.water = 0; break; // walkable ground case 1: cell.walkable = 0; cell.shootable = 0; cell.water = 0; break; // non-walkable ground case 2: cell.walkable = 1; cell.shootable = 1; cell.water = 0; break; // ??? case 3: cell.walkable = 1; cell.shootable = 1; cell.water = 1; break; // walkable water case 4: cell.walkable = 1; cell.shootable = 1; cell.water = 0; break; // ??? case 5: cell.walkable = 0; cell.shootable = 1; cell.water = 0; break; // gap (snipable) case 6: cell.walkable = 1; cell.shootable = 1; cell.water = 0; break; // ??? default: ShowWarning("map_gat2cell: unrecognized gat type '%d'\n", gat); break; } return cell; } 1 Quote Link to comment Share on other sites More sharing options...
Question
keough
Hello guys?
Anyone can do this? Like when you ice wall a long range monster it will not attack you since you are behind the ICE WALL, Help please.
Thank you and God Bless
Link to comment
Share on other sites
1 answer 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.