/
lib/banish/
lib/d/
lib/doc/
lib/doc/domains/
lib/doc/efun/
lib/doc/examples/
lib/doc/examples/armour/
lib/doc/examples/contain/
lib/doc/examples/food/
lib/doc/examples/magic/
lib/doc/examples/monster/
lib/doc/examples/room/
lib/doc/examples/weapons/
lib/include/
lib/include/fn_specs/
lib/include/skills/
lib/info/
lib/inherit/base/
lib/log/
lib/manuals/312/
lib/news/
lib/obj/party/
lib/objects/components/
lib/open/
lib/open/library/
lib/open/party/
lib/players/
lib/players/zilanthius/
lib/room/
lib/room/city/arena/
lib/room/city/creator/
lib/room/city/garden/monst/
lib/room/city/obj/
lib/room/city/shop/
lib/room/death/
lib/room/registry/
lib/secure/
lib/secure/UDP_CMD_DIR/
lib/skills/
lib/skills/fighter/
lib/skills/thief/
lib/usr/
lib/usr/creators/
lib/usr/players/
/* holy strike, holy word */

#define TARG "@@query_name:$this_object()$@@"

status holy(string spell_type, mixed alt_type) {
  string file;
  string targ;
  int i, cl;


  if(!spell_type) {
    notify_fail("holy strike, holy word?\n");
    return 0;
  }
  sscanf(spell_type,"%s %s", spell_type, targ);
  switch(spell_type) {
    case "strike":
      if(!alt_type) alt_type = "combat_sphere";
      cl = (objectp(alt_type))
         ? (int)alt_type->query_cast_level()
         : (int)this_player()->query(alt_type);
      cl *= (random(4)+1);
      if(cl > 35) cl = 35;

      file = file_name(this_object());
      sscanf(file,"%s#%d",file,i);
  
      this_player()->load_spell(({
      "target",            targ,
      "name",              "Holy Strike",
      "sphere",            alt_type, 
      "cost",              8,
      "level",             8,
      "cast time",         1,
      "damage",            cl,
      "msg target",        "You feel something strike at your inner self!\n",
      "msg room",          TARG +" turns a pale colour.\n"+
                           TARG +" staggers.\n",
      "msg caster",        TARG +" turns a pale colour.\n"+
                           TARG +" staggers.\n",

      }));
    break;

    case "word":
      if(!alt_type) alt_type = "combat_sphere";
      cl = (objectp(alt_type))
         ? (int)alt_type->query_cast_level()
         : (int)this_player()->query(alt_type);
      cl *= (random(11)+1);
      if(cl > 110) cl = 110;

      file = file_name(this_object());
      sscanf(file,"%s#%d",file,i);
  
      this_player()->load_spell(({
      "target",            targ,
      "name",              "Holy Word",
      "sphere",            alt_type, 
      "cost",              30,
      "level",             30,
      "cast time",         1,
      "damage",            cl,
      "msg target",        "You feel something strike at your inner self!\n",
      "msg room",          TARG +" turns a pale colour.\n"+
                           TARG +" staggers.\n",
      "msg caster",        TARG +" turns a pale colour.\n"+
                           TARG +" staggers.\n",
      }));
    break;

    default:
      notify_fail("holy strike, holy word?\n");
      return 0;
    break;
  }
  return 1;
}



/* Native Mode Move */

#include <move.h>