Re: restricting do_load

From: Mark A. Heilpern (heilpern@MINDSPRING.COM)
Date: 06/24/98

At 05:28 PM 6/24/98 -0400, you wrote:
>    I've had a problem lately with builders loading eq and just going
>around and killing stuff.  So I sat down and tried to figure out how I
>could restrict do_load to only let LVL_BUILDER and below load stuff that
>is in there own zone.  I couldn't figure it out.  This wouldn't fix the
>problem but it would help so I was wondering if anyone has done this or
>knows how.  Please let me know.

I did exactly this, but beforehand I'd already had some code set up
that simplified things. Firsthand, there are several locations where
commands are limited to those with building access to the zone in my
mud; most notably, building. So, I took the standard check of builders
access and made it a function called "can_build_in_zone()", which
returns 1 for imps and those with the appropriate access, and 0 otherwise.
Then, in the do_load() function, simply make sure a 1 is returned. Also,
I log all loads.

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

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