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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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