skylib_fluffos_v3/
skylib_fluffos_v3/bin/
skylib_fluffos_v3/bin/db/
skylib_fluffos_v3/fluffos-2.9-ds2.04/
skylib_fluffos_v3/fluffos-2.9-ds2.04/ChangeLog.old/
skylib_fluffos_v3/fluffos-2.9-ds2.04/Win32/
skylib_fluffos_v3/fluffos-2.9-ds2.04/compat/
skylib_fluffos_v3/fluffos-2.9-ds2.04/compat/simuls/
skylib_fluffos_v3/fluffos-2.9-ds2.04/include/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/clone/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/command/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/data/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/etc/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/include/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/inherit/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/inherit/master/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/log/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/compiler/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/efuns/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/single/tests/operators/
skylib_fluffos_v3/fluffos-2.9-ds2.04/testsuite/u/
skylib_fluffos_v3/fluffos-2.9-ds2.04/tmp/
skylib_fluffos_v3/fluffos-2.9-ds2.04/windows/
skylib_fluffos_v3/mudlib/
skylib_fluffos_v3/mudlib/cmds/
skylib_fluffos_v3/mudlib/cmds/admin/
skylib_fluffos_v3/mudlib/cmds/guild-race/
skylib_fluffos_v3/mudlib/cmds/living/broken/
skylib_fluffos_v3/mudlib/cmds/player/group_cmds/
skylib_fluffos_v3/mudlib/cmds/playtester/
skylib_fluffos_v3/mudlib/d/admin/
skylib_fluffos_v3/mudlib/d/admin/room/
skylib_fluffos_v3/mudlib/d/admin/room/we_care/
skylib_fluffos_v3/mudlib/d/admin/save/
skylib_fluffos_v3/mudlib/d/admin/text/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/buildings/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/map/
skylib_fluffos_v3/mudlib/d/learning/TinyTown/roads/
skylib_fluffos_v3/mudlib/d/learning/chars/
skylib_fluffos_v3/mudlib/d/learning/functions/
skylib_fluffos_v3/mudlib/d/learning/handlers/
skylib_fluffos_v3/mudlib/d/learning/help_topics/
skylib_fluffos_v3/mudlib/d/learning/help_topics/npcs/
skylib_fluffos_v3/mudlib/d/learning/help_topics/objects/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rcs_demo/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rcs_demo/RCS/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/crowd/
skylib_fluffos_v3/mudlib/d/learning/help_topics/rooms/situations/
skylib_fluffos_v3/mudlib/d/learning/save/
skylib_fluffos_v3/mudlib/d/learning/school/
skylib_fluffos_v3/mudlib/d/learning/school/add_sc/
skylib_fluffos_v3/mudlib/d/learning/school/characters/
skylib_fluffos_v3/mudlib/d/learning/school/general/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/basic_commands/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/edtutor/
skylib_fluffos_v3/mudlib/d/learning/school/getting-started/unix_tutor/
skylib_fluffos_v3/mudlib/d/learning/school/items/
skylib_fluffos_v3/mudlib/d/learning/school/npc_school/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/room_basic/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/situations/
skylib_fluffos_v3/mudlib/d/learning/school/room_school/terrain_tutor/
skylib_fluffos_v3/mudlib/d/learning/text/
skylib_fluffos_v3/mudlib/d/liaison/
skylib_fluffos_v3/mudlib/d/mudlib/
skylib_fluffos_v3/mudlib/d/mudlib/changes/
skylib_fluffos_v3/mudlib/d/playtesters/
skylib_fluffos_v3/mudlib/d/playtesters/effects/
skylib_fluffos_v3/mudlib/d/playtesters/handlers/
skylib_fluffos_v3/mudlib/d/playtesters/items/
skylib_fluffos_v3/mudlib/d/sage/
skylib_fluffos_v3/mudlib/doc/
skylib_fluffos_v3/mudlib/doc/creator/
skylib_fluffos_v3/mudlib/doc/driver/
skylib_fluffos_v3/mudlib/doc/driver/efuns/arrays/
skylib_fluffos_v3/mudlib/doc/driver/efuns/buffers/
skylib_fluffos_v3/mudlib/doc/driver/efuns/calls/
skylib_fluffos_v3/mudlib/doc/driver/efuns/compile/
skylib_fluffos_v3/mudlib/doc/driver/efuns/filesystem/
skylib_fluffos_v3/mudlib/doc/driver/efuns/floats/
skylib_fluffos_v3/mudlib/doc/driver/efuns/functions/
skylib_fluffos_v3/mudlib/doc/driver/efuns/general/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mappings/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mixed/
skylib_fluffos_v3/mudlib/doc/driver/efuns/mudlib/
skylib_fluffos_v3/mudlib/doc/driver/efuns/numbers/
skylib_fluffos_v3/mudlib/doc/driver/efuns/parsing/
skylib_fluffos_v3/mudlib/doc/login/
skylib_fluffos_v3/mudlib/doc/lpc/basic_manual/
skylib_fluffos_v3/mudlib/doc/lpc/intermediate/
skylib_fluffos_v3/mudlib/doc/new/add_command/
skylib_fluffos_v3/mudlib/doc/new/events/
skylib_fluffos_v3/mudlib/doc/new/handlers/
skylib_fluffos_v3/mudlib/doc/new/living/race/
skylib_fluffos_v3/mudlib/doc/new/living/spells/
skylib_fluffos_v3/mudlib/doc/new/object/
skylib_fluffos_v3/mudlib/doc/new/player/
skylib_fluffos_v3/mudlib/doc/new/room/guild/
skylib_fluffos_v3/mudlib/doc/new/room/outside/
skylib_fluffos_v3/mudlib/doc/new/room/storeroom/
skylib_fluffos_v3/mudlib/doc/object/
skylib_fluffos_v3/mudlib/doc/playtesters/
skylib_fluffos_v3/mudlib/doc/policy/
skylib_fluffos_v3/mudlib/doc/weapons/
skylib_fluffos_v3/mudlib/global/
skylib_fluffos_v3/mudlib/global/creator/
skylib_fluffos_v3/mudlib/handlers/
skylib_fluffos_v3/mudlib/include/casino/
skylib_fluffos_v3/mudlib/include/cmds/
skylib_fluffos_v3/mudlib/include/effects/
skylib_fluffos_v3/mudlib/include/npc/
skylib_fluffos_v3/mudlib/include/room/
skylib_fluffos_v3/mudlib/include/shops/
skylib_fluffos_v3/mudlib/net/daemon/
skylib_fluffos_v3/mudlib/net/daemon/chars/
skylib_fluffos_v3/mudlib/net/inherit/
skylib_fluffos_v3/mudlib/net/obj/
skylib_fluffos_v3/mudlib/net/obj/BACKUPS/
skylib_fluffos_v3/mudlib/obj/amulets/
skylib_fluffos_v3/mudlib/obj/armours/plate/
skylib_fluffos_v3/mudlib/obj/b_day/
skylib_fluffos_v3/mudlib/obj/clothes/transport/horse/
skylib_fluffos_v3/mudlib/obj/faith/symbols/
skylib_fluffos_v3/mudlib/obj/fungi/
skylib_fluffos_v3/mudlib/obj/gatherables/
skylib_fluffos_v3/mudlib/obj/instruments/
skylib_fluffos_v3/mudlib/obj/media/
skylib_fluffos_v3/mudlib/obj/misc/player_shop/
skylib_fluffos_v3/mudlib/obj/monster/godmother/
skylib_fluffos_v3/mudlib/obj/monster/transport/
skylib_fluffos_v3/mudlib/obj/rings/
skylib_fluffos_v3/mudlib/obj/scabbards/
skylib_fluffos_v3/mudlib/obj/spells/
skylib_fluffos_v3/mudlib/obj/stationery/
skylib_fluffos_v3/mudlib/obj/stationery/envelopes/
skylib_fluffos_v3/mudlib/obj/toys/
skylib_fluffos_v3/mudlib/obj/vessels/
skylib_fluffos_v3/mudlib/obj/weapons/axes/
skylib_fluffos_v3/mudlib/obj/weapons/chains/
skylib_fluffos_v3/mudlib/obj/weapons/maces/BACKUPS/
skylib_fluffos_v3/mudlib/save/autodoc/
skylib_fluffos_v3/mudlib/save/book_handler/
skylib_fluffos_v3/mudlib/save/books/history/calarien/
skylib_fluffos_v3/mudlib/save/mail/
skylib_fluffos_v3/mudlib/save/new_soul/data/
skylib_fluffos_v3/mudlib/save/parcels/
skylib_fluffos_v3/mudlib/save/playerinfo/
skylib_fluffos_v3/mudlib/save/players/d/
skylib_fluffos_v3/mudlib/save/players/s/
skylib_fluffos_v3/mudlib/save/random_names/
skylib_fluffos_v3/mudlib/save/random_names/data/
skylib_fluffos_v3/mudlib/save/terrains/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_desert/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_grassy_field/
skylib_fluffos_v3/mudlib/save/terrains/tutorial_mountain/
skylib_fluffos_v3/mudlib/save/todo_lists/
skylib_fluffos_v3/mudlib/secure/
skylib_fluffos_v3/mudlib/secure/cmds/admin/
skylib_fluffos_v3/mudlib/secure/cmds/lord/
skylib_fluffos_v3/mudlib/secure/config/
skylib_fluffos_v3/mudlib/secure/handlers/autodoc/
skylib_fluffos_v3/mudlib/secure/handlers/intermud/
skylib_fluffos_v3/mudlib/secure/include/global/
skylib_fluffos_v3/mudlib/secure/save/
skylib_fluffos_v3/mudlib/secure/save/handlers/
skylib_fluffos_v3/mudlib/secure/std/
skylib_fluffos_v3/mudlib/secure/std/classes/
skylib_fluffos_v3/mudlib/secure/std/modules/
skylib_fluffos_v3/mudlib/std/creator/
skylib_fluffos_v3/mudlib/std/dom/
skylib_fluffos_v3/mudlib/std/effects/
skylib_fluffos_v3/mudlib/std/effects/external/
skylib_fluffos_v3/mudlib/std/effects/fighting/
skylib_fluffos_v3/mudlib/std/effects/magic/
skylib_fluffos_v3/mudlib/std/effects/magic/BACKUPS/
skylib_fluffos_v3/mudlib/std/effects/other/BACKUPS/
skylib_fluffos_v3/mudlib/std/effects/priest/
skylib_fluffos_v3/mudlib/std/effects/room/
skylib_fluffos_v3/mudlib/std/environ/
skylib_fluffos_v3/mudlib/std/guilds/
skylib_fluffos_v3/mudlib/std/guilds/old/
skylib_fluffos_v3/mudlib/std/languages/
skylib_fluffos_v3/mudlib/std/liquids/
skylib_fluffos_v3/mudlib/std/npc/
skylib_fluffos_v3/mudlib/std/npc/goals/
skylib_fluffos_v3/mudlib/std/npc/goals/basic/
skylib_fluffos_v3/mudlib/std/npc/goals/misc/
skylib_fluffos_v3/mudlib/std/npc/plans/
skylib_fluffos_v3/mudlib/std/npc/plans/basic/
skylib_fluffos_v3/mudlib/std/npc/types/
skylib_fluffos_v3/mudlib/std/npc/types/helper/
skylib_fluffos_v3/mudlib/std/npcs/
skylib_fluffos_v3/mudlib/std/outsides/
skylib_fluffos_v3/mudlib/std/races/shadows/
skylib_fluffos_v3/mudlib/std/room/basic/BACKUPS/
skylib_fluffos_v3/mudlib/std/room/basic/topography/
skylib_fluffos_v3/mudlib/std/room/controller/
skylib_fluffos_v3/mudlib/std/room/inherit/topography/
skylib_fluffos_v3/mudlib/std/room/topography/area/
skylib_fluffos_v3/mudlib/std/room/topography/iroom/
skylib_fluffos_v3/mudlib/std/room/topography/milestone/
skylib_fluffos_v3/mudlib/std/shadows/curses/
skylib_fluffos_v3/mudlib/std/shadows/disease/
skylib_fluffos_v3/mudlib/std/shadows/fighting/
skylib_fluffos_v3/mudlib/std/shadows/healing/
skylib_fluffos_v3/mudlib/std/shadows/magic/
skylib_fluffos_v3/mudlib/std/shadows/poison/
skylib_fluffos_v3/mudlib/std/shadows/room/
skylib_fluffos_v3/mudlib/std/shops/controllers/
skylib_fluffos_v3/mudlib/std/shops/objs/
skylib_fluffos_v3/mudlib/std/shops/player_shop/
skylib_fluffos_v3/mudlib/std/socket/
skylib_fluffos_v3/mudlib/std/soul/d/
skylib_fluffos_v3/mudlib/std/soul/e/
skylib_fluffos_v3/mudlib/std/soul/i/
skylib_fluffos_v3/mudlib/std/soul/j/
skylib_fluffos_v3/mudlib/std/soul/k/
skylib_fluffos_v3/mudlib/std/soul/l/
skylib_fluffos_v3/mudlib/std/soul/n/
skylib_fluffos_v3/mudlib/std/soul/o/
skylib_fluffos_v3/mudlib/std/soul/q/
skylib_fluffos_v3/mudlib/std/soul/r/
skylib_fluffos_v3/mudlib/std/soul/u/
skylib_fluffos_v3/mudlib/std/soul/v/
skylib_fluffos_v3/mudlib/std/soul/y/
skylib_fluffos_v3/mudlib/std/soul/z/
skylib_fluffos_v3/mudlib/std/stationery/
skylib_fluffos_v3/mudlib/w/
skylib_fluffos_v3/mudlib/w/default/
skylib_fluffos_v3/mudlib/w/default/armour/
skylib_fluffos_v3/mudlib/w/default/clothes/
skylib_fluffos_v3/mudlib/w/default/item/
skylib_fluffos_v3/mudlib/w/default/npc/
skylib_fluffos_v3/mudlib/w/default/room/
skylib_fluffos_v3/mudlib/w/default/weapon/
skylib_fluffos_v3/mudlib/www/
skylib_fluffos_v3/mudlib/www/java/
skylib_fluffos_v3/mudlib/www/secure/
skylib_fluffos_v3/mudlib/www/secure/lpc/advanced/
skylib_fluffos_v3/mudlib/www/secure/lpc/intermediate/
skylib_fluffos_v3/win32/
//  THOUGHT:
//      Disable the code for setup(), and the functions after it?  If we're
//      going to be inherited, it doesn't matter much, and will give the
//      book the OPTION of not being invulnerable, etc...
//


//  Okay, what IS a magic book?
//      It holds wizard spells.                     (ALWAYS)
//      It can't be torn.                           (ALWAYS)
//      Its order is randomized from time to time   (DEFAULT)
//      It is indexed (table of contents)           (DEFAULT)
//      Index is in in "wizard spells" language     (DEFAULT)
//      Index has " Table of Contents " header      (DEFAULT)
//      Index is at start of book                   (DEFAULT)
//      It has no title page.                       (DEFAULT)
//      Title page is in "sizard spells" language   (DEFAULT)
//
//  The defaults are geared according to what I assume to be the most
//  common set of needs for a spell book.
//
//  Except for being torn & lifted, use the following keywords:
//      "spell list",
//      ({
//          ({spell_file_name, spell_name}),
//              // ...
//      })
//          This introduces spells.  If {spell_name} is omitted, it is
//          infered from the {spell_file_name}.  E.g.,
//          "/w/wendell/spells/enchant" is infered to be "enchant".
//
//          ENHANCEMENT to consider:
//              Allow language to be specified?
//
//      "random", optional_boolean
//      "no random", optional_boolean
//          If you use ({"random", 0}), then you will force off
//          randomization of the spell order.  It defaults to on,
//          currently.
//
//      "index used", optional_boolean
//      "no index used", optional_boolean
//          This controls the existance of a table of contents into the
//          spell book.  Useful if you randomize the book but want (some)
//          players to be able to quickly find what they are looking for.
//
//      "index languge", language_name_string
//          This allows the index to be written in an arbitrary language
//          (needed to support the different discipline books).  This way,
//          a spell caster might be able to read the spells, but could have
//          trouble reading the index for the spells.
//
//          (IMPLICITLY TURNS ON "index used")
//
//      "index header", header_string
//          Normally, a typically badly spelled header line is put in the
//          table of contents.  You may wish to change this text, and this
//          permits you to do that.
//
//          (IMPLICITLY TURNS ON "index used")
//
//      "index at head", optional_boolean
//          Well, I sometimes call it the table of contents (which belongs
//          at the head of the book).  Other times, I call it the index,
//          and one could argue that THAT should go at the tail.  This lets
//          you decide for yourself.
//
//          (IMPLICITLY TURNS ON "index used")
//
//      "title page used", optional_boolean
//      "no title page used", optional_boolean
//          Let you put in a title page (probably irrelavent, with the
//          book's general read message & its long description).
//
//          If both exist, title-page will ALWAYS come before the index
//          page.
//
//      "title page", text_string
//          Will let you add a title page.
//
//          (IMPLICITLY TURNS ON "title page used")
//
//      "title page language"
//          Will let you set the langugae for the title page.
//
//          (IMPLICITLY TURNS ON "title page used")
//
//
//
//  All of those things might be made configurble...but for now, they all
//  hold.
//
//  Originally, I thought this might be taken by clone_object(), but the
//  use of that seems unlikely/rare enough that I'm just going to assume
//  ineritance.  clone_object() would be SLIGHLY more space conservative,
//  but...(shrug)  You can't easily duplicate the books, then, etc.
//
//      inherit MAGIC_BOOK;                 // /std/magic-book
//
//      /*** ... ***/
//
//      void setup ()
//      {
//          reset_get ();
//          set_short ("book");
//          add_adjective ("mgic");
//              /*** ... ***/
//          book_add_spells (SPELL_LIST);
//      }
//

inherit "/std/book";


int *build_order (int num)
{
    int *ret;
    int i;

    ret = allocate (num);
    for (i = 0; i < num; ++i)
        ret [i] = i;

    return (ret);
}

int *reorder (int *order)
{
    int i;
    int max;

    for (i = 0, max = sizeof (order); i < max; ++i)
    {
        int tmp;
        int swap;

        swap = random (max);
        tmp = order [swap];
        order [swap] = order [i];
        order [i] = tmp;
    }

    return (order);
}



string name_from_spell (mixed *spell)
{
    string ret;

    switch (sizeof (spell) )
    {
        case 0:
            ret = " <ERROR> ";
            break;

        case 1:
        {
            string *filesys_bits;

            filesys_bits = explode (spell [0], "/");
            ret = filesys_bits [sizeof (filesys_bits) - 1];
            break;
        }

        default:
            ret = spell [1];
            break;
    }

    return (ret);
}


mixed *spell_list;
int *order;

string index_header;
string index_lang;
int index_used;
int index_random;
int index_at_head;
int index_page;

string title_page;
string title_page_lang;
int title_page_used;


#define MAX(a,b) ( ( (a) < (b) ) ? (b) : (a) )
#define MIN(a,b) ( ( (a) > (b) ) ? (b) : (a) )
void book_do_config (mixed *config)
{
    int spell;
    int spells;
    string spell_index;
    int max_title_len;

    int spell_start_page;

    spell_list = ({ });
    index_header = " Table of Contents ";
    index_lang  = "wizard spells";
    index_used  = 1;
    index_random = 1;
    index_at_head = 1;

    title_page = "";
    title_page_lang = "wizard spells";
    title_page_used = 0;
    {
        int i;
        int limit;

        for (i = 0, limit = sizeof (config); i < limit; ++i)
        {
            string opt;
            int opt_is_array;
            mixed *opt_array;

            opt_is_array = pointerp (config [i]);
            if (!opt_is_array)
                opt = config [i];
            else
            {
                opt_array = config [i];
                opt = opt_array [0];
            }

            switch (opt)
            {
                case "spell list":
                    spell_list = opt_array [1];
                    break;


                case "random":
                    index_random = opt_is_array ? opt_array [1] : 1;
                    break;
                case "no random":
                    index_random = opt_is_array ? opt_array [1] : 0;
                    break;


                case "index used":
                    index_used = opt_is_array ? opt_array [1] : 1;
                    break;
                case "no index used":
                    index_used = opt_is_array ? opt_array [1] : 0;
                    break;

                case "index language":
                    index_lang = opt_array [1];
                    index_used = 1;                 // FORCE IT ON!
                    break;

                case "index header":
                    index_header = opt_array [1];
                    index_used = 1;                 // FORCE IT ON!
                    break;

                case "index at head":
                    index_at_head = opt_is_array ? opt_array [1] : 1;
                    index_used = 1;                 // FORCE IT ON!
                    break;


                case "title page used":
                    title_page_used = opt_is_array ? opt_array [1] : 1;
                    break;
                case "no title page used":
                    title_page_used = opt_is_array ? opt_array [1] : 0;
                    break;

                case "title page":
                    title_page = opt_array [1];
                    title_page_used = 1;            // FORCE IT ON!
                    break;

                case "title page language":
                    title_page_lang = opt_array [1];
                    title_page_used = 1;            // FORCE IT ON
                    break;


                default:
                    break;
            }
        }
    }

    //  JIC someone slipped us a non-0, non-1 value for these...
    //
    index_used = !!index_used;
    title_page_used = !!title_page_used;


    spell_start_page = 1;

    if (index_used && index_at_head)
        ++spell_start_page;

    if (title_page_used)
        ++spell_start_page;


    if (index_at_head)
        index_page = 1;
    else
        index_page = spells + spell_start_page - 1;

    if (title_page_used)
        ++index_page;


    spells = sizeof (spell_list);

    order = build_order (spells);
    if (index_random)
        order = reorder (order);

    set_no_pages (spells + index_used + title_page_used);
    max_title_len = strlen (index_header);
    spell_index = "";
    for (spell = 0; spell < spells; ++spell)
    {
        string spell_name;

        //  SHOULD expand_spell_list() (write a new function) to fill
        //  in default info for spell name and spell language.
        //
        spell_name = name_from_spell (spell_list [order [spell] ]);
        set_open_page (spell + spell_start_page);
        add_read_mess (spell_list [order [spell] ], 0, "wizard spells", 10);
        if (index_used)
        {
            spell_index +=
                    ( (spell < 8) ? "  " : " ")
                +   (spell + spell_start_page)
                +   " ... "
                +   spell_name
                +   "\n";
            max_title_len = MAX (max_title_len, strlen (spell_name) + 9);
        }
    }

    if ( index_used ) {
        spell_index = "\n"+ spell_index;
        for ( spell = 0; spell < ( max_title_len + 1 ) / 2; spell++ )
            spell_index = "=-"+ spell_index;
        spell_index = "\n"+ index_header +"\n-"+ spell_index;

        set_open_page(index_page);
        add_read_mess(spell_index, 0, index_lang, 10);
    }

    if( title_page_used ) {
        set_open_page( 1 );
        add_read_mess( title_page, 0, title_page_lang, 10 );
    }
    set_open_page (0);
}

//  Misc. stuff...
int do_tear(int number) { return 0; }

int query_binding_force () { return 100; }