Jump to content
  • 0

/breakguild


jayrick213

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  01/10/12
  • Last Seen:  

Hello how to disable /breakguild during woe.. or how to disable the command? thanks in advance..

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   23
  • Joined:  01/30/12
  • Last Seen:  

Edit the file src/map/guild.c

In the below function

int guild_break(struct map_session_data *sd,char *name)

After

	nullpo_ret(sd);

Add

	// Cannot break guild during Guild Wars!	if(agit_flag || agit2_flag)	{		clif_displaymessage(sd->fd,"Guilds cannot be broken during Guild Wars!");		return 0;	}

Save the file and recompile your src (also restart your server).

Add it in this function too

int guild_broken(int guild_id,int flag)

Below

	if(flag!=0 || g==NULL)		return 0;

Add

	// Cannot break guild during Guild Wars!	if(agit_flag || agit2_flag)	{		clif_displaymessage(sd->fd,"Guilds cannot be broken during Guild Wars!");		return 0;	}

It should work now :)

Edited by Emistry
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  01/10/12
  • Last Seen:  

nothing happend?


how to disable /breakguild command?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  01/10/12
  • Last Seen:  

its working now thanks sir..

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...