Jump to content

@breakguild


clydelion

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

I would like to propose adding this to the svn as a quick alternative to /guildbreak, because guild names with spaces are not supported anymore on newer clients.

Index: atcommand.c
===================================================================
--- atcommand.c	(revision 16820)
+++ atcommand.c	(working copy)
@@ -8817,6 +8817,26 @@
 #undef MC_CART_MDFY
}

+/*==========================================
+ * works like /breakguild "<guild name>" (without the name though)
+ * This is needed for newer clients as an
+ * alternative to /guildbreak because support
+ * for " " in newer clients is dropped. [clydelion]
+ *------------------------------------------*/
+ACMD_FUNC(breakguild)
+{
+	struct guild *g;
+	nullpo_retr(-1, sd);
+
+	if (sd->status.guild_id == 0 || (g = guild_search(sd->status.guild_id)) == NULL || strcmp(g->master,sd->status.name)) {
+		clif_displaymessage(fd, "Only the guild leader can use this command.");
+		return -1;
+	}
+
+	guild_break(sd,g->name);
+	return 0;
+}
+
/**
 * Fills the reference of available commands in atcommand DBMap
 **/
@@ -8827,6 +8847,7 @@
  * Command reference list, place the base of your commands here
  **/
 AtCommandInfo atcommand_base[] = {
+		ACMD_DEF(breakguild),
	 ACMD_DEF2("warp", mapmove),
	 ACMD_DEF(where),
	 ACMD_DEF(jumpto),

breakguild.diff

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Agree!. :) I don't know if it is working or not, if working it would be nice to add it to the SVN. Keep it up Cheeeerrrss!

Edited by Rejected
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Agrees with this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

I also agree, been wondering why I failed at breaking guilds lol.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

if I recall correctly, you no longer need to use quotes when deleting/creating a guild when it got space :) (same for parties)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

if I recall correctly, you no longer need to use quotes when deleting/creating a guild when it got space :) (same for parties)

just tried creating a guild with a name having a space, failed.

I would like to propose adding this to the svn as a quick alternative to /guildbreak, because guild names with spaces are not supported anymore on newer clients.

Index: atcommand.c
===================================================================
--- atcommand.c	(revision 16820)
+++ atcommand.c	(working copy)
@@ -8817,6 +8817,26 @@
 #undef MC_CART_MDFY
}

+/*==========================================
+ * works like /breakguild "<guild name>" (without the name though)
+ * This is needed for newer clients as an
+ * alternative to /guildbreak because support
+ * for " " in newer clients is dropped. [clydelion]
+ *------------------------------------------*/
+ACMD_FUNC(breakguild)
+{
+	struct guild *g;
+	nullpo_retr(-1, sd);
+
+	if (sd->status.guild_id == 0 || (g = guild_search(sd->status.guild_id)) == NULL || strcmp(g->master,sd->status.name)) {
+		clif_displaymessage(fd, "Only the guild leader can use this command.");
+		return -1;
+	}
+
+	guild_break(sd,g->name);
+	return 0;
+}
+
/**
 * Fills the reference of available commands in atcommand DBMap
 **/
@@ -8827,6 +8847,7 @@
  * Command reference list, place the base of your commands here
  **/
 AtCommandInfo atcommand_base[] = {
+		ACMD_DEF(breakguild),
	 ACMD_DEF2("warp", mapmove),
	 ACMD_DEF(where),
	 ACMD_DEF(jumpto),

had a somewhat similar mod with this one from earlier this year in this post.

and I +1 to this too.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Also agreed.

  • Upvote 1
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

Added in r17038, code is not the most optimized but it is well documented and explanatory.

Link to comment
Share on other sites

×
×
  • Create New...