Jump to content
  • 0

@main chat spam


x13th

Question


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   13
  • Joined:  11/20/11
  • Last Seen:  

i added @main command delay but players can PM Main and can spam there messages. how to disable it?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


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

Find the edit you did to atcommand.c

and also apply that edit in [src=trunk/src/map/clif.c] (around line 9864)

    // Main chat [LuzZza]
   if(strcmpi(target, main_chat_nick) == 0)
   {
       if(!sd->state.mainchat)
           clif_displaymessage(fd, msg_txt(388)); // You should enable main chat with "@main on" command.
       else {

           // ADD YOUR NO-SPAM CODE HERE

           // send the main message using inter-server system
           intif_main_message( sd, message );
       }

       return;
   }

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