On Wed, 7 Aug 1996 linebacker@microlink.net wrote:
> I have level restricted equipment on my mud, and I
> want to add code to prevent players from renting
> with higher level eq. (I just want it so that when
> they log back on, the higher level eq is gone)
>
> My level restriction was added by adding another
> value to the second line of the object file,
> the one with <value 1> etc, it is <value 4>
>
> Where and how could i add this code to prevent
> players from saving and renting with eq higher
> than their level. (actually I am giving them a
> two level leeway)
Take a look at objsave.c especially obj_to_store() and obj_from_store().
In obj_to_store() you can put an if to see if the obj is allowed.
Jorge Guilherme
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/07/00 PST