Famous Posted February 26, 2013 Posted February 26, 2013 can I request Earthquake skill cannot bypass land protection Quote
Lighta Posted March 6, 2013 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
Famous Posted March 8, 2013 Author Posted March 8, 2013 thanks but this is for EARTHSPIKE not for Earthquake skill I'm using NPC_EARTHQUAKE,Earthquake Quote
kamikaze666 Posted March 9, 2013 Posted March 9, 2013 i was wondering if this can be accomplished adding 0x2000 (inf2) in skill_db.txt Quote
Lighta Posted March 12, 2013 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
Question
Famous
can I request Earthquake skill cannot bypass land protection
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.