Jump to content
  • 0

@guild - Check Emperium before creating a Guild


Question

Posted (edited)

Hello!

 

Since, /guild and alt+g guild create shows messages like "That Guild Name already exists." I've given @guild command to group level 0(normal characters).

 

When they use @guild and have an emperium in their inventory, the emperium gets consumed. But, they're also able to create guild using @guild without the need of an emperium. I dont want them to create a guild without emperium. Anyone knows how to change this?

Edited by Veracious

11 answers to this question

Recommended Posts

Posted (edited)

Its working, thanks Kichi!

 

trunk\src\map\atcommand.c

 

Changed battle_config.guild_emperium_check = 0; to battle_config.guild_emperium_check = 1;

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, msg_txt(sd,1030)); // Please enter a guild name (usage: @guild <guild_name>).
        return -1;
    }

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

    return 0;
}
Edited by Veracious
Posted

make sure you didnt add spaces / special characters into the guild name....

new client doesnt allow spaces in guild name during guild creation

Posted

make sure you didnt add spaces / special characters into the guild name....

new client doesnt allow spaces in guild name during guild creation

 

/guild and alt+g always give the message "That Guild Name already exists." even if i dont use space while creating guild, this is why i am using @guild. I also edited client by hexing to allow space usage while creating guild.

 

So, now the only problem is @guild emperium requirement, let me clarify - if emperium is in inventory - it gets consumed and guild is created, if emperium is not in inventory - still players are able to make guild, i want them to make guild only when they have emperium using @guild.

Posted

@guild The Name not "The Name" and no extra sign z,b , . - ~ ( / usw.

 

Hello!

 

I can create guild successfully already, please check my last post i've said twice what i actually want.

Posted

@guild is atcommand so it will by pass the emperium

use the client and patcher HERE his patcher able to allow you create a guild with/without space

 

I have already hexed the client 8-10 times and i can't really recall what all those hexes. Can we make it like @guild failed if no emperium in inventory? Already it consumes Emperium if its there in the inventory, is there any way to make the command fail if an emperium is not present in the invent?

Posted

why i can then you can't?

 

try this client HERE

it allow you to create guild with space

 

how to create guild?

/guild "guild name" /x

 

alt + g -> input name -> click ok /oh


replace with 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, msg_txt(sd,1030)); // Please enter a guild name (usage: @guild <guild_name>).
		return -1;
	}

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

	return 0;
}

  • Upvote 1

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