Jump to content
  • 0

Question

Posted

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.

4 answers to this question

Recommended Posts

Posted

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.

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...