Famous Posted February 26, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share Posted February 26, 2013 can I request Earthquake skill cannot bypass land protection Quote Link to comment Share on other sites More sharing options...
Famous Posted March 3, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted March 3, 2013 bump Quote Link to comment Share on other sites More sharing options...
Lighta Posted March 6, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted March 6, 2013 well it's a targeted skill that why it bypass LP, but here a quick way to do what u asked : --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -3933,13 +3933,13 @@ break; skill_attack(BF_MAGIC,src,src,bl,skill_id,skill_lv,tick,flag); break; - + case WZ_EARTHSPIKE: + if(map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR)) break; case MG_SOULSTRIKE: case NPC_DARKSTRIKE: case MG_COLDBOLT: case MG_FIREBOLT: case MG_LIGHTNINGBOLT: - case WZ_EARTHSPIKE: we checking if target standing on LP, if so we prevent continuing trouht, so he's protected. Quote Link to comment Share on other sites More sharing options...
Famous Posted March 8, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted March 8, 2013 thanks but this is for EARTHSPIKE not for Earthquake skill I'm using NPC_EARTHQUAKE,Earthquake Quote Link to comment Share on other sites More sharing options...
kamikaze666 Posted March 9, 2013 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 92 Reputation: 8 Joined: 01/11/13 Last Seen: September 29, 2015 Share Posted March 9, 2013 i was wondering if this can be accomplished adding 0x2000 (inf2) in skill_db.txt Quote Link to comment Share on other sites More sharing options...
Famous Posted March 12, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted March 12, 2013 done!! Quote Link to comment Share on other sites More sharing options...
Lighta Posted March 12, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted March 12, 2013 @kamikaze666, unfortunatly no, but I think you mistunderstand, he want NPC_EARTHQUAKE to NOT bypass LP, setting this inf2 would have done just the contrary. But even so setting this inf2 will only work for AoE (skill_unit) skill, wich ain't coded like that for NPC_EARTHQUAKE, it's targeted on a zone. (weird ? ye I know). zhen said done but didn't provide it's solution wich is sad but I believe it could be done like this. @zhen yup sorry diN,t get wich skill you wanted. --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -3892,7 +3892,7 @@ sflag |= SD_LEVEL; // -1 will be used in packets instead of the skill level if( skill_area_temp[1] != bl->id && !(skill_get_inf2(skill_id)&INF2_NPC_SKILL) ) sflag |= SD_ANIMATION; // original target gets no animation (as well as all NPC skills) - + if(skill_id == NPC_EARTHQUAKE && map_getcell(bl->m, bl->x, bl->y, CELL_CHKLANDPROTECTOR)) break; //avoid damage heal = skill_attack(skill_get_type(skill_id), src, src, bl, skill_id, skill_lv, tick, sflag); if( skill_id == NPC_VAMPIRE_GIFT && heal > 0 ) { clif_skill_nodamage(NULL, src, AL_HEAL, heal, 1); Quote Link to comment Share on other sites More sharing options...
Question
Famous
can I request Earthquake skill cannot bypass land protection
Link to comment
Share on other sites
6 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.