Jump to content
  • 0

Can I request Earthquake skill cannot bypass land protection


Famous

Question


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

can I request Earthquake skill cannot bypass land protection

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

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.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

thanks but this is for EARTHSPIKE not for Earthquake skill



I'm using NPC_EARTHQUAKE,Earthquake

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  92
  • Reputation:   8
  • Joined:  01/11/13
  • Last Seen:  

i was wondering if this can be accomplished adding 0x2000 (inf2) in skill_db.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

done!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

@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);
Link to comment
Share on other sites

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.

×
×
  • Create New...