Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Bing

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Pb with Config (CB 1.77)
Forum Rules | Mark all | Recent Posts

Pb with Config (CB 1.77)
< Newer Topic :: Older Topic > passdoor priv granted to players

Pages:<< prev 1 next >>
* #1 Jul 11, 2006, 3:16 am   Last edited Nov 25, 2007, 7:17 pm by Samson
Go to the top of the page
Go to the bottom of the page

tophe

GroupMembers
Posts13
JoinedJul 4, 2006

While building and having a hard time to make a secret exit work *still pondering that*, i found that the config +passdoor command was working for players too. If i am correct, it should be immortals only.

In act_info.c, locate
else
      {
         if( !str_prefix( argument + 1, "norecall" ) )
            bit = PCFLAG_NORECALL;
         else if( !str_prefix( argument + 1, "nointro" ) )
            bit = PCFLAG_NOINTRO;
         else if( !str_prefix( argument + 1, "nosummon" ) )
            bit = PCFLAG_NOSUMMON;
         else if( !str_prefix( argument + 1, "gag" ) )
            bit = PCFLAG_GAG;
         else if( !str_prefix( argument + 1, "pager" ) )
            bit = PCFLAG_PAGERON;
         else if( !str_prefix( argument + 1, "nobeep" ) )
            bit = PCFLAG_NOBEEP;
         else if( !str_prefix( argument + 1, "passdoor" ) )
            bit = PCFLAG_PASSDOOR;
         else if( !str_prefix( argument + 1, "groupwho" ) )
            bit = PCFLAG_GROUPWHO;
         else if( !str_prefix( argument + 1, "@hgflag_" ) )
            bit = PCFLAG_HIGHGAG;
         else if( !str_prefix( argument + 1, "notell" ) )
            bit = PCFLAG_NOTELL;
         else if( !str_prefix( argument + 1, "checkboard" ) )
            bit = PCFLAG_CHECKBOARD;
         else if( !str_prefix( argument + 1, "noquote" ) )
            bit = PCFLAG_NOQUOTE;
         else if( IS_IMMORTAL( ch ) )
         {
            if( !str_prefix( argument + 1, "roomflags" ) )
               bit = PCFLAG_AUTOFLAGS;
            else if( !str_prefix( argument + 1, "sectortypes" ) )
               bit = PCFLAG_SECTORD;
            else if( !str_prefix( argument + 1, "filename" ) )
               bit = PCFLAG_ANAME;
            else
            {
               send_to_char( "Config -option or +option?\n\r", ch );
               return;
            }
         }

and change it to :
      else
      {
         if( !str_prefix( argument + 1, "norecall" ) )
            bit = PCFLAG_NORECALL;
         else if( !str_prefix( argument + 1, "nointro" ) )
            bit = PCFLAG_NOINTRO;
         else if( !str_prefix( argument + 1, "nosummon" ) )
            bit = PCFLAG_NOSUMMON;
         else if( !str_prefix( argument + 1, "gag" ) )
            bit = PCFLAG_GAG;
         else if( !str_prefix( argument + 1, "pager" ) )
            bit = PCFLAG_PAGERON;
         else if( !str_prefix( argument + 1, "nobeep" ) )
            bit = PCFLAG_NOBEEP;
         else if( !str_prefix( argument + 1, "groupwho" ) )
            bit = PCFLAG_GROUPWHO;
         else if( !str_prefix( argument + 1, "@hgflag_" ) )
            bit = PCFLAG_HIGHGAG;
         else if( !str_prefix( argument + 1, "notell" ) )
            bit = PCFLAG_NOTELL;
         else if( !str_prefix( argument + 1, "checkboard" ) )
            bit = PCFLAG_CHECKBOARD;
         else if( !str_prefix( argument + 1, "noquote" ) )
            bit = PCFLAG_NOQUOTE;
         else if( IS_IMMORTAL( ch ) )
         {
            if( !str_prefix( argument + 1, "roomflags" ) )
               bit = PCFLAG_AUTOFLAGS;
            else if( !str_prefix( argument + 1, "sectortypes" ) )
               bit = PCFLAG_SECTORD;
            else if( !str_prefix( argument + 1, "filename" ) )
               bit = PCFLAG_ANAME;
            else if( !str_prefix( argument + 1, "passdoor" ) )
            bit = PCFLAG_PASSDOOR;
            else
            {
               send_to_char( "Config -option or +option?\n\r", ch );
               return;
            }
         }


It did the trick for me, i hope this helps.

Edit: Sorry, just found out Zarius had the same issue. See his post here: Zarius' post

Tophe.
       
Post is unread #2 Jul 11, 2006, 8:41 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

That is what we in programming simply like to call an oops. And no worries on repeating it. Despite him having mentioned it, the fix got overlooked.
       
Pages:<< prev 1 next >>