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ISTRY/
LPMUD/MUDLIB/SECURE/
LPMUD/MUDLIB/SECURE/UDP_CMD_/
LPMUD/MUDLIB/SKILLS/
LPMUD/MUDLIB/SKILLS/FIGHTER/
LPMUD/MUDLIB/SKILLS/THIEF/
LPMUD/MUDLIB/USR/
LPMUD/MUDLIB/USR/CREATORS/
LPMUD/MUDLIB/USR/PLAYERS/
inherit "inherit/monster";

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

  set_name("aleena");
  set_gender(2);
  set_short("Aleena, the Chosen Prophet of the All-God");
  set_long(
	"Aleena is here to guide those in need, and aid the sick and dying.\n"+
	"Her power is great as she is the All-God's chosen one.\n");
  set_level(25);
  set_hp(2400);
  set_ac(26);
  set_wc(30);
  load_chat(5, ({ "Aleena asks: Do you seek the power of the All-God?\n",
	"Aleena asks: Do you seek wisdom, my child?\n",
	"Aleena says: Come worship with me child.\n"
  }));
  load_a_chat(5, ({ "Aleena calls to the All-God for aid.\n",
	"Aleena says: I am sorry to do this to you.\n",
	"Aleena says: You will feel the wrath of the Almighty One.\n"
  }));
}

init() {
  ::init();
  add_action("worship", "worship");
  welcome();
}

welcome() {
    write("Aleena says: Welcome, my child.\n"+
	  "Aleena says: Come and worship with me.\n");
  }

worship() {
  if(this_player()->query_ghost()) {
    write("Aleena says: By the power of the All-God I shall raise you!\n");
    this_player()->toggle_ghost();
    this_player()->heal_self(random(20));  /* nice service */
    return 1;
  }

  write("Aleena says: I can offer you the following services...\n\n"+

" Cure Disease...............100 gold coins.     \n"+
" Cure Wounds................100 gold coins.     \n"+

"\nAleena says: What healing can I aid you with?   \n"+
" Enter spell name (Return for none) > ");

input_to("worship2");
return 1;
}

worship2(string str) {
  string tmp1, tmp2;
  if(sscanf(str, "%sdisease%s", tmp1, tmp2))
    cure_disease();
  else if(sscanf(str, "%swounds%s", tmp1, tmp2))
    cure_wounds();
  else if(sscanf(str, "%srestoration%s", tmp1, tmp2))
    restoration();
  return 1;
}

  
cure_wounds() {
  if(healing_sphere_points < 2) {
    write("Aleena says: I am truely sorry, "+ this_player()->query_name() +
    ", but my powers are all spent.\nCome back when I am rested.\n");
    return 1;
  }
  if(this_player()->query_money() < 100) {
    write("Aleena says: I cannot pray for you if you cannot make the "+
    "correct donation.\n");
    return 1;
  }
  command("cw "+ lower_case(this_player()->query_name()), this_object());
  this_player()->add_money(-100);
  return 1;
}

cure_disease() {
  if(healing_sphere_points < 7) {
    write("Aleena says: I am truely sorry, "+ this_player()->query_name() +
    ", but my powers are all spent.\nCome back when I am rested.\n");
    return 1;
  }
  if(this_player()->query_money() < 200) {
    write("Aleena says: I cannot pray for you if you cannot make the "+
    "correct donation.\n");
    return 1;
  }
  command("cdis "+ lower_case(this_player()->query_name()), this_object());
  this_player()->add_money(-200);
  return 1;
}