#include <lib.h>
inherit LIB_ROOM;
int PreExit(mixed args...){
object *livings;
string duderace = this_player()->GetRace();
if(sizeof(users()) > 99) return 1;
livings = get_livings(this_object());
foreach(object living in livings){
if(base_name(living) == "/domains/default/vehicles/strider" &&
previous_object(2) != living ){
write("The strider is in your way.");
return 0;
}
}
return 1;
}
static void create() {
object ob;
room::create();
SetClimate("indoors");
SetAmbientLight(30);
SetShort("Test Labs Corridor East");
SetLong("This is the main corridor of the test labs. East is the mounted combat arena. The corridor runs west from here.");
SetExits( ([
"west" : "/domains/default/room/wiz_corr_east2",
]) );
AddExit("east", "/domains/default/virtual/arena/1,10", (: PreExit :));
SetInventory(([
"/domains/default/vehicles/strider" : 1,
]));
SetProperty("no attack", 1);
}
int CanReceive(object ob) {
return room::CanReceive();
}
void init(){
::init();
}