clydelion Posted December 3, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted December 3, 2012 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 2 Link to comment Share on other sites More sharing options...
Sryx Posted December 3, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 520 Reputation: 64 Joined: 11/19/11 Last Seen: October 19, 2024 Share Posted December 3, 2012 (edited) 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 December 3, 2012 by Rejected Link to comment Share on other sites More sharing options...
Joseph Posted December 3, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted December 3, 2012 Agrees with this. Link to comment Share on other sites More sharing options...
GmOcean Posted December 3, 2012 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted December 3, 2012 I also agree, been wondering why I failed at breaking guilds lol. Link to comment Share on other sites More sharing options...
EvilPuncker Posted December 3, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted December 3, 2012 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 More sharing options...
Jhedzkie Posted December 3, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 298 Reputation: 15 Joined: 11/17/11 Last Seen: February 18 Share Posted December 3, 2012 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 More sharing options...
Euphy Posted December 3, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted December 3, 2012 Also agreed. 1 Link to comment Share on other sites More sharing options...
lekkereten Posted December 23, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 148 Reputation: 46 Joined: 11/02/11 Last Seen: November 25, 2024 Share Posted December 23, 2012 Added in r17038, code is not the most optimized but it is well documented and explanatory. Link to comment Share on other sites More sharing options...
Recommended Posts