Re: [Long][Code] !PURGE flag

From: John Evans (evansj@HI-LINE.NET)
Date: 11/03/97

On Sun, 2 Nov 1997, StormeRider wrote:

> Ok, on my mud I decided that there are some things that I don't want to be
> purgeable. For example, the bulletin boards, and objects that people can
> sit on (not a good idea to free memory thats already freed when they stand
> up if its been purged). I added the item flag and changed do_purge to the
> below.
> /* clean a room of all mobiles and objects */
    } else
      if ((obj = get_obj_in_list_vis(ch, buf, world[ch->in_room].contents))) {
        if (!IS_OBJ_STAT(obj, ITEM_NOPURGE)) {
          act("$n destroys $p.", FALSE, ch, obj, 0, TO_ROOM);
        else {
          act("Your power seems to warp and flow around $p",
              FALSE, ch, obj, 0, TO_CHAR);
    } else {
      send_to_char("Nothing here by that name.\r\n", ch);

Everything else looks fine to me....

John Evans <>

May the source be with you.

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

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