Re: how do i make a spec proc for a obj that will

From: Mark Gerritsen (m.p.h.gerritsen@STUDENT.UTWENTE.NL)
Date: 04/28/98


At 08:57 AM 4/28/98 -0700, you wrote:
>how do i make a spec proc that will make a obj do a act("$p humms")????
>
SPECIAL(hum)
{
  struct obj_data *obj = (struct obj_data *) me;

  if (!number(0, 100))
    act("$p hums.", FALSE, 0, obj, 0, TO_ROOM);
}

Change the 100 to another number, depending on how often you want it to hum.

Havoc of Dagmarck (Mark Gerritsen)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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