Jump to content
  • 0

Script to disable Guild Break and Guild Leader Change during WoE


Question

2 answers to this question

Recommended Posts

  • 1
Posted (edited)

conf/battle/guild.conf 

// Is changing the guild leader allowed during WoE?
// Default: no
guild_leaderchange_woe: no 


In /src/map/clif.cpp
search for 
void clif_parse_GuildBreak(int fd, struct map_session_data *sd)

 

void clif_parse_GuildBreak(int fd, struct map_session_data *sd)
{
	if( map_getmapflag(sd->bl.m, MF_GUILDLOCK) ) { //Guild locked.
		clif_displaymessage(fd, msg_txt(sd,228));
		return;
	}
	guild_break(sd,RFIFOCP(fd,packet_db[RFIFOW(fd,0)].pos[0]));
}

Change to 
 

void clif_parse_GuildBreak(int fd, struct map_session_data *sd)
{
    if( map_getmapflag(sd->bl.m, MF_GUILDLOCK) ) { //Guild locked.
        clif_displaymessage(fd, msg_txt(sd,228));
        return;
    }
    if (agit_flag || agit2_flag)
{
    clif_displaymessage(fd, "You can't break guild during WoE.");
    return;
}
    guild_break(sd,RFIFOCP(fd,packet_db[RFIFOW(fd,0)].pos[0]));
}

 

Edited by Pride
  • Upvote 2
  • 0
Posted
4 hours ago, Pride said:

conf/battle/guild.conf 

// Is changing the guild leader allowed during WoE?
// Default: no
guild_leaderchange_woe: no 


In /src/map/clif.cpp
search for 
void clif_parse_GuildBreak(int fd, struct map_session_data *sd)

 

void clif_parse_GuildBreak(int fd, struct map_session_data *sd)
{
	if( map_getmapflag(sd->bl.m, MF_GUILDLOCK) ) { //Guild locked.
		clif_displaymessage(fd, msg_txt(sd,228));
		return;
	}
	guild_break(sd,RFIFOCP(fd,packet_db[RFIFOW(fd,0)].pos[0]));
}

Change to 
 

void clif_parse_GuildBreak(int fd, struct map_session_data *sd)
{
    if( map_getmapflag(sd->bl.m, MF_GUILDLOCK) ) { //Guild locked.
        clif_displaymessage(fd, msg_txt(sd,228));
        return;
    }
    if (agit_flag || agit2_flag)
{
    clif_displaymessage(fd, "You can't break guild during WoE.");
    return;
}
    guild_break(sd,RFIFOCP(fd,packet_db[RFIFOW(fd,0)].pos[0]));
}

 

Thanks! I'll try this out.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...