/
LIB3/
LIB3/D/ADMIN/
LIB3/D/ADMIN/OBJ/
LIB3/D/ADMIN/ROOM/W/
LIB3/D/HOME/
LIB3/D/HOME/CITY/ARENA/
LIB3/D/HOME/CITY/ITEMS/
LIB3/D/HOME/CITY/POSTOFFI/
LIB3/DOC/
LIB3/GLOBAL/SPECIAL/
LIB3/GLOBAL/VIRTUAL/
LIB3/NET/
LIB3/NET/CONFIG/
LIB3/NET/DAEMON/CHARS/
LIB3/NET/GOPHER/
LIB3/NET/INHERIT/
LIB3/NET/OBJ/
LIB3/NET/SAVE/
LIB3/NET/VIRTUAL/
LIB3/OBJ/B_DAY/
LIB3/OBJ/HANDLERS/TERM_TYP/
LIB3/PLAYERS/B/
LIB3/PLAYERS/N/
LIB3/ROOM/
LIB3/SAVE/
LIB3/SAVE/BOARDS/
LIB3/SAVE/ENVIRON/
LIB3/SAVE/POST/
LIB3/STD/COMMANDS/SHADOWS/
LIB3/STD/CREATOR/
LIB3/STD/DOM/
LIB3/STD/EFFECTS/
LIB3/STD/EFFECTS/HEALING/
LIB3/STD/EFFECTS/OTHER/
LIB3/STD/EFFECTS/POISONS/
LIB3/STD/ENVIRON/
LIB3/STD/GUILDS/
LIB3/STD/LIQUIDS/
LIB3/STD/ROOM/
LIB3/STD/TRIGGER/SHADOW/
LIB3/W/
LIB3/W/BANNOR/
LIB3/W/NEWSTYLE/
#include "/d/home/city/monsters/path.h"
inherit "/obj/monster";

init()
{
::init();
if(this_player()->query_al()<0)
 {
  tell_object(this_player(),"Raffy is scared of you.\n");
tell_room(environment(this_object()),"Raffy becomes a bit scared of "+this_player()->query_cap_name()+".\n",this_player());
 }
if((string)this_player()->query_name()=="vilnius")
 {
tell_room(environment(this_object()),"Raffy says : Hello Master Vilnius!\n");
 call_out("stay_here",5);
 }
}


void stay_here()
{
  this_object()->do_command("unfollow all");
  this_object()->do_command("follow vilnius");
   this_object()->set_protector(this_player());
}

setup() {
set_level(1+random(1));
set_name("raffy");
set_short("Raffy");
set_long("Raffy is a young boy who is an apprentice of one of the wizards of the academy.\n");
        set_class("wizard");
   set_guild_ob("/d/guilds/wizards/guild_object.c");
add_alias("boy");
set_max_hp(100+random(100));
set_al(50);
        set_gender("male");
        set_aggressive(0);
adjust_money(random(10), "copper");
        add_move_zone("wizardguild");
add_move_zone("park");
add_move_zone("beach");
add_move_zone("docks");
        add_move_zone("trader");
        add_move_zone("newbie");
clone_object(ARMOURS+"robe.arm")->move(this_object());
init_equip();
load_chat(20, ({
     1, ":cheerfully wanders around.\n",
    2, "'have you seen my Master?\n",
     1, ":rummages in his pockets for something he thinks is a spell component.\n",
      }));
load_a_chat(50, ({
     1, ":tries to run away.\n",
     2,"'wait till my Master hears about this..!\n",
        1, "'Aaaargh!\n",
      }));

  add_respond_to_with(
    ({"hello"}), ({"'hi!"})
  );
  add_respond_to_with(
    ({"follow"}), ({"#ok_follow"})
  );
  add_respond_to_with(
    ({"master"}), ({"'you have seen him? oh goody! where is he?"})
  );
  add_respond_to_with(
     ({"magic","wizard","spells","mage"}), ({"'I am a real wizard you know? My master Vilnius said so."})
   );
  add_respond_to_with(
     ({"academy"}), ({"'the Academy is left at the wizardsplaza, east on pebblestreet."})
   );
   add_respond_to_with(
     ({"give"}), ({"#ok_give"})
   );
   add_respond_to_with(
     ({"hi"}), ({"'hello!"})
   );
}

int ok_follow(object who) {
 if(random(2))
 {
do_command("follow "+who->query_name());
tell_room(environment(this_object()),"Raffy says: will you take me to my Master please?\n");
    return 1;
  }
 tell_room(environment(this_object()),"Raffy says: where will you take me?\n");
   who->add_follower(this_object());
 tell_room(environment(this_object()),"Raffy says: he will turn me into a toad if I'm late.\n");
  return 1;
}

int second_life()
{
say("Raffy crys : My Master will get you for this!\n");
this_player()->add_property("killed raffy",1);
}