royal1.c

./lib/players/sarak/minotaur/royal1.c · 1.3 KB

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

#include <mudlib.h>
inherit MONSTER;

object sword;

void reset(status arg) {
  ::reset(arg);
  if(arg) return;

    
  /* Royal Guard */
  
  set_name("royal guard");
  set_alias("guard");
  set_short("Royal Guard");
  set_long(
	"This is a Royal Guard. He is the strongest guard and most\n"+
	"powerful guard the minotaurs have.\n");
  set_level(15);
  set_gender(1);
  set_race("minotaur");
  set_ac(12);
  set_hp(400);
  set_max_hp(400);
  set_al(300);
  set_strength(17);
  add_money(250);

  load_chat (8, ({
    "Royal Guard bellows: Do not attempt to open this door!\n",
    "Royal Guard says: If you try to open this door, you may die.\n",
  }));
  
  /* Weapon definition */

  sword = clone_object(WEAPON);
  sword->set_alias("sword");
  sword->set_name("royal guard's sword");
  sword->set_short("Royal Guard's Sword");
  sword->set_long(
		"This sword belongs to a royal minotaur guard.\n"+
		"It is one of the best swords you have ever seen!\n");
  sword->set_length(54);
  sword->set_weight(5);
  sword->set_wc(15);
  sword->set_type("cleave");
  sword->set_value(3200);
  move_object(sword, this_object());
  init_command("wield sword");
  set_wc(20);

  set_dead_ob(this_object());
  
}

monster_died() {
  move_object(clone_object("players/sarak/minotaur/key"), this_object());
}

Site Stats

Snippets: 1791
Codebases: 571