Jump to content
  • 0

how to disable this?


eboni001

Question


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

hey guys i have a guild creator npc in my server with some requirements but people still can creating guild using /guild "Guild Name" can somebody please explain detailed how to disable this? newbie question here.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


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

In src/map/guild.c

 

on line 389:

 

    if( sd->status.guild_id )
    {// already in a guild
        clif_guild_created(sd,1);
        return 0;
    }
    if( battle_config.guild_emperium_check && pc_search_inventory(sd,714) == -1 )
    {// item required
 

714 is Emperium you can replace that so every time they try /guild it won't work because the item requied is different replace it with some not used.

then recompile.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

In src/map/guild.c

 

on line 389:

 

    if( sd->status.guild_id )
    {// already in a guild
        clif_guild_created(sd,1);
        return 0;
    }
    if( battle_config.guild_emperium_check && pc_search_inventory(sd,714) == -1 )
    {// item required
 

714 is Emperium you can replace that so every time they try /guild it won't work because the item requied is different replace it with some not used.

then recompile.

ok thank you people are not available to create a guild using /guild now, how can i change the message when they try to do it? it say: you need the necesary item to create a guild, i want it say you are not available to use this command.

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:  

check the msgstringtable.txt it's on your Data folder on your Client.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

check the msgstringtable.txt it's on your Data folder on your Client.

ok ty sir ^_^

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