Green Posted October 5, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 04/28/13 Last Seen: November 4, 2022 Share Posted October 5, 2013 anyone has a script King of Emperium? compatible w/ eathena svn? i already test AnnieRuru script but the emperium can still attack even if the castle or emperium is yours Quote Link to comment Share on other sites More sharing options...
Sanasol Posted October 5, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 185 Reputation: 53 Joined: 01/04/12 Last Seen: February 28 Share Posted October 5, 2013 need some edit for src(battle.c), to fix it, how edit depends on script Quote Link to comment Share on other sites More sharing options...
Green Posted October 6, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 04/28/13 Last Seen: November 4, 2022 Author Share Posted October 6, 2013 (edited) Do i Paste This one? or i Replace? Index: battle.c =================================================================== --- battle.c (revision 14826) +++ battle.c (working copy) @@ -3341,6 +3341,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("$koegid") ) || battle_getcurrentskill(src) > 0 ) ) + return 0; + } + switch( target->type ) { // Checks on actual target case BL_PC: Index: battle.h =================================================================== --- battle.h (revision 14826) +++ 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 { Edited October 6, 2013 by Patskie Change to code Quote Link to comment Share on other sites More sharing options...
Sanasol Posted October 6, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 185 Reputation: 53 Joined: 01/04/12 Last Seen: February 28 Share Posted October 6, 2013 add lines with ''+'' at begin, then remove '+' and compile Quote Link to comment Share on other sites More sharing options...
Question
Green
anyone has a script King of Emperium? compatible w/ eathena svn?
i already test AnnieRuru script but the emperium can still attack even if the castle or emperium is yours
Link to comment
Share on other sites
3 answers 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.