Jump to content
  • 0

Script to disable Guild Break and Guild Leader Change during WoE


shockwar14

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  67
  • Reputation:   0
  • Joined:  04/19/13
  • Last Seen:  

Hi Guys,

 

Can I request for a script that prevent players from breaking their guild and changing guild leader during WoE.

 

Thanks in advance!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   11
  • Joined:  11/17/20
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  67
  • Reputation:   0
  • Joined:  04/19/13
  • Last Seen:  

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.

Link to comment
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.   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.

×
×
  • Create New...