Cydh Posted October 31, 2016 Posted October 31, 2016 As follow up of e7e8b54 and people's thought at Issue:#1404 Added config in conf/battle/skill.conf // Land Protector behavior // 0 : Officially, standing players at the border (outer cell) of the Land Protector is still can be affected/hit // by AoE skills (if the skills has splash effect, such Storm Gust). // 1 : Old Athena style, totally ignore AoE skill from outside Land Protector area. land_protector_behavior: 0 Try it now for FREE! Main branch Changes (against my fork master) Diff file Patch file 4 1 Quote
Deleted User Posted October 31, 2016 Posted October 31, 2016 Thank you so much Cydh. i've been looking for this that someone can released. Quote
Bringer Posted November 1, 2016 Posted November 1, 2016 (edited) Nice But Cydh i already add Custom Buffs ICON on my Server But i cant Add on land protector how to add Custom buffs icon on LP Like the Volcano / Deluge / Violent Gale ? Edited November 1, 2016 by Bringer Quote
Azeroth Posted November 1, 2016 Posted November 1, 2016 As follow up of e7e8b54 and people's thought at Issue:#1404 Added config in conf/battle/skill.conf // Land Protector behavior // 0 : Officially, standing players at the border (outer cell) of the Land Protector is still can be affected/hit // by AoE skills (if the skills has splash effect, such Storm Gust). // 1 : Old Athena style, totally ignore AoE skill from outside Land Protector area. land_protector_behavior: 0 Try it now for FREE! Main branch Changes (against my fork master) Diff file Patch file Would be nice if you could add like this? // Show Land Protector Icons Note: 1 lp_show_icons: no Quote
chitero666 Posted February 22, 2019 Posted February 22, 2019 On 10/31/2016 at 8:00 AM, Cydh said: As follow up of e7e8b54 and people's thought at Issue:#1404 Added config in conf/battle/skill.conf // Land Protector behavior // 0 : Officially, standing players at the border (outer cell) of the Land Protector is still can be affected/hit // by AoE skills (if the skills has splash effect, such Storm Gust). // 1 : Old Athena style, totally ignore AoE skill from outside Land Protector area. land_protector_behavior: 0 Try it now for FREE! Main branch Changes (against my fork master) Diff file Patch file does not work on client 2018 06 20 Quote
Mael Posted September 24, 2020 Posted September 24, 2020 (edited) 3 hours ago, Dev G Inc said: I tried this but i got these errors Your problem is in skill.cpp you must correct the 2 lines that you modified. Edited September 24, 2020 by Mael Quote
PsyOps Posted September 25, 2020 Posted September 25, 2020 (edited) 6 hours ago, Mael said: Your problem is in skill.cpp you must correct the 2 lines that you modified. Thanks @Mael. How would I correct it? I am still learning how to read source codes. Any help would be much appreciated. i am using an old trunk of rathena 972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb Edited September 25, 2020 by Dev G Inc Quote
Mael Posted September 25, 2020 Posted September 25, 2020 10 hours ago, Dev G Inc said: Thanks @Mael. How would I correct it? I am still learning how to read source codes. Any help would be much appreciated. i am using an old trunk of rathena 972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb Change this: https://github.com/rathena/rathena/blob/972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb/src/map/skill.cpp#L13386 To this: if( (skill_get_type(sg->skill_id) == BF_MAGIC && ((battle_config.land_protector_behavior) ? map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) : map_getcell(unit->bl.m, unit->bl.x, unit->bl.y, CELL_CHKLANDPROTECTOR)) && sg->skill_id != SA_LANDPROTECTOR) || and this: https://github.com/rathena/rathena/blob/972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb/src/map/skill.cpp#L18489 To this: if( !(skill_get_inf2(group->skill_id)&(INF2_SONG_DANCE|INF2_TRAP)) && !(skill_get_inf3(group->skill_id)&(INF3_NOLP)) && group->skill_id != NC_NEUTRALBARRIER && (battle_config.land_protector_behavior ? map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) : map_getcell(unit->bl.m, unit->bl.x, unit->bl.y, CELL_CHKLANDPROTECTOR)) ) 1 Quote
PsyOps Posted September 27, 2020 Posted September 27, 2020 (edited) On 9/25/2020 at 9:11 PM, Mael said: Change this: https://github.com/rathena/rathena/blob/972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb/src/map/skill.cpp#L13386 To this: if( (skill_get_type(sg->skill_id) == BF_MAGIC && ((battle_config.land_protector_behavior) ? map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) : map_getcell(unit->bl.m, unit->bl.x, unit->bl.y, CELL_CHKLANDPROTECTOR)) && sg->skill_id != SA_LANDPROTECTOR) || and this: https://github.com/rathena/rathena/blob/972a14e4ed3c2ae15f5acb60652cf0c3db1d0deb/src/map/skill.cpp#L18489 To this: if( !(skill_get_inf2(group->skill_id)&(INF2_SONG_DANCE|INF2_TRAP)) && !(skill_get_inf3(group->skill_id)&(INF3_NOLP)) && group->skill_id != NC_NEUTRALBARRIER && (battle_config.land_protector_behavior ? map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR) : map_getcell(unit->bl.m, unit->bl.x, unit->bl.y, CELL_CHKLANDPROTECTOR)) ) will try this thanks @Mael Update: Working thanks! Edited October 3, 2020 by Dev G Inc Quote
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.