Jump to content
  • 0

Can I request Earthquake skill cannot bypass land protection


Question

6 answers to this question

Recommended Posts

Posted

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.
Posted

@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);

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...