Jump to content
  • 0

help me Asura Skill in ra master version 2023


Question

Posted

Asura Miss i can't install  Error in sc.data and Body Relo same Error
+
+    if( skill_id == MO_EXTREMITYFIST && ((sd->spiritball == 0 && battle_config.asura_absorb_cast_cancel) || (!sd->sc.data[SC_EXPLOSIONSPIRITS] && battle_config.asura_dispell_cast_cancel)))
+    {
+        clif_skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
+        return 0;
+    }

 

Index: map/battle.c
===================================================================
--- map/battle.c    (revision 12410)
+++ map/battle.c    (working copy)
@@ -7799,6 +7799,9 @@
     { "idletime_option",                    &battle_config.idletime_option,                 0x25,   1,      INT_MAX,        },
     { "spawn_direction",                    &battle_config.spawn_direction,                 0,      0,      1,              },
     { "arrow_shower_knockback",             &battle_config.arrow_shower_knockback,          1,      0,      1,              },
+    { "asura_absorb_cast_cancel",           &battle_config.asura_absorb_cast_cancel,         1,     0,      1,              },
+    { "asura_dispell_cast_cancel",          &battle_config.asura_dispell_cast_cancel,        1,     0,      1,              },

 };
 #ifndef STATS_OPT_OUT
 /**
Index: map/battle.h
===================================================================
--- map/battle.h    (revision 12410)
+++ map/battle.h    (working copy)
@@ -568,6 +568,8 @@
     int idletime_option;
     int spawn_direction;
     int arrow_shower_knockback;
+    int asura_absorb_cast_cancel;
+    int asura_dispell_cast_cancel;
 } battle_config;
 
 void do_init_battle(void);
Index: map/skill.c
===================================================================
--- map/skill.c    (revision 12410)
+++ map/skill.c    (working copy)
@@ -14747,6 +14747,12 @@
         sd->spiritball_old = sd->spiritball; //Need to do Spiritball check.
         return true;
     }
+
+    if( skill_id == MO_EXTREMITYFIST && ((sd->spiritball == 0 && battle_config.asura_absorb_cast_cancel) || (!sd->sc.data[SC_EXPLOSIONSPIRITS] && battle_config.asura_dispell_cast_cancel)))
+    {
+        clif_skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
+        return 0;
+    }
 
     switch( sd->menuskill_id ) { // Cast start or cast end??
         case AM_PHARMACY:
 

image.png

1 answer to this question

Recommended Posts

  • 0
Posted (edited)

try this

skill.cpp

		if( sc && sc->data[SC_CURSEDCIRCLE_ATKER] ) //Should only remove after the skill has been casted.
			status_change_end(src,SC_CURSEDCIRCLE_ATKER,INVALID_TIMER);
		return 0; // not to consume item.

+	case MO_BODYRELOCATION:
+			if (battle_config.lock && sd && (sd->sc.data[SC_ANKLE] || sd->sc.data[SC_SPIDERWEB])) {
+				clif_skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
+				break;
+			}

Find

		skill_blown(src,bl,skill_get_blewcount(skill_id,skill_lv),unit_getdir(bl),(enum e_skill_blown)(BLOWN_IGNORE_NO_KNOCKBACK
#ifdef RENEWAL

ADD THIS ABOVE
+	case TF_BACKSLIDING: //This is the correct implementation as per packet logging information. [Skotlex]
+		if (battle_config.lock && sd && (sd->sc.data[SC_ANKLE] || sd->sc.data[SC_SPIDERWEB])) {
+			clif_skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
+			break;
+
+		}

battle.hpp

+	int lock;
#include "../custom/battle_config_struct.inc"
};

battle.cpp
+	{ "lock",                      &battle_config.lock,                   0,      0,      1,              },
#include "../custom/battle_config_init.inc"


trunk\conf\import\battle_conf.txt

+// If set to false, will not be enabled.)
+lock: true

i try this code i dont have any error
 

+	if (skill_id == MO_EXTREMITYFIST && ((sd->spiritball == 0 && battle_config.asura_absorb_cast_cancel) || (!sd->sc.data[SC_EXPLOSIONSPIRITS] && battle_config.asura_dispell_cast_cancel))) {
+		clif_skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);
+		return 0;
+	}
	switch( sd->menuskill_id ) {
		case AM_PHARMACY:

 

Edited by Bringer

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