/
lib/banish/
lib/d/coronos/
lib/d/coronos/w/alena/
lib/d/coronos/w/angel/
lib/d/coronos/w/angel/caves/
lib/d/coronos/w/angel/caves/monst/
lib/d/coronos/w/angel/city/chambers/
lib/d/coronos/w/angel/city/monst/
lib/d/coronos/w/angel/city/obj/
lib/d/coronos/w/angel/city/streets/
lib/d/coronos/w/angel/farms/plains/
lib/d/coronos/w/angel/monst/
lib/d/tempus/
lib/d/tempus/w/angel/
lib/d/tempus/w/kingbill/
lib/d/tempus/w/mirak/
lib/d/tempus/w/mirak/monst/
lib/d/tempus/w/mirak/obj/
lib/d/tempus/w/relgar/planes/baat/
lib/d/tempus/w/sarak/
lib/d/tempus/w/serepion/mon/
lib/d/tempus/w/valrejn/
lib/doc/
lib/doc/domains/
lib/doc/efun/
lib/include/fn_specs/
lib/info/
lib/inherit/base/
lib/log/
lib/log/mailbox/
lib/log/main/
lib/news/
lib/obj/party/
lib/objects/componen/
lib/open/
lib/open/party/
lib/open/paste/
lib/open/spells/
lib/open/valrejn/
lib/players/
lib/players/alena/
lib/players/alena/obj/
lib/players/alena/open/
lib/players/alena/private/
lib/players/angel/
lib/players/angel/obj/
lib/players/ash/
lib/players/biggs/
lib/players/biggs/food/
lib/players/biggs/gobkeep/
lib/players/biggs/mnstr/
lib/players/biggs/town/caves/
lib/players/biggs/town/tower/
lib/players/biggs/wpns/
lib/players/calris/
lib/players/deathurg/
lib/players/deathurg/open/
lib/players/deathurg/private/thief/
lib/players/dogberry/
lib/players/dogberry/library/
lib/players/dogberry/open/
lib/players/epsilon/
lib/players/epsilon/private/
lib/players/farewell/
lib/players/hippo/
lib/players/hippo/open/
lib/players/hippo/tools/
lib/players/jimpa/
lib/players/josh/
lib/players/josh/room/
lib/players/josh/room/mage/dungeon/
lib/players/josh/room/mage/dungeon/obj/
lib/players/josh/wep/
lib/players/kingbill/
lib/players/metatron/
lib/players/miette/
lib/players/mirak/
lib/players/mirak/open/
lib/players/parsilan/
lib/players/relgar/
lib/players/relgar/private/
lib/players/sarak/
lib/players/sarak/bugs/
lib/players/sarak/feelings/
lib/players/sarak/magical/
lib/players/sarak/minotaur/island/
lib/players/sarak/open/
lib/players/sarak/private/
lib/players/serepion/
lib/players/serepion/open/
lib/players/serepion/private/
lib/players/spike/
lib/players/spike/open/
lib/players/spike/private/
lib/players/spike/seaworld/
lib/players/valrejn/
lib/players/valrejn/open/
lib/players/valrejn/private/
lib/players/virus/
lib/players/wrath/
lib/players/wrath/arm/
lib/players/wrath/mon/
lib/players/wrath/room/
lib/players/wrath/room/entry/
lib/players/wrath/room/zolgath/
lib/players/wrath/weap/
lib/players/zil/
lib/room/
lib/room/city/arena/
lib/room/city/creator/
lib/room/city/garden/monst/
lib/room/city/library/
lib/room/city/library/open/books/
lib/room/city/shop/
lib/room/death/
lib/room/death/open/
lib/room/island/
lib/room/keeps/
lib/room/registry/
lib/room/ships/crew/
lib/room/ships/open/
lib/room/ships/open/types/bounty/
lib/room/ships/open/types/nebula/
lib/room/ships/open/types/phoenix/
lib/secure/udp_cmd_/
lib/skills/
lib/skills/fighter/
lib/skills/psionici/
lib/skills/thief/
lib/usr/
lib/usr/creators/
lib/usr/no_banis/
lib/usr/players/
/* Quest Object - Ramses 1993, Revisions by Angel 1994.
 * Original Code by Lemat(-jj) 1992
 */

inherit "inherit/base/base_obj";

int min_level, max_level, qpoints, is_test, q_number;
string author, req_place, req_caller, hint;
string qname;

string query_object_type() { return "Quest_object"; }

void reset(status arg) {   
  if(arg) return;
    hint       = "";
    author     = "";
    req_place  = "*";
    req_caller = "*";
    qpoints    = 10;
    is_test    = 0;
    min_level  = 0;
    max_level  = 19;
    q_number   = 0;
    set_name("quest_object");
} 

 
status short(string wiz) {  
  return q_number+": "+author+"'s - \""+query_name(0)+"\""; 
}
 
status long(string wiz) {  
  object wh;

  wh = this_object();

  write(" Author: "+wh->query_author()+"\n"+
        "Min Level: "+min_level+", Max Level: "+max_level+"\n"+
        " Quest points: "+wh->query_qpoints()+", Quest name: "+ 
          wh->query_qname()+"\n"+
        " Room to complete quest: "+wh->query_req_place()+"\n"+
        " Must be called from object: "+wh->query_req_caller()+"\n");

  if(wh->query_test()) 
    write("Note: This quest is not fully tested yet.\n");

  write("Hint: "+wh->query_hint()+"\n");
  return 1;
}

/* The Set Funs */
string set_author(string who)      {  return author = who;      }
string set_hint(string str)        {  return hint = str;        }
string set_qname(string str) {
  qname = str;
  return ::set_name(str);
}
string set_req_place(string room)  {  return req_place = room;  }
string set_req_caller(string file) {  return req_caller = file; }
 
int set_min_level(int lev)         {  return min_level = lev;   }
int set_max_level(int lev)         {  return max_level = lev;   }
int set_qpoints(int num)           {  return qpoints = num;     }
 
status set_test(status flag)       {  return is_test = flag;    }


/* The Query Funs */
int query_min_level()     { return min_level;     }
int query_max_level()     {  return max_level;    }
int query_qpoints()       {  return qpoints;      }
status query_test()       {  return is_test;      }
string query_qname()      { return qname;         }
string query_name()       { return qname;         }
string query_hint()       {  return hint;         }
string query_author()     {  return author;       }
string query_req_place()  {  return req_place;    }
string query_req_caller() {  return req_caller;   }