Jump to content
  • 0

Latest rev : failed @commands come in public chat and not as unknown cmd


Xtremist

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  196
  • Reputation:   20
  • Joined:  11/20/11
  • Last Seen:  

Hello friends,

 

The problem is with gm id/lvl-1,2,3 wateva and not with GM id/lvl 99

 

Whenever the @commands fail

eg. If I enter @asdasdasd - it must come as unknown command for gm but it goes like that ony in public chat

by mistake if someone does @broadcat a typo it goes in public chat and doesnt show as unknown/falied command.

 

Only happens for gm other than 99


What is the fix for this?

 

Thank you

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

It's normal with trunk since before at eAthena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  196
  • Reputation:   20
  • Joined:  11/20/11
  • Last Seen:  

I m not sure about this thing... But this shudn't be the intended working.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Maybe you just tried it before on Stable SVN of eAthena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  196
  • Reputation:   20
  • Joined:  11/20/11
  • Last Seen:  

Any modification for the same?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   10
  • Joined:  01/01/12
  • Last Seen:  

at src/map/atcommand.c
 

Find:

    info = get_atcommandinfo_byname(atcommand_checkalias(command + 1));
    if (info == NULL) {
        if( pc_get_group_level(sd) ) { // TODO: remove or replace with proper permission
            sprintf(output, msg_txt(sd,153), command); // "%s is Unknown Command."
            clif_displaymessage(fd, output);
            atcommand_get_suggestions(sd, command + 1, *message == atcommand_symbol);
            return true;
        } else
           return false;
    }

Replace With:

 

 

    info = get_atcommandinfo_byname(atcommand_checkalias(command + 1));
    if (info == NULL) {
        //if( pc_get_group_level(sd) ) { // TODO: remove or replace with proper permission
            sprintf(output, msg_txt(sd,153), command); // "%s is Unknown Command."
            clif_displaymessage(fd, output);
            atcommand_get_suggestions(sd, command + 1, *message == atcommand_symbol);
            return true;
        //} else
        //    return false;
    }
 

 

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