Jump to content
  • 0

@guild - Check Emperium before creating a Guild


Veracious

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

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
Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

new client doesnt allow spaces in guild name during guild creation

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump


bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

@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
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

@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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

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