Beispiel #1
0
varargs protected void setup_messages(string name, mixed up_dest, mixed down_dest)
{
  string dirs;
  if(up_dest)
    add_method("ascend",up_dest);
  if(down_dest)
    add_method("descend",down_dest);
  if (up_dest)
    {
      if (down_dest)
	dirs = "up and down";
      else
	dirs = "upwards";
    }
  else
    {
      if( down_dest )
	dirs = "downwards";
      else
	dirs = "nowhere";
    }
  if (query_plural())
    add_id_no_plural(name);
  else
    add_id( name );
  set_long(sprintf("The %s %s %s",
		   name,
		   query_plural()?"lead":"leads",
		   dirs) );
  set_in_room_desc(sprintf("There %s %s here, leading %s.",
			   query_plural()?"are ":"is a ",
			   name,
			   dirs) );
}
Beispiel #2
0
void setup() {
    set_name("Greeter");
    set_gender(1);
    set_proper_name("Greeter");
    set_in_room_desc("The LIMA mudlib greeter stands here, smiling politely.");
    set_long("The greeter stands here patiently, ready to talk to people with questions about the LIMA mudlib.");
    
    set_options( ([
	"hello" : "Hello!",
	"greeter" : "What do you do?",
	"where" : "Where do I get LIMA?",
	"problems" : "I'm having problems setting up LIMA.",

	"compilation" : "Where should I report MudOS compilation problems?",
	"intermud" : "How do I get on intermud (I3)?"
    ]) );
    set_responses( ([
	"hello" : "Hello, and welcome to the LIMA mudlib!  I'm designed to answer some basic questions you might have about it.",
	"greeter" : "I help people with basic questions and problems with the LIMA mudlib.  I also demonstrate LIMA's M_CONVERSATION module, which makes building NPCs who can hold intelligent conversations a snap!  Feel free to read my code, its in " + __FILE__ + ".",
	"where" : "LIMA, like almost all MudOS libs, is available at ftp.imaginary.com, and its mirror aragorn.uio.no.  Look in the /pub/LPC/lib/LIMA directory.",
	"problems" : "I can help you with compilation problems, and getting your MUD on the intermud network.@@intermud,compilation",

	"compilation" : "Problems compiling MudOS should be reported to [email protected].",
	"intermud" : "First, edit config.h and make sure ADMIN_EMAIL is set correctly.  If it isn't, you will not be permitted to connect.  Then do 'update /daemons/imud_d'.  You should be on the net.  You can check with 'mudinfo <your mud name>' from here.  Use 'igossip /on' and 'icode /on' to turn on the standard channels."
    ]) );

    set_start( ({ "hello", "greeter", "where", "problems" }) );
Beispiel #3
0
void setup( void ) {
  set_id( "board" );
  set_adj( "message", "large" );
  set_long( "" );
  set_in_room_desc( "A huge message board." );
  set_board_id( "main" );
  query_environment()->subscribe_event( "body_look" );
  query_environment()->subscribe_event( "body_look_at" );
}
Beispiel #4
0
void setup( void ) {
    set_id( "gloves" );
    set_adj( "red" );
    set_long( "A pair of leather gloves." );
    set_in_room_desc( "A pair of gloves." );
    set_gettable( 1 );
    set_slot( "hands" );
    set_wear_message( "$N $vwear $o." );
    set_remove_message( "$N $vremove $o." );
}
Beispiel #5
0
void setup()
{
    set_id ("wall","inscription", "writing", "passage");
    set_in_room_desc ("There is an inscription carved into the south wall.");
    set_long ("The inscription is carved into the cave wall.  You notice under the inscription the outline of a passage.\n");
    set_text ("It says:\n\tThis space intentionally left blank.");
    set_close_msg( "The passage slides shut.");
    set_open_msg( "The rock underneath the inscription slides open, revealing a passage.\n");
    setup_door("dock wall", "south", "/domains/std/rooms/caves/Navigation_Room");
}
Beispiel #6
0
void setup( void ) {
  set_id( "jacket" );
  set_adj( "leather", "black" );
  set_long( "This is the kind of leather jacket all %^RED%^bad%^RESET%^ dudes wear." );
  set_in_room_desc( "A hip leather jacket." );
  set_gettable( 1 );
  set_slot( "body" );
  set_wear_message( "$N $vput on $o. Man, $N $vare cool!" );
  set_remove_message( "$N $vtake off $o, and suddenly $vlook extremely dull." );
}
Beispiel #7
0
void setup()
{
  set_name("rat");
  /*  set_gender(0); */ /* Leave out the gender specification, get a random one. */
  add_adj( "filthy" );
  set_in_room_desc("A small filthy rat.");
  set_long("The rat smells awful.");
  set_race( "rodent" );
  set_max_hp( 7 );
  set_hit_skill("combat/unarmed");
  set_skill( "combat/unarmed", 50 );
  set_skill( "combat/defense", 100 );
}
Beispiel #8
0
void setup()
{
    set_in_room_desc("A small sign floats comfortably in mid-air.");

    set_long("Perhaps you should read it");
    set_text( @ENDMARKER
              Welcome to the wonderful world of Lima Bean, created by Rust,
              Deathblade and Beek.  This rooms and the objects here are designed to
              be examples of how to effectively use the Lima mudlib.  Please feel
              free to make comments and suggestions.
              ENDMARKER );

}
Beispiel #9
0
void setup() 
{
    set_id("keg");
    set_long( "A great round keg of ale.");
    set_size( TOO_LARGE );
    set_source_of ( __DIR__ "ale" );
    set_in_room_desc( "A keg of ale stands against one wall." );
    set_long ( "It looks like a fat barrel laying on its side. "
		"On the side of the keg is a logo for the Frobozz Magic Ale Corporation."
		 );
    set_fluid_disturb_action( "A head of foam forms on the ale." );
    set_fill_action( "$N $vturn on the tap of the keg and $vpour some ale into $p $o." );
    set_drink_action( 0 );
}
Beispiel #10
0
void setup( void ) {
  set_id( "shield" );
  set_adj( "round" );
  set_long( "A round shield." );
  set_in_room_desc( "A round shield." );
  set_gettable( 1 );

  set_ac( 2 );

  set_wield_type( "single" );
  set_wield_message( "$N $vwield $p $o." );
  set_unwield_message( "$N $vremove $p $o." );
  set_value( 1 );
  set_size( 10 );
}
Beispiel #11
0
void setup(){
set_name("Indra");
set_gender(2);
set_proper_name("Indra");
set_in_room_desc("An elven wench named Indra is here.");
set_long("Indra is a dazzlingly beautiful elven woman. She looks at you"+
" with a smile that almost melts you where you stand. And taking into account"+
" that she is also stark naked, you don't have much to say right now.");
add_pattern("%s smiles.", (: $1 !="Indra Elvenmist" ? "emote smiles happily"+
" at you." : 0 :));
add_pattern("%s kisses%s", "emote returns your kiss and puts her arms around"+
" your neck.");
add_pattern("%s pulls %s", "emote lets her tounge play around in your"+
" mouth, stroking her hands through your hair.");
add_pattern("%s says, \"F**k me gently with a chain saw!\"", "emote starts up"+
" her chainsaw and grins happily at you.");

}
Beispiel #12
0
void setup() {
  add_relation("in");
  set_default_relation("in");
  set_gettable("It is securely anchored.\n");
  set_id("mailbox", "box");
  set_adj("small");
  set_in_room_desc("There is a small mailbox here.");
  set_max_capacity(SMALL);
#ifdef USE_SIZE
  set_size(MEDIUM);
#endif
#ifdef USE_MASS
  set_mass(MEDIUM);
#endif
  set_objects( ([
		 "leaflet" : 1
  ]) );
}
Beispiel #13
0
void setup()
{
set_relations("on");
    set_adj("ugly");
    set_id("horse");
    set_long("Damn, the horse is ugly!");
    add_relation("on",VERY_LARGE*2);
    set_default_relation("on");
    // So people will see: Sitting on the horse you see Rust...
//  set_primary_verb("sitting");
    set_in_room_desc("There is an ugly horse here.");
    set_get_on_msg("$N $vget onto the ugly horse.\n");
    set_get_off_msg("$N $vdismount from the ugly horse.\n");

// We could opt for simple messages, and uncomment these
// 2 lines, but we can also go for more complex msgs (see below).
    set_arrival_msg("$N $vtrot off.\n");
    set_departure_msg("$N $vtrot in.\n");
    add_method("mount", this_object());
    add_method("dismount", (: environment(this_object()) :) );
}
Beispiel #14
0
void event_body_look( mixed *who) {
  set_in_room_desc( "The General message board [" + query_message_count() + " msgs, " + query_new_message_count() + " new]" );
}