Jump to content
  • 0

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


Question

Posted

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

5 answers to this question

Recommended Posts

Posted

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;
    }
 

 

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