scroll.c

./lib/doc/examples/magic/scroll.c · 447 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/* a scroll of bless */
/*  make_name() is used to generate random spell trigger commands.
    This will make people use divination spells.

    set_class() will restrict the usage to the set classes. If its
    not set, all 4 classes can use it.
 */

#include <mudlib.h>
inherit MAGIC_SCROLL;

void reset(status arg) {
  ::reset(arg);  /* default scroll messages */
  if(arg) return;
  add_spell(({ "bless", }));
  set_class(({ "cleric", }));
}

Site Stats

Snippets: 1791
Codebases: 571