maynard Posted January 7, 2012 Share Posted January 7, 2012 please help me how to disable creating a guild. I change the item requirement in guild.c and recompile but they still able to make a guild.I change this: if( battle_config.guild_emperium_check && pc_search_inventory(sd,714) == -1 ) {// item required clif_guild_created(sd,3); return 0; Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted January 7, 2012 Share Posted January 7, 2012 To accomplish this without using source just comment out the item_db entry for emperium and disable the command @guild. Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 8, 2012 Share Posted January 8, 2012 but...if comment out the item from item_db... it might lead to error message spamming in your mapconsole... because you disabled that item that might drop from monster.. perhaps you can do a little modification on the code ?? something like changing the item required to make guild...from Emperium to other UnObtainable items there... pc_search_inventory(sd,714) to this pc_search_inventory(sd,12345) change the value "12345" to other items ( it is just an example ) Quote Link to comment Share on other sites More sharing options...
Brian Posted January 8, 2012 Share Posted January 8, 2012 Also to add: if you only need to disable guild creation on 1 map (like for an event), you can use the guildlock mapflag. Mapflag#guildlock This will block changes to guild: /guild, invite, leave, expel, add/delete Alliance/Opposition, @changegm and /breakguild. Quote Link to comment Share on other sites More sharing options...
maynard Posted January 12, 2012 Author Share Posted January 12, 2012 Solved, sorry for the late reply.Thanks everyone. Quote Link to comment Share on other sites More sharing options...
ngek202 Posted January 21, 2012 Share Posted January 21, 2012 can you Share? 1 Quote Link to comment Share on other sites More sharing options...
please help me how to disable creating a guild. I change the item requirement in guild.c and recompile but they still able to make a guild.I change this:
if( battle_config.guild_emperium_check && pc_search_inventory(sd,714) == -1 ) {// item required clif_guild_created(sd,3); return 0;Link to comment
Share on other sites