Jump to content
  • 0

Disable Guild Creation


maynard

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

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

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

To accomplish this without using source just comment out the item_db entry for emperium and disable the command @guild.

Link to comment
Share on other sites


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

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 )

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  159
  • Reputation:   1
  • Joined:  12/21/11
  • Last Seen:  

Solved, sorry for the late reply.Thanks everyone.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

can you Share?

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