Jump to content
  • 0

party/guild names with spaces doesnt work anymore?


Question

Posted (edited)

i tried using /organize "ha ha ha" but it would say invalid name. is there an option to allow spaces in party names again?

it also happens when im trying to make a guild.

Edited by sizenine

13 answers to this question

Recommended Posts

Posted

i think that double quotation mark is disabled in new client....

because kro already removed it

Yeah, that's what I was thinking.

I'm on r15627, client 2012-02-07

Posted

For the meantime you can use @guild / @party.

They still work as intended, but there is 1 drawback.

Disbanding a guild would be somewhat impossible, not unless someone decides to make a "@breakguild" mod too.

Posted

Here is the breakguild command:

@guildbreak - only the game master can break the guild

find:

ACMD_FUNC(guild)

add the code below the function

ACMD_FUNC(guildbreak)
{
struct guild *g;
nullpo_retr(-1,sd);
g=guild_search(sd->status.guild_id);
if(g==NULL)
{
 clif_displaymessage(fd, "You dont have a guild.");
 return -1;
}
if (strcmp(g->master, sd->status.name) != 0)
{
 clif_displaymessage(fd, "Only the guild master can break this guild.");
 return -1;
}
//Verified that the player is the guild master.
guild_broken(g->guild_id,0);
return 0;
}

The result looks like this:


ACMD_FUNC(guild)
{
char guild[NAME_LENGTH];
int prev;
nullpo_retr(-1, sd);

memset(guild, '0', sizeof(guild));

if (!message || !*message || sscanf(message, "%23[^n]", guild) < 1) {
clif_displaymessage(fd, "Please, enter a guild name (usage: @guild <guild_name>).");
return -1;
}

prev = battle_config.guild_emperium_check;
battle_config.guild_emperium_check = 0;
guild_create(sd, guild);
battle_config.guild_emperium_check = prev;

return 0;
}

ACMD_FUNC(guildbreak)
{

struct guild *g;
nullpo_retr(-1,sd);

g=guild_search(sd->status.guild_id);

if(g==NULL)
{
clif_displaymessage(fd, "You dont have a guild.");
return -1;
}

if (strcmp(g->master, sd->status.name) != 0)
{
clif_displaymessage(fd, "Only the guild master can break this guild.");
return -1;

}

//Verified that the player is the guild master.
guild_broken(g->guild_id,0);
return 0;

}


then now find:

 ACMD_DEF(guild),

add below:

  ACMD_DEF(guildbreak),//JayPee

The result looks like this:



 ACMD_DEF(guild),
  ACMD_DEF(guildbreak),//JayPee

Now recompile your server.

  • Upvote 1
Posted

i noticed a bug with your @guildbreak command. when you use the @guildbreak, the guild does not get deleted from the database. with the regular /breakguild, it gets deleted immediately and you can remake the same guild name right away.

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