mud/lib/domains/voluntaria/room/bridge.c

71 lines
2.5 KiB
C

#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. If you would like to set a course type navicomputer followed by where you would like to go to, To see where the navicomputer knows how to go, look at it.");
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, you can also blast into space",
]));
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;
write("You blast off into space");
}
else if(dest == "voluntaria") {
planet = 2;
write("You plot a course for Voluntaria");
}
else if(dest == "oogtopia") {
planet = 3;
write("you plot a course for Oogtopia");
}
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->SetPlanet(planet);
exit->SetPlanet(planet);
if(!planet == 1) {
}
return 1;
}