Jump to content
  • 0
Sign in to follow this  
Shatowolf

KoE hitting Emperium Not Compatible to Hercules

Question

KoE hitting Emperium Not Compatible to Hercules

 

 

any fix/compatible at hercules?

 

thanks.

 

 

Here's the code that working at rAthena

 

 

Index: battle.c===================================================================--- battle.c	(revision 16817)+++ battle.c	(working copy)@@ -5021,6 +5021,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 ) { 			case BL_MOB: // Source => PC, Target => MOBIndex: battle.h===================================================================--- battle.h	(revision 16817)+++ 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 {

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

 

KoE hitting Emperium Not Compatible to Hercules

 

 

any fix/compatible at hercules?

 

thanks.

 

 

Here's the code that working at rAthena

 

 

Index: battle.c===================================================================--- battle.c	(revision 16817)+++ battle.c	(working copy)@@ -5021,6 +5021,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 ) { 			case BL_MOB: // Source => PC, Target => MOBIndex: battle.h===================================================================--- battle.h	(revision 16817)+++ 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 {

add_str  change it to script->add_str

http://herc.ws/board/topic/1856-solved-koe-patch/

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.