CODE: Code to hide objects. :)

From: Homer Simpson (fcolvin@metz.une.edu.au)
Date: 09/27/96


Hiya all,
         After posting the search command and other stuff for hidden
objects etc. I though I might as well also post this change to the do hide
command wich allows players to hide objects from their inventory. They can
then find tham again with the search command. Simply replace the do_hide
command in act.other, with the one below.

Homer :)

PS. Did anyone add the search code, and get it working without a problem?


ACMD(do_hide)
{
  byte percent;
  struct obj_data *obj = NULL;
  struct char_data *person = NULL;

  one_argument(argument, arg);

  if (!*arg) {
    send_to_char("You attempt to hide yourself.\r\n", ch);

    if (IS_AFFECTED(ch, AFF_HIDE))
      REMOVE_BIT(AFF_FLAGS(ch), AFF_HIDE);

    percent = number(1, 101);	/* 101% is a complete failure */

    if (percent > GET_SKILL(ch, SKILL_HIDE) + dex_app_skill[GET_DEX(ch)].hide)
      return;

    SET_BIT(AFF_FLAGS(ch), AFF_HIDE);
  }
  else {
    if (!generic_find(arg, FIND_OBJ_INV, ch, &person, &obj)) {
      sprintf(buf, "There doesn't seem to have %s %s.\r\n", AN(arg), arg);
      send_to_char(buf, ch);
      return;
    }
    else if (IS_OBJ_STAT(obj, ITEM_NODROP)) {
      send_to_char("You can't hide that!\r\n", ch);
      return;
    }
    else {
      obj_from_char(obj);
      obj_to_room(obj, ch->in_room);
      sprintf(buf, "You hide %s.\r\n", obj->short_description);
      send_to_char(buf, ch);
      SET_BIT(obj->obj_flags.extra_flags, ITEM_HIDDEN);
    }
  }
}
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+


From jelson@blaze.cs.jhu.edu Fri, 27 Sep 96 10:28:11 EDT
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 4598 (database)
From: Jeremy Elson <jelson@blaze.cs.jhu.edu>
To: circle <circle@cspo.queensu.ca>
Subject:  circlemud.org back up
Date: Fri, 27 Sep 96 15:28:00
Message-ID: <199609271557.KAA11327@cspo.queensu.ca>
X-POP3-Rcpt: lk4150@per
Return-Path: <@QUCDN.QueensU.CA:owner-circle@cspo.queensu.ca>
Received: from QUCDN.QueensU.CA (QUCDN.QueensU.CA [130.15.126.2]) by per.cybercity.dk (8.6.12/8.6.12) with SMTP id QAA03021 for <lk4150@krull.dk>; Fri, 27 Sep 1996 16:00:27 +0200
Received: from cspo.queensu.ca by QUCDN.QueensU.CA (IBM VM SMTP V2R2) with TCP;Fri, 27 Sep 96 11:10:45 EDT
Received: by cspo.queensu.ca (SMI-8.6/SMI-SVR4)id KAA11331; Fri, 27 Sep 1996 10:57:49 -0500
Received: from blaze.cs.jhu.edu by cspo.queensu.ca (SMI-8.6/SMI-SVR4)
Received: from mail-client
Received: by mail-client (4.1) id AA29330; Fri, 27 Sep 96 10:28:11 EDT
Cc: jelson@blaze.cs.jhu.edu
Sender: owner-circle@cspo.queensu.ca
Precedence: bulk

The various .circlemud.org machines (and in particular, the better FTP
site, ftp2.circlemud.org) should be operating normally now. 

I will probably be switching ftp.circlemud.org and ftp2.circlemud.org so
that ftp.circlemud.org is the primary site that receives uploads (e.g. 
what ftp2 is now), and all sites ftpn (ftp2,3,4,5) etc will all be
mirrors.  If you are running a CircleMUD mirror (with automatic mirroring
software), please let me know so I can add an ftp<x>.circlemud.org address
for you. 

Jeremy

+-----------------------------------------------------------+
| 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/18/00 PST