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/
/**
 * This is the peddler object, it acts as a walking talking item
 * shop.
 */

#define MAX_PROP "max per reset"
#define TYPE "item shop type"
#define NUM_SOLD "number sold this reset"

inherit NPC_OBJ;

object cont;

object query_cont() { return cont; }

void create() {
    do_setup++;
    ::create();

    cont = clone_object("/std/container");
    cont->set_name("peddler_store");

    do_setup--;
    if( !do_setup )
        TO->setup();

    if( base_name(TO) != __FILE__[0..<3] || clonep(TO) )
        call_out("reset_me", 1800 );

} /* create() */

/** @ignore yes */
void init() {
    ::init();
    TP->add_command("browse", TO, "<indirect:object:"+
        file_name(cont)+"> {from|of} <direct:living:here>");
    TP->add_command("buy", TO, "<indirect:object:"+
        file_name(cont)+"> from <direct:living:here>");
    TP->add_command("list", TO, "goods {from|of} <direct:living:here>");
} /* init() */

/** @ignore yes */
void dest_me() {
    if( cont )
        cont->dest_me();
    ::dest_me();
} /* dest_me() */

/** @ignore yes */
private void check_cont() {
    if( !cont ) {
        cont = clone_object("/std/container");
        cont->set_name("peddler_store");
    }
} /* check_cont() */

/**
 * @ignore yes
 */
void reset_me() {
    object item;

    check_cont();

    foreach( item in INV(cont) )
        item->add_property( NUM_SOLD, 0 );

    call_out("reset_me", 1800 );

} /* reset_me() */

/**
 * This method adds an armour in as something to be able to be bought
 * from the peddles.
 * @param word the name of the armoud
 * @param number the number of the items that can be sold
 * @return 1 on success, 0 on failure
 */
int add_armour( string word, int number ) {
    object thing;

    check_cont();
    thing = (object)TO->create_object( word );

    if( !thing )
       thing = (object)ARMOURY_H->request_item( word, 100 );

    if( !thing )
        return 0;

    thing->move( cont );
    thing->add_property("item name", word );
    thing->add_property( MAX_PROP, number );
    thing->add_property( TYPE, "armour");

    return 1;

} /* add_armour() */

/**
 * This method adds an weapon in as something to be able to be bought
 * from the peddles.
 * @param word the name of the armoud
 * @param number the number of the items that can be sold
 * @return 1 on success, 0 on failure
 */
int add_weapon( string word, int number ) {
    object thing;

    check_cont();
    thing = (object)TO->create_object( word );

    if( !thing )
        thing = (object)ARMOURY_H->request_item( word, 100 );

    if( !thing )
        return 0;

    thing->move( cont );
    thing->add_property("item name", word );
    thing->add_property( MAX_PROP, number );
    thing->add_property( TYPE, "weapon");

    return 1;

} /* add_weapon() */

/**
 * This method adds an object in as something to be able to be bought
 * from the peddles.
 * @param word the name of the armoud
 * @param number the number of the items that can be sold
 * @return 1 on success, 0 on failure
 */
int add_object( string word, int number ) {
    object thing;

    check_cont();
    thing = (object)TO->create_object( word );

    if( !thing )
        thing = clone_object( word );

    if( !thing )
        return 0;

    thing->move( cont );
    thing->add_property("item name", word );
    thing->add_property( MAX_PROP, number );
    thing->add_property( TYPE, "object");

    return 1;

} /* add_object() */

/**
 * This method returns the cost of the specified item to the buyer.
 * @param thing the thing to cost
 * @param buyer who is buying it
 * @return the cost of the item
 */
int query_cost( object thing, object buyer ) {
    return (int)thing->query_value_at(TO);
} /* query_cost() */

/**
 * This method returns the costs of the item as a string.
 * @param thing the thing to buy
 * @param place the money area it is being bought in
 * @param buyer the person who is buying the object
 * @return the string money value
 */
string cost_string( object thing, string place, object buyer ) {
    return (string)MONEY_H->money_value_string(
        query_cost( thing, buyer ), place );
} /* cost_string() */

/**
 * The main entrace to the browse for things command.
 * @return 1 on success, 0 on failure
 */
int do_browse( mixed indirect_obs, string dir_match, string indir_match,
               string *words ) {
    int i;
    string place;
    object *things;

    place = query_property("place");
    if( !place || place == "")
        place = "default";

    check_cont();

    things = indirect_obs;

    if( !sizeof( things ) ) {
        init_command("say I'm afraid I don't have any of those.", 2 );
    } else {
        for( i = 0; i < sizeof( things ); i++ ) {
            init_command("say $C$"+things[ i ]->the_short()+" is priced at "+
                cost_string( things[ i ], place, TP )+".  Let me show it "
                "to you.", 4 * i + 2 );
            write( one_short()+" shows you "+things[i]->one_short()+":\n"+
                things[i]->long() );
        }
    }

    TP->add_succeeded_mess( TO, "$N ask$s $D about "+words[ 0 ]+".\n");
    return 1;

} /* do_browse() */

/**
 * The main entrace to the buy things command.
 * @return 1 on success, 0 on failure
 */
int do_buy( mixed indirect_obs, string dir_match, string indir_match,
            string *words ) {
    int i, num_left;
    object *things;

    check_cont();

    things = indirect_obs;

    if( !sizeof( things ) ) {
        init_command("say I'm afraid I don't have any of those.", 2 );
    } else {
        for( i = 0; i < sizeof( things ); i++ ) {
            num_left = (int)things[ i ]->query_property( MAX_PROP ) -
                       (int)things[ i ]->query_property( NUM_SOLD );
            if( num_left < 1 ) {
                init_command("say I'm afraid I have no "+
                    things[ i ]->query_plural()+" left.", 2 * i + 2 );
                continue;
            }
            call_out("sell_thing", 2 * i, TP, things[ i ] );
        }
    }

    TP->add_succeeded_mess( TO, "$N ask$s $D about buying "+add_a(words[ 0 ])+".\n");
    return 1;

} /* do_buy() */

/**
 * The main entrace to the list stuff command.
 * @return 1 on success, 0 on failure
 */
int do_list() {
    int num_left;
    string place, *list;
    object thing;

    list = ({ });
    place = query_property("place");
    if( !place || place == "")
        place = "default";

    check_cont();

    if( find_call_out("reset_me") == -1 )
        reset_me();

    thing = first_inventory( cont );

    while ( thing ) {
        num_left = (int)thing->query_property( MAX_PROP ) -
                   (int)thing->query_property( NUM_SOLD );
        if( num_left < 1 ) {
            thing = next_inventory( thing );
            continue;
        }

        list += ({ (string)thing->a_short()+" for "+cost_string( thing,
            place, TP )+" ("+query_num( num_left, 0 )+" left)" });
        thing = next_inventory( thing );
    }

    if( sizeof( list ) ) {
        init_command("say I have the following items for sale:", 2 );
        init_command("say $C$"+query_multiple_short( list )+".", 4 );
    } else {
       init_command("say I'm afraid I have nothing for sale.", 2 );
    }


    TP->add_succeeded_mess( TO, "$N ask$s $D what goods "+
        HE+" has in stock.\n");
    return 1;

} /* do_list() */

/**
 * The main entrace to the sell stuff command.
 * @return 1 on success, 0 on failure
 */
void sell_thing( object player, object thing ) {
    int value;
    string item_name, place;
    object copy;

    if( !player )
        return;

    if( ENV(player) != ENV(TO) )
        return;

    if( !thing )
        return;

    item_name = (string)thing->query_property("item name");
    copy = (object)TO->create_object( item_name );

    if( !copy )
        switch ( (string)thing->query_property( TYPE ) ) {
            case "armour" :
            case "weapon" :
              copy = ARMOURY_H->request_item( item_name, 80 + random( 20 ) );
            break;
            case "object" :
              copy = clone_object( item_name );
            break;
        }

    if( !copy )
        copy = clone_object( explode( file_name( thing ), "#" )[ 0 ] );

    if( !copy )
        return;

    place = query_property("place");
    if( !place || place == "")
        place = "default";

    value = (int)player->query_value_in( place );
    if( place != "default" )
        value += (int)player->query_value_in("default");

    if( TO->query_cost( copy, player ) > value ) {
        do_command("say I'm afraid you can't afford to buy "+
            copy->the_short()+".");
        copy->move( "/room/rubbish" );
        return;
    }

    thing->add_property( NUM_SOLD, thing->query_property( NUM_SOLD ) + 1 );

    player->pay_money( MONEY_H->create_money_array( TO->query_cost( copy,
        player ), place ), place );

    tell_object( player, "You pay "+the_short()+" "+cost_string( copy,
        place, player )+".\n");
    tell_room( ENV(TO), player->the_short()+" gives "+the_short()+" some "
        "money.\n", player );

   if( copy->move( player ) ) {
       do_command("'Well, here's "+copy->the_short()+", but you can't carry "
           "it at the moment.  I'll put it on the ground.");
       copy->move( environment() );
       do_command(":puts "+copy->a_short()+" on the ground.");
   } else {
       tell_room( environment(), the_short()+" gives "+
           player->the_short()+" "+copy->a_short() +".\n");
   }

} /* sell_thing() */