asamjawa
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by asamjawa
-
-
db/castle_db.txt | 2 ++ src/map/battle.c | 7 +++++++ src/map/battle.h | 1 + 3 files changed, 10 insertions(+) diff --git a/db/castle_db.txt b/db/castle_db.txt index 12e222e..29bca74 100644 --- a/db/castle_db.txt +++ b/db/castle_db.txt @@ -72,3 +72,5 @@ 31,arug_cas03,Horn,Manager#arug_cas03,1 // kRO : Horn 32,arug_cas04,Gefn,Manager#arug_cas04,1 // kRO : Gefn 33,arug_cas05,Bandis,Manager#arug_cas05,1 // kRO : Bandis + +100,guild_vs1,King of Emperium Hill,koe,1 \ No newline at end of file diff --git a/src/map/battle.c b/src/map/battle.c index 1a04aef..f461be3 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -5901,6 +5901,13 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f if( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; + if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) { + TBL_PC *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( script->add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) ) + return 0; + } + if ( s_bl->type == BL_PC ) { switch( t_bl->type ) { case BL_MOB: // Source => PC, Target => MOB diff --git a/src/map/battle.h b/src/map/battle.h index 0fcef72..8d93cac 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -7,6 +7,7 @@ #include "../common/cbasetypes.h" #include "map.h" //ELE_MAX +#include "mapreg.h" /** * Declarations
Sorry my English was really bad ... so the problem is when i'm applying this patch and compile i'm getting error on the console and the player still can hit/attack the emperium, is this the correct patch/code for rathena, cause i took it at Hercules forum or do i need to change it or modify it ?
-
I'm looking for latest KOE script not iv try annieruru but they still can hit the emperium. Anyone ?.
Latest and Working KOE.
in Script Requests
Posted · Edited by asamjawa
thanks and btw @AnnieRuru how to make it twice a week like tuesday and thursday start at 10 pm end at 11 pm sorry i am really newbie in scripting.
edit this is my script am i do it right is on tuesday and thursday start at 8.30 pm end on 9.30 am i doing it right ?