Page 1 of 1

Problem with authorization

Posted: Sun Aug 21, 2011 2:09 am
by n3k
Hello. I have a problem. After typing the command in the game, gives me such a thing:
Image

How to solve this problem?


(sorry for my English :| )

Re: Problem with authorization

Posted: Sun Aug 21, 2011 7:40 am
by *Edwards
Uses .setauthcode

Re: Problem with authorization

Posted: Sun Aug 21, 2011 9:08 am
by n3k
Thanks :D

Re: Problem with authorization

Posted: Thu Apr 04, 2013 6:45 am
by And_rew
Hello. I have another problem. After typing .setauthcode, pol gives me a question "Write old Authorization...". Where can i find this pass...

Re: Problem with authorization

Posted: Sat Jul 20, 2013 1:09 pm
by buzka
I got other problem. After typing .setauthcode i got msg Unknown command. What should i do or where i can manually change it or disable?

Re: Problem with authorization

Posted: Sat Jul 20, 2013 4:09 pm
by Yukiko
The quickest way to disable this is to open the file security.inc found in \pol\scripts\include and make the following change:

Code: Select all

function AuthorizationCode( mobile )

// The following line causes the function to always authorize "staff" commands when entered.
return 1;
        if( GetObjProperty( mobile, "#AuthCodeGiven" ));
                return 1;
        endif

I do not know if this will allow non-staff characters to have access to the staff commands. You should experiment with player level characters to see if they are restricted from those commands. I presume this authorization system was put into place because some staff level commands are not in the hierarchical directories where they are supposed to be.