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

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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