Re: bpl14 bug in wearing items on a specific locati

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 08/06/98

I would just add this to the beginning of the function:
   return -1;

Just to whack those smart-assed players that type 'wear !RESERVED!'.
This way you can also use any string beginning with a ! as a comment in your
lists (for displaying in the mud if you like).

______________________________ Reply Separator _________________________________
Subject:  bpl14 bug in wearing items on a specific location
Date:    8/6/98 2:22 PM

Typing a command such as "where item location" is expected
to allow you to put the item on someplace other than it's
default, assuming the item can legally be placed there.
Unfortunately, it's broken.

The reason it's broken is the find_eq_pos() function which holds
a list of the valid positions. The reserved fields in this list all
are "\n!RESERVED!". The problem is this list is passed through
search_block(), which triggers on \n as the first character to indicate
the list is complete.

I've removed the \n's and wearing items now works properly. Is there
anything wrong with this approach?

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

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