Jump to content
  • 0
Sign in to follow this  
Dover

atcommands.c

Question

Hey guys, can you help me please with a problem am I having?

Well, I've seen a post... this :  https://rathena.org/board/topic/82448-latest-rev-failed-commands-come-in-public-chat-and-not-as-unknown-cmd/?sortby=date

And I do this process and it's good, now commands that don't exist are unkowns.

But when I type a existing command that my account don't have permission, it happens again....

Check the picture below :

 

comandosexistentes_passando.png

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You need to edit atcommand_exec

This piece of code here orders that part. I think if you just remove the check for group level it will work.

    if (info == NULL) {
        if (pc_get_group_level(sd) == 0) // TODO: remove or replace with proper permission
            return false;
        sprintf(output, msg_fd(fd,153), command); // "%s is Unknown Command."
        clif->message(fd, output);
        atcommand->get_suggestions(sd, command + 1, is_atcommand);
        return true;
    }

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.