69 lines
2.3 KiB
Plaintext
69 lines
2.3 KiB
Plaintext
#include <lib.h>
|
|
#include ROOMS_H
|
|
|
|
inherit LIB_ROOM;
|
|
|
|
void create() {
|
|
room::create();
|
|
SetClimate("inside");
|
|
SetAmbientLight(30);
|
|
SetShort("The Bridge of the USS Profit");
|
|
SetLong("This is the bridge of the USS profit, From here you can set a course to any of the planets that are in the navicomputer, or you can simply take off into space.");
|
|
SetItems(([
|
|
({ "advertizements", "ads", "ad", "advertizement" }) : "eye catching advertizements for a wide assortment of pornography, recreational drugs, and violent videogames",
|
|
({ "announcement", "terms", "terms of service" }) : "Don't look at them, listen to them.",
|
|
({ "navicomputer", "computer", "navigator", "navi" }) : "The known planets are: Voluntaria and Oogtopia",
|
|
]));
|
|
SetInventory(([
|
|
"/domains/voluntaria/npc/captain" : 1,
|
|
]));
|
|
SetExits(([
|
|
"east" : "/domains/voluntaria/room/commandhall",
|
|
]));
|
|
|
|
SetListen(([
|
|
({ "announcement", "terms of service", "terms" }) : "By entering this space ship you have agreed to pay for transport to the planet of Voluntaria. There you will participate in a labor program to repay the debt which you are taking on for the transport to that paradise. If you disagree with the terms of this agreement you are welcome to attempt to escape through the airlock doors. Be careful as if they have closed we are already airborn, and you are likely to find yourself in the vacuum of space.",
|
|
]));
|
|
|
|
SetTown("USSprofit");
|
|
SetNoModify(0);
|
|
SetCoordinates("5000,5000,0");
|
|
|
|
}
|
|
void init(){
|
|
add_action( "navicomputer", "navicomputer" );
|
|
::init();
|
|
}
|
|
|
|
object airlock = load_object("domains/voluntaria/room/airlock.c");
|
|
object exit = load_object("domains/voluntaria/room/commandexit.c");
|
|
|
|
|
|
int navicomputer (string dest) {
|
|
int planet;
|
|
dest = lower_case(dest);
|
|
if(dest == "space") {
|
|
planet = 1;
|
|
}
|
|
else if(dest == "voluntaria") {
|
|
planet = 2;
|
|
}
|
|
else if(dest == "oogtopia") {
|
|
planet = 3;
|
|
}
|
|
else {
|
|
notify_fail("The navicomputer doesn't have coordinates for that location. type your request as navicomputer oogtopia if you want to go collect more volunteers\n");
|
|
return 0;
|
|
}
|
|
airlock->SetDoorClosed(1);
|
|
airlock->SetPlanet(planet);
|
|
if(!planet == 1) {
|
|
airlock->SetDoorClosed(0):
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
|