Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: battle.c
- ===================================================================
- --- battle.c (revision 16767)
- +++ battle.c (working copy)
- @@ -5121,7 +5121,7 @@
- {
- struct mob_data *md = BL_CAST(BL_MOB, t_bl);
- - if( !((agit_flag || agit2_flag) && map[m].flag.gvg_castle) && md->guardian_data && md->guardian_data->guild_id )
- + if( !((agit_flag || agit2_flag || koe_flag) && map[m].flag.gvg_castle) && md->guardian_data && md->guardian_data->guild_id )
- return 0; // Disable guardians/emperiums owned by Guilds on non-woe times.
- break;
- }
- @@ -5184,7 +5184,7 @@
- case BL_MOB:
- {
- struct mob_data *md = BL_CAST(BL_MOB, s_bl);
- - if( !((agit_flag || agit2_flag) && map[m].flag.gvg_castle) && md->guardian_data && md->guardian_data->guild_id )
- + if( !((agit_flag || agit2_flag || koe_flag) && map[m].flag.gvg_castle) && md->guardian_data && md->guardian_data->guild_id )
- return 0; // Disable guardians/emperium owned by Guilds on non-woe times.
- if( !md->special_state.ai )
- Index: map.c
- ===================================================================
- --- map.c (revision 16767)
- +++ map.c (working copy)
- @@ -125,6 +125,8 @@
- int agit2_flag = 0;
- int night_flag = 0; // 0=day, 1=night [Yor]
- +int koe_flag = 0; // Emistry's koe_toggle
- +
- struct charid_request {
- struct charid_request* next;
- int charid;// who want to be notified of the nick
- Index: map.h
- ===================================================================
- --- map.h (revision 16767)
- +++ map.h (working copy)
- @@ -600,6 +600,7 @@
- extern int agit_flag;
- extern int agit2_flag;
- extern int night_flag; // 0=day, 1=night [Yor]
- +extern int koe_flag; // koe_toggle [Emistry]
- extern int enable_spy; //Determines if @spy commands are active.
- extern char db_path[256];
- Index: script.c
- ===================================================================
- --- script.c (revision 16767)
- +++ script.c (working copy)
- @@ -16958,7 +16958,22 @@
- return 0;
- }
- +/* ===================
- + * Toggle KOE System
- + * koe_toggle(0); => disable koe
- + * koe_toggle(1); => enable koe
- + * =================== */
- +BUILDIN_FUNC(koe_toggle) {
- + if( script_getnum(st,2) ){
- + koe_flag = 1;
- + }else{
- + koe_flag = 0;
- + }
- + script_pushint(st, koe_flag);
- +
- + return 0;
- +}
- +
- +
- // declarations that were supposed to be exported from npc_chat.c
- #ifdef PCRE_SUPPORT
- BUILDIN_FUNC(defpattern);
- @@ -17397,6 +17412,7 @@
- BUILDIN_DEF(get_revision,""),
- BUILDIN_DEF(freeloop,"i"),
- BUILDIN_DEF(getrandgroupitem, "ii"),
- + BUILDIN_DEF(koe_toggle,"i"),
- /**
- * @commands (script based)
- **/
Add Comment
Please, Sign In to add comment