Total 0 Posted November 27, 2016 Hello, I want to make it so any account that has group_id = 1 not able to join or create a guild. Is there a setting already available for this? if not how can i make this happen? Your help is much appreciated. Quote Share this post Link to post Share on other sites
0 Easycore 31 Posted November 28, 2016 In clif.c Find: void clif_parse_CreateGuild(int fd,struct map_session_data *sd) { char name[NAME_LENGTH]; safestrncpy(name, RFIFOP(fd,6), NAME_LENGTH); if(map->list[sd->bl.m].flag.guildlock) { clif->message(fd, msg_fd(fd,228)); // Guild modification is disabled in this map. return; } guild->create(sd, name); } And replace for: void clif_parse_CreateGuild(int fd,struct map_session_data *sd) { char name[NAME_LENGTH]; safestrncpy(name, RFIFOP(fd,6), NAME_LENGTH); if(sd->group_id == 1){ clif->message(fd, "You cannot create a Guild."); return; } if(map->list[sd->bl.m].flag.guildlock) { clif->message(fd, msg_fd(fd,228)); // Guild modification is disabled in this map. return; } guild->create(sd, name); } Quote Share this post Link to post Share on other sites
0 Total 0 Posted November 28, 2016 Thank you, works perfect. How about the joining guilds? can i make it so players cannot invite group_id = 1 players to their guild? Quote Share this post Link to post Share on other sites
0 Easycore 31 Posted November 29, 2016 (edited) Thank you, works perfect. How about the joining guilds? can i make it so players cannot invite group_id = 1 players to their guild? Inc clif.c Find: bool clif_sub_guild_invite(int fd, struct map_session_data *sd, struct map_session_data *t_sd) { if ( t_sd == NULL )// not online or does not exist return false; nullpo_retr(false, sd); nullpo_retr(false, t_sd); if ( map->list[sd->bl.m].flag.guildlock ) { clif->message(fd, msg_fd(fd,228)); // Guild modification is disabled in this map. return false; } if (t_sd->state.noask) {// @noask [LuzZza] clif->noask_sub(sd, t_sd, 2); return false; } guild->invite(sd,t_sd); return true; } Replace for: bool clif_sub_guild_invite(int fd, struct map_session_data *sd, struct map_session_data *t_sd) { if ( t_sd == NULL )// not online or does not exist return false; nullpo_retr(false, sd); nullpo_retr(false, t_sd); if ( map->list[sd->bl.m].flag.guildlock ) { clif->message(fd, msg_fd(fd,228)); // Guild modification is disabled in this map. return false; } if(sd->group_id == 1){ clif->message(fd, "You cannot create a Guild."); return false; } if (t_sd->state.noask) {// @noask [LuzZza] clif->noask_sub(sd, t_sd, 2); return false; } guild->invite(sd,t_sd); return true; } Edited November 29, 2016 by Easycore Quote Share this post Link to post Share on other sites
0 Total 0 Posted November 29, 2016 Perfect thanks, Was missing the closing } but all working other than that. Much appreciated. Quote Share this post Link to post Share on other sites
Hello,
I want to make it so any account that has group_id = 1 not able to join or create a guild.
Is there a setting already available for this? if not how can i make this happen?
Your help is much appreciated.
Share this post
Link to post
Share on other sites