/
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/function/
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/
void purge() {
  object obj;
  string *primary;
  string *skills;
  string *tmp_array;
  string temp;
  int i, j, k;
  
  primary = ({
	"strength", "intelligence", "wisdom", "dexterity", "charisma",
	"constitution", "combat", "level",
	"swim", "climb",
  });
  skills = ({
    "unarmed", "two_weapon", "multi_attack", "multi_opponent",
    "armouring", "weapon_smith",

	"healing_sphere", "divination_sphere", "combat_sphere",
	"nature_sphere",  "necromancy_sphere", "stellar_sphere",
	"protection_sphere", 

	"evocation", "divination", "necromancy", "alteration",
	"illusion", "charm", "conjuration",
	"abjuration",

	"stealth", "locks", "steal", "disguise", "appraisal", "backstab",
	"traps",
	"disguise",
  });
  obj = this_player();

  tmp_array = primary + skills;
  for(i=0; i<sizeof(tmp_array); i++) {
    if(call_other(obj, "query_"+tmp_array[i]) > 20)
      call_other(obj, "set_"+tmp_array[i], 20);
    k = (int)call_other(obj, "query_"+tmp_array[i]);
    if(k) {
    k *= 2;
    k /= 3;
    k += random(3);
    }
    call_other(obj, "set_"+tmp_array[i], k);
  }

  k = (int)obj->query_level();
  if(obj->query_class("fighter")) temp = "/room/city/arena";
  else if(obj->query_class("mage")) temp = "/players/drakken/tower/mguild";
  else if(obj->query_class("thief")) temp = "/room/city/theif/guild";
  else temp = "/room/city/cleric/hall4";
  obj->set_title(call_other(temp, "get_new_title", (k-1)));
  obj->set_exp(call_other(temp, "get_next_exp", (k-1)));
  write("You character has now been purged...\n");
}