コード例 #1
0
ファイル: greeter.c プロジェクト: ClockworkSoul/MortalRemains
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" }) );
コード例 #2
0
ファイル: platemail.c プロジェクト: Lundex/lima
void setup()
{
  set_adj("admantine");
  set_id("platemail");
// platemail acts as if it were plural
  set_proper_name("admantine platemail");
#ifdef USE_SIZE
  set_size(LARGE);
#endif
#ifdef USE_MASS
  set_mass(LARGE);
#endif
  set_slot("torso");
  set_armor_class(15);
}
コード例 #3
0
ファイル: indra.c プロジェクト: Lundex/lima
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.");

}