Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Bad exit flag!
Forum Rules | Mark all | Recent Posts

Bad exit flag!
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2 next >>
Post is unread #21 Nov 23, 2006, 1:52 am
Go to the top of the page
Go to the bottom of the page

kiasyn
Magician
GroupMembers
Posts121
JoinedJun 30, 2006

   if( !str_cmp( arg, "bexflags" ) )
   {

      if( !argument || argument[0] == '\0' )
      {
         send_to_char( "Toggle or display exit flags.\r\n", ch );
         send_to_char( "Usage: redit bexflags <dir> <flag> [flag]...\r\n", ch );
	 send_to_char( "Warning: This could have undesired effects if both exits flags aren't identical\r\n", ch );
         return;
      }
      argument = one_argument( argument, arg2 );
      if( arg2[0] == '#' )
      {
         edir = atoi( arg2 + 1 );
         xit = get_exit_num( location, edir );
      }
      else
      {
         edir = get_dir( arg2 );
         xit = get_exit( location, edir );
      }
      if( !xit )
      {
         send_to_char( "No exit in that direction.  Use 'redit exit ...' first.\r\n", ch );
         return;
      }
      texit = get_exit_to( xit->to_room, rev_dir[edir], location->vnum );
      if( argument[0] == '\0' )
      {
         ch_printf( ch, "Flags for exit direction: %d  Keywords: %s  Key: %d\r\n[ %s ]", texit->vdir,
         	xit->keyword, xit->key, flag_string( xit->exit_info, ex_flags ) );
	 if ( texit )
	          ch_printf( ch, "Flags for reverse exit direction: %d  Keywords: %s  Key: %d\r\n[ %s ]", texit->vdir,
         	           texit->keyword, texit->key, flag_string( texit->exit_info, ex_flags ) );
	 return;
      }
      while( argument[0] != '\0' )
      {
         argument = one_argument( argument, arg2 );
         value = get_exflag( arg2 );
         if( value < 0 || value > MAX_EXFLAG )
            ch_printf( ch, "Unknown flag: %s\r\n", arg2 );
         else
	 {
            TOGGLE_BIT( xit->exit_info, 1 << value );
	    if ( texit )
		TOGGLE_BIT( texit->exit_info, 1 << value );
	 }
      }
      return;
   }


btw why does ex_flags manually reproduce flag_string.. is there a reason? :s
       
Post is unread #22 Nov 23, 2006, 2:00 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Sweet Kiasyn! Thanks! :smile:
and, I'm sorry, but I have no clue to the answer to your question. :sad:
       
Post is unread #23 Nov 24, 2006, 12:08 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

I doubt there was a reason. The Smaugdevs had a nasty tendency to rewrite parts of the code over and over again. The ex_flags thing is probably no exception.
       
Post is unread #24 Dec 2, 2006, 4:54 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

BAD EXIT FLAGS! And now you've been fixed..... ( see bugfix forum )
       
Post is unread #25 Dec 2, 2006, 6:07 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Does that fix also apply to SmaugFUSS?
       
Post is unread #26 Dec 2, 2006, 6:29 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

It does but since it looks like people want to keep the broken behaviour in FUSS I hadn't planned on porting it there.
       
Post is unread #27 Dec 2, 2006, 7:12 pm
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

Hmm, I don't know who you could be talking about... *innocent*
Basically the fix is just swapping the order of keywords and flags for input to the command so that one can only use a single keyword for a given exit but can use multiple flags as needed?
       
Pages:<< prev 1, 2 next >>