コード例 #1
0
ファイル: treasury.c プロジェクト: ehershey/pd
void create() {
   ::create();
     set_guild("illuminati");
     set_name("Illuminati Tower");
     set_long("%^ORANGE%^The treasury for the Illuminati, this is where the guilds "
       "gold is stored. The room is bare white everywhere except for a "
       "small inscription on the opposite wall. A large steel door leads "
       "north into the hall.  For a list of commands please "
       "%^BOLD%^WHITE%^<read sign>%^RESET%^");
     set_properties((["light":1, "night light":1, "indoors":1, "no scry" : 1]));
     set_items(([ "inscription" : "It's a sign you can read."]));
     set_short("Illuminati Tower");
     set_exits(([
		"north" : ILROOM"floor2",
                "up"    : ILROOM"ilbank.c",
      ]));
}
コード例 #2
0
ファイル: treasury.c プロジェクト: ehershey/pd
void create() {
    ::create();
    set_guild("blacksails");
    set_name("Hold of the Black Trident");
    set_short("Hold of the Black Trident");
    set_long("%^BOLD%^%^BLACK%^The hold of the ship, the very bottom of the vessel. This is where all the pirate's loot is kept. Piles of gold and gems cover the floor A few chests are lined up against the wall, holding trinkets and other valubales. A large scroll has been nailed to the wall, detailing every last coin that has been put down here.%^RESET%^"
    );
    set_exits(([
	"up":BLACKSAILS"hall",
        "west":BLACKSAILS"bow",
      ]));
    set_properties(([
	"light":1,
	"night light":1,
	"no teleport":1,
	"no kill":1,
	"no bump":1,
	"no steal":1,
        "indoors":1,
      ]));
  set_smell("default", "The room smells like seawater and metal.");

  set_listen("default", "Theboards creak and groan under the pressure of the water..");
}
コード例 #3
0
ファイル: fluffius.c プロジェクト: smokeless/eotl
void extra_create() 
{
    set_name( "Ramsey" );
    add_alias( "ramsey" );
    add_alias( "khan" );
    add_alias( "guard" );
    add_alias( "ramsey khan" );
    
    set_short( "Ramsey Khan, Facility 31 Security" );
    set_ansi_short ( YEL "Ramsey Khan, Facility 31 Security" );
    
    set_long( "Ramsey stares idlely around the "
      "office, taking in every event and detail. "
      "Though he seems to be mainly focused on the "
      "exit to the west. You may not want to push your "
      "luck. His arms are massive and covered in thick fluffy "
      "hair. For some reason he smells like the stuffing " 
      "that is found inside of blankets. There maybe more "
      "to this man than meets the eye." );
    
    set_gender( "male" );
    set_race( "human" );
    
    set_guild( "fighter" );
    set_specialization( "bodyguard" );
    set_skill( "grapple", 20 );
    
    
    set_alignment( MALICIOUS_AL );
    
    set_stat( "str" , 100 );
    set_stat( "con" , 300 );
    set_stat( "wil" , 500 );
    set_stat( "dex" , 200 );
    
    full_heal();
    
    set_proficiency( "hands", 30 );
    set_skill( "dodge", 65 );
    
    set( NoStealP, 1 );
    set( NoStunP, 1 );
    
    set_natural_ac( 10 );
    
    set_heal_rate( 20 );
    set_heal_amount( 60 );
    
    set_chat_rate( 30 );
    set_chat_chance( 50 );
    
    add_phrase( "#spit" );
    add_phrase( "#say This way isn't for you" );
    add_phrase( "#growl" );
    add_phrase( "#emote smiles showing more teeth than necessary." );
    add_phrase( "#grin" );
    add_phrase( "#say Go head, ask me what happened to the last intern." );
    add_phrase( "#say I've killed more people for just looking at " 
      "that stairwell than you've got teeth in your head." );
    
    ask_me_about( "intern", "#say I put him in "
      "his place. Always asking about the stairwell, " 
      "always prying " );
    
    move_object( clone_object( FARMOR "shirt" ), THISO );
    move_object( clone_object( FARMOR "pants" ), THISO );
    move_object( clone_object( FWEAP  "nails" ), THISO );

//This call_out is seperate so that he will equip the nails and
//be at full health when he spawns. Since the nails do
//damage on wield.
    
    call_out( "equip", 1 );
    
    add_special_attack( "go_bear", THISO, 40 );
}