wand.c

./lib/doc/examples/magic/wand.c · 520 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

/* Wand from a Fire Mage */

#include <mudlib.h>
inherit MAGIC_WAND;

void reset(status arg) {
  ::reset(arg);  /* default wand messages */
  if(arg) return;
  set_smell("The wand smell like ash.\n");
  add_spell(({ "fire ball", "fire shield", }));

  /* optional */
  set_max_charges(50);               /* maximum charges */
  set_charges(50);                   /* charge robe */
  set_cast_level(14);                /* level spells cast at */
  set_class(({ "mage", "thief", })); /* class(es) able to use spells */ 
}

Site Stats

Snippets: 1791
Codebases: 571