smallpop Posted July 2, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 2 Reputation: 0 Joined: 07/26/22 Last Seen: December 16, 2023 Share Posted July 2, 2023 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: Quote Link to comment Share on other sites More sharing options...
0 Bringer Posted July 3, 2023 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 745 Reputation: 47 Joined: 03/12/14 Last Seen: 9 hours ago Share Posted July 3, 2023 (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 July 4, 2023 by Bringer Quote Link to comment Share on other sites More sharing options...
Question
smallpop
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:
Link to comment
Share on other sites
1 answer 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.