Re: [OLC] Bug in doors?

From: Tony Robbins [Kupek] (tonyr@NWPACLINK.COM)
Date: 09/09/98


If you are using the 'wdoor' command in DG Scripts to change exits, they
won't change back to the original on their own.

E.G.:
 Bob walks into 'The Room with a Jagged Mountain Wall'
 Bob says, 'open sesame street!', and DG Script opens the wall into a door.
 Bob leaves through what previously was a wall and is now a door.
The End.

The problem here is that the DG Script had no code in it to set the exit
back to how it started.  Add a 'wait 60' and then have it seal 'er back
up, should probably fix.

ObNoodle:
Why does Oasis use NUM_ROOM_FLAGS, etc, etc ?  That handy little \n at the
end makes it easy to go from -
for (i = 0; i < NUM_ROOM_FLAGS; i++ )
- to -
for (i = 0; strcmp(room_flags[i], "\n"); i++ )
- and also makes it so that there's no forgetting to increment the olc.h
file, because they're already in constants.c (if you remember to put them
there, but you SHOULD).  The biggest waste here is that it uses a function
call every loop, but I couldn't tell you how wasteful that really is, as I
don't know.

Another possibility would to make it so an int NUM_ROOM_FLAGS is defined
at boot time as a global which would go through and do the 'strcmp' loop,
making it only done once and just as dynamic.

I bring this up as the flag setups in my Obuildlike Oasis interface use
the strcmp thing.  If the first idea isn't good, is there anything wrong
with the second ?

[-------------------------------------------]
  Tony Robbins, <tonyr@nwpaclink.com>
  LakeView Technologies, Inc.
[-------------------------------------------]

On Wed, 9 Sep 1998, Nitelite wrote:

>    I don't know what is going on with zones 154 and 146, the zones I am
> building in now...  But I keep getting error codes for the doors I set.  I have
> gone through BOTH zones, set all the doors FIVE times and saved after EACH
> edit....  It will save the info for a while, then for some reason it 'forgets'


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST