this src patch is working before but when I updated my hercules it has errors, I hope someone can help me out, thanks in advance
Index: battle.c===================================================================--- battle.c (revision 16921)+++ battle.c (working copy)@@ -5089,6 +5089,13 @@ if( (s_bl = battle_get_master(src)) == NULL ) s_bl = src;+ + if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {+ struct map_session_data *sd = BL_CAST(BL_PC, s_bl);+ if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&+ ( sd->status.guild_id == mapreg_readreg( add_str("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) )+ return 0;+ } if ( s_bl->type == BL_PC ) { switch( t_bl->type ) {Index: battle.h===================================================================--- battle.h (revision 16921)+++ battle.h (working copy)@@ -3,6 +3,7 @@ #ifndef _BATTLE_H_ #define _BATTLE_H_+#include "mapreg.h" // state of a single attack attempt; used in flee/def penalty calculations when mobbed typedef enum damage_lv {
Edit: Already Solved it
Index: battle.c===================================================================--- battle.c (revision 16921)+++ battle.c (working copy)@@ -5089,6 +5089,13 @@ if( (s_bl = battle_get_master(src)) == NULL ) s_bl = src;+ + if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {+ struct map_session_data *sd = BL_CAST(BL_PC, s_bl);+ if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&+ ( sd->status.guild_id == mapreg_readreg( add_str("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) )+ return 0;+ } if ( s_bl->type == BL_PC ) { switch( t_bl->type ) {Index: battle.h===================================================================--- battle.h (revision 16921)+++ battle.h (working copy)@@ -3,6 +3,7 @@ #ifndef _BATTLE_H_ #define _BATTLE_H_+#include "mapreg.h" // state of a single attack attempt; used in flee/def penalty calculations when mobbed typedef enum damage_lv {
Edit: Already Solved it
Last edited by a moderator: