Re: Olc setting

From: Mark A. Heilpern (heilpern@MINDSPRING.COM)
Date: 07/20/98

At 03:27 PM 7/20/98 -0500, you wrote:
>>I am looking for help on how to make it so builders can have 3 zones
>>instead of just 1 to edit.  Thanks
>The only way I know of is a p-wipe.  Change the integer holding the players
>olc zone in structs.h to something along the lines of:
>int olc_zones[MAX_ZONES_PER_PLAYER - 1];

It can be done less elegantly without a pwipe, by using 2 of the spare
entries for olc_zone2 and olc_zone3, then checking those in addition to
olc_zone when looking to see if someone has access to a zone. The code
gets uglier, but no pwipe is necessary. (Actually, if you find 3 spares of the
same type in a row, you could replace them with an array of 3 values, and
-probably- be ok.)

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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