lpmud/mudlib/
lpmud/mudlib/doc/
lpmud/mudlib/doc/LPC/
lpmud/mudlib/log/
lpmud/mudlib/players/
lpmud/mudlib/room/maze1/
lpmud/mudlib/room/sub/
#include "std.h"

#undef EXTRA_INIT
#define EXTRA_INIT add_action("dive"); add_verb("dive");

string bag;

ONE_EXIT("room/jetty","west",
	 "All at sea",
	 "You are swimming out at the sea.\n", 1)

dive() {
    object ob;

    ob = first_inventory(this_player());
    while(ob) {
	if (call_other(ob, "can_put_and_get", 0)) {
	    call_other(this_player(), "move_player", "down#room/sea_bottom");
	    return 1;
	}
	ob = next_inventory(ob);
    }
    write("You can't breath under water !\n");
    write("You should try to get some portable air supply!\n");
    return 1;
}