예제 #1
0
파일: wangtiejiang.c 프로젝트: mudchina/fy3
void create()
{
#include <kzznpc.h>

	set("area_name","ÑïÖÝ´òÌúÆÌ");
	set("area_file","/d/yangzhou/tiepu.c");

        set("vendor_goods", ([
                     "³¤½£":     __DIR__"obj/changjian",
                     "¶Ì½£":     __DIR__"obj/duanjian",
                     "Ø°Ê×":     __DIR__"obj/bishou",
                     "¸Öµ¶":     __DIR__"obj/gangdao",
                     "·ÉïÚ":     __DIR__"obj/feibiao",
		"tiejia":"/obj/std/armor/tiejia",
		"tongjia":"/obj/std/armor/tongjia",
		"pijia":"/obj/std/armor/pijia",
        ]) );

        setup();
carry_object("/obj/cloth")->wear();
carry_object("/obj/weapon/hammer")->wield();
carry_object("/obj/std/armor/tiekui")->wear();
carry_object("/obj/std/armor/tiejia")->wear();
carry_object("/obj/std/armor/tiexue")->wear();

add_money("silver",30);
}
예제 #2
0
void create_object(void)
{
    ::create_object();
    set_name("guard");
    add_id("dungeon guard");
    set_short("a darkling dungeon guard");
    set_long("One of the guards responsible for guarding the dungeons. " +
             "His skin is pale and his small, black eyes lack pupils. Two " +
             "long teeth protrude from his lower jaw. He stands there in " +
             "silence, observing your every move.\n");
    set_level(16);
    set_unarmed(0);
    set_db(3);
    set_hp(240);
    set_skill("combat",90);
    set_skill("longblade",90);
    set_skill("resist",90);
    set_skill("perception",90);
    set_wc(1);
    set_new_ac(1);
    add_money(random(400));

    make(ARMOUR + "dark_plate");
    make(WEAPON + "dark_bastsword");
    make(ARMOUR + "dark_lshield");
    make(ARMOUR + "dark_phelmet");
    make(ARMOUR + "dark_cloak");
    make(ARMOUR + "dark_glove");
    make(ARMOUR + "dark_boot");
    make(ARMOUR + "dark_amulet");
    init_command("wear all");
    init_command("wield sword");

    load_a_chat(15,({ "The dungeon guard tries to bite you!\n" }));
예제 #3
0
void create_object(void)
{
    set_short("Captain Hilary Rosen",1);
    set_long("Hilary is the captain of the Riaa. She rules it with an " +
             "iron hand. She has made it her mission in life to end piracy " +
             "and protect the bards who trust the Riaa to distribute " +
             "their goods around the world. She's not doing very well " +
             "at this particular moment.\n");
    set_name("hilary");
    add_id("captain"); //Added by Angelwings
    add_id("captain hilary");
    add_id("captain hilary rosen");
    add_id("hilary rosen");

    set_level(2);
    set_race("human");
    set_hp(80 + random(25));
    set_al(0);
    add_money(100 + random(20));
    set_gender(2);
    set_skill("combat",20 + random(10));

    make(PCWEAPON + "sword");
    make(PCARMOUR + "leather_armour");
    init_command("wield sword");
    init_command("wear armour");

    load_chat(10,({
        "Hilary says: Sign on to my crew and I'll make you rich and famous.\n",
        "Hilary says: All I do, I do for the bards.\n",
    }));
예제 #4
0
void create_object(void)
{
    set_short("Ferdirand Bumbleroot",1);
    set_long("Ferdirand Bumbleroot is a hobbit who operates the farm " +
             "that provides Hazeldown with most of the town's food. As " +
             "the major provider of such things, he's held in high regard " +
             "in the town. It is well deserved since he's good at what he " +
             "does. However, he currently has a problem with his farm. " +
             "Maybe he'd tell you about it if you would let him know " +
             "you're willing to <help> him with it?\n");
    set_name("ferdirand");
    add_id("ferdirand bumbleroot");
    add_id("hobbit");
    add_id("farmer");

    set_level(4);
    set_race("hobbit");
    set_al(300);
    add_money(100 + random(20));
    set_gender(1);

    load_chat(5,({
        "Ferdirand ponders deeply.\n",
        "Ferdirand mumbles: Everything must be perfect before Weeangel " +
        "gets here.\n",
        "Ferdirand says: Those damn crows...\n",
        "Ferdirand scratches his head.\n"
    }));
예제 #5
0
void operator_actions(){

	int isExit = 0;
	while(!isExit)
	{
		int current_action = -1;
		operator_action_menu();
		fscanf(stdin, "%d", &current_action);
		if(current_action >= 1 && current_action <= NUMBER_OF_OPERATOR_ACTIONS)
		{
			operatorActions = operator_acts[current_action - 1];
		}
		switch(operatorActions)
		{
			case OPERATOR_ADD_MONEY:
				add_money();
				break;
			case OPERATOR_SUB_MONEY:
				sub_money();
				break;
			case OPERATOR_EXIT:
				fprintf(stdout, "Session was ended...");
				logout();
				isExit = 1;
				break;
			default:
				fprintf(stdout, "Unknown operation.Try again.");
				break;
		}
	}
}
예제 #6
0
파일: taihuwang.c 프로젝트: mudchina/fy4
               (: smart_fight() :),
        }) );        
          
        set_skill("move", 200);
        set_skill("force", 200);
        set_skill("spells", 150);
        set_skill("unarmed", 200);
        set_skill("sword", 200);
        set_skill("parry", 150);
        set_skill("dodge", 150);
        set_skill("magic",150);
        set_skill("whip",200);        
        set_skill("qidaoforce", 150);
        set_skill("five-steps",180);
        set_skill("thunderwhip",180);
        set_skill("pofeng-strike",180);
                
        map_skill("unarmed","pofeng-strike");
        map_skill("force", "qidaoforce");
        map_skill("dodge","five-steps");
        map_skill("move","five-steps");
        map_skill("whip","thunderwhip");
        map_skill("parry","thunderwhip");
        
        
        set_temp("apply/dodge", 30);
        set_temp("apply/armor", 30);
        setup(); 
        add_money("gold", random(3));
        carry_object("/obj/armor/cloth")->wear();
        carry_object(__DIR__"obj/w_whip")->wield();
} 
예제 #7
0
set_guild(string hmm) {
  guild = hmm;
  name = RAND->gimme_a_male_name();
  set_name(name);
  set_short(CAP(name)+" the bartender");
  set_long(CAP(name)+" is the new bartender of the "+CAP(guild)+"'s Tavern.\n");
  set_level(1);
  set_alias("bartender");
  set_alt_name("std_bartender");
  set_gender(1);
  set_race("human");
  set_hp(50);
  set_al(0);
  set_wc(50);
  set_new_ac(9);
  set_skill("combat", 9);
  set_skill("unarmed", 9);
  set_skill("perception", 5);
  set_skill("resist", 5);
  add_money(25);
  load_chat(1, 
    ({
      CAP(name) + " says: I don't know what to say?\n",
      CAP(name) + " asks: Want some more alcohol?\n",
      CAP(name) + " says: Alcohol makes people smarter.\n",
      CAP(name) + " asks: Who needs brain cells?\n",
    })
  );
예제 #8
0
파일: beholder.c 프로젝트: smokeless/eotl
void extra_create()
{
    set_name( "a beholder" );
    add_alias( "beholder" );
    set_short( "a beholder" );
    set_long( "This is a beholder. It is essentially a floating head "
      "with one single, cyclops-like eye surrounded by ten smaller eye "
      "stalks. Its massive, gaping maw is set in a permanent grin. "
      "It looks like a sphere covered in eyes, with extra eyes "
      "growing out of it. Little eye sprouts if you will." );
    set_gender( "unknown" );
    set_race( MON "beholder_race" );
    //set_guild()
    //set_specialization
    set_skill( "dodge", 50 );
    set_alignment( -4000 );
    set_stat( "str", random( 5000 ) );
    set_stat( "con", random( 5000 ) );
    set_proficiency( "hands", 50 );
    set_move_rate( 60 );
    set_move_chance( 50 );
    set_aggressive( 3 );
    add_combat_message( "smack", "smacks" );
    add_combat_message( "slup", "slurps" );
    add_combat_message( "grab", "grabs" );
    set_type( "blunt" );
    set_hit_bonus( 2 ); //So many eyes.
    set_heal_rate( 30 );
    set_heal_amount( random( THISO->query_max_hp() ) - random( 300 ) );
    set_natural_ac( 5 );
    set( "loot", 1 );
    add_money( random( 1000 ) );
    add_special_attack( "blastem", THISO, 10 );
}
예제 #9
0
void create_object(void)
{
    ::create_object();
    set_name("keeper");
    add_id("dungeon keeper");
    set_short("a dungeon keeper");
    set_long("One of the darklings serving in the dungeons of the castle. " +
             "He looks human, but has pale skin and long, black hair. Long, " +
             "He has two long, protruding teeth in his lower jaw. He " +
             "observes you coldy with his small, black, pupilless eyes.\n");
    set_level(14);
    set_unarmed(0);
    set_db(3);
    set_hp(210);
    set_skill("combat",85);
    set_skill("longblade",85);
    set_skill("resist",85);
    set_skill("perception",85);
    set_aggressive(1);
    set_walking();
    set_wc(25);
    set_new_ac(25);
    add_money(random(200));
    make(ARMOUR + "dark_plate");
    make(WEAPON + "dark_lsword");
    make(ARMOUR + "dark_lshield");
    make(ARMOUR + "dark_helmet");
    make(ARMOUR + "dark_glove");
    make(ARMOUR + "dark_boot");
    make(ARMOUR + "dark_amulet");
    init_command("wear all");
    init_command("wield sword");
    make(OBJECT + "cell_key");

    load_a_chat(15,({ "The darkling tries to bite you!\n" }));
예제 #10
0
void create_object(void)
{
    set_short("Dithe the pirate shopkeeper",1);
    set_long("Dithe is a drunken slob of a shopkeeper. You feel your " +
             "trading skill increase every time he stumbles or bumps " +
             "into a shelf as he tries to move around his shop.\n");
    set_name("dithe");
    add_id("man");
    add_id("shopkeeper");
    add_id("dithe the shopkeeper");
    set_level(2);
    set_race("human");
    set_hp(80);
    set_al(0);
    set_gender(1);
    set_wc(1);
    set_ac(0);
    add_money(200);

    load_chat(1,({ "Dithe stumbles.\n",
                   "Dithe bumps into a shelf.\n",
                   "Dithe takes a small bottle from a pocket and drinks " +
                   "from it when he thinks you're not looking.\n",
                   "Dithe mumbles something incomprehensible.\n"
                 }));
예제 #11
0
파일: boss1.c 프로젝트: mudchina/fy3
void create()
{
#include <kzznpc.h>

        set("long",
                "他成天带着笑容,可是心头却灵醒得很。\n"+
                "作为茶馆的老板,成天和一帮没事干的无聊家伙混在一起。\n"+
                "消息很是灵通。\n");
	set("inquiry", ([
                "温家" : "温家是成都的大户,但是却是外地迁来的,\n"+
                         "听说那家人曾在江湖中大大有名,是为了避仇到成都的。\n",
        ]));
	set("vendor_goods", ([
                "龙湖翠":__DIR__"obj/longhucui",
        ]));
	set("area_name","成都陆羽茶馆");
	set("area_file","/d/chengdu/chaguan.c");
	set("ziyuan","茶叶");
	set("jizhi",50);
	set("kaifa",10);

	setup();
carry_object("/obj/cloth")->wear();
add_money("silver",4);
}
예제 #12
0
static void
init_dangerlevel(int val) 
{
    set_long("It is a humanoid with an octopus-like head. It has four " +
             "tentacles around a lamprey-like mouth. Its eyes are pale " +
             "white.");
    add_property("unarmed_damage_type", "magic");
    add_money(750 + random(10 * val));
    load_a_chat(25 + val / 4, ({ store_fp("cast_mind_drain") }));
예제 #13
0
void setup(void) {
   set_name("jailer");
   set_gender("male");
   set_race("human");
   set_short("The jailer");
   set_long("He guards the dungeons.");
   add_money("ducat", 100 + random(50));
   set_level(20);
   set_hit_skill("combat/unarmed");
   set_skill("combat/unarmed", BASE_OFFENSE * 4);
   set_skill("combat/defense", BASE_DEFENSE * 5);
}
예제 #14
0
파일: COW.C 프로젝트: dharmabumstead/vrmud
create() {
   ::create();
   call_flag = 0;
   set_id("cow");
   set_short("a cow");
   set_long("\
It's your average, everyday cow.  It eyes you with soft brown eyes as it\n\
contentedly munches its cud.  It'll probably be steaks pretty soon....\n");
   set_level(1);
   set_spell_chance(10);
   set_spell_dam(0);
   set_ac(3);
   set_wc(5);
   add_money(30);
}
예제 #15
0
void create_object(void)
{
    ::create_object();
    set_short("a child running an errand");
    set_long("Lidyr Carelyn is ten years old. He is running an errand for " +
             "his mother.\n");
    set_name("lidyr");
    add_id("boy");
    set_gender(1);
    set_walking();
    add_money(25 + random(10));

    load_chat(4,({ "The child mumbles: Now what was it that I was supposed " +
                   "to do?\n",
                   "The child says: Sorry, I don't have time to talk " +
                   "right now.\n" }));
예제 #16
0
static void
create() 
{
    ::create();
    set_name("skeleton");
    add_long("It is tattered with dried flesh.");
    scale_level(14, 17);
    scale_hp(250, 325);
    scale_wc(28, 32);
    scale_ac(4, 7);
    set_al(-500);
    set_aggressive(1);
    setmin("stumbles in");
    setmout("stumbles");
    add_money(random(600));
    add_property("unarmed_damage_type", ({ "claw", "bite" }));
예제 #17
0
string try_me()
{ 	object me;
	me = this_player();
        if((string)me->query("family/family_name")!="将军府"){
        return ("你非官家,何来俸银!!!\n");
	}
	else
        if(!(int)me->query("money_get")){
                me->set("money_get", 1);
        }
        if((int)me->query("money_get") < (int)me->query("combat_exp")){
                add_money("gold", 1);
                command("give 1 gold to " + me->query("id"));
                me->add("money_get", 500);
		return ("是时候了,这是本月俸银.\n");
        }
	else
                me->add("money_get", 100);
		return ("月钱刚送过,怎么又来要了?\n");
}
예제 #18
0
void create_object(void)
{
    set_short("an old storyteller");
    set_long("An old, grey haired man dressed in a grey tunic. His " +
             "features are sharp and his deep blue eyes are bright and " +
             "intelligent. His long, slender fingers trace intricate " +
             "patterns trough the air as he tells epic tales of heroes " +
             "and villains. Maybe he would tell you a story about the "+
             "valley if you sat down at his table and asked?\n");
    set_name("storyteller");
    add_id("man");
    set_level(4);
    set_race("human");
    set_hp(100);
    set_al(350);
    set_gender(1);
    set_wc(6);
    set_ac(1);
    set_unarmed(1);
    add_money(200 + random(200));
}
예제 #19
0
파일: shenyinqiang.c 프로젝트: mudchina/fy4
                (: smart_fight() :),    
        }) ); 
        set("force",1000);
        set("max_force",1000);
        set("force_factor",30);
        
        switch (random(5)) {
                case 0: set("resistance/sen",30);
                        break;
                case 1: set("resistance/gin",30);
                        break;
                default: set("resistance/kee",30);
                }
        
        set_skill("move", 160);
        set_skill("parry", 160);
        set_skill("dodge", 160);
        set_skill("unarmed", 150);
        set_skill("skyforce",150);
        set_skill("iron-cloth", 120);
        set_skill("spear", 200);
        set_skill("xuezhan-spear",130);
        set_skill("hawk-steps",150);
        set_skill("lingxi-zhi",150);
        set_skill("henglian",100);
        
        map_skill("iron-cloth","henglian");
        map_skill("force", "skyforce");
        map_skill("parry","xuezhan-spear");
        map_skill("spear","xuezhan-spear");
        map_skill("dodge","hawk-steps");
        map_skill("move","hawk-steps"); 
        map_skill("unarmed","lingxi-zhi");     
        
        setup();
        carry_object("obj/armor/cloth")->wear();
        carry_object(__DIR__"obj/silver_spear")->wield();
        add_money("gold", random(5));
} 
예제 #20
0
파일: yaolaoban.c 프로젝트: mudchina/fy3
void create()
{
#include <kzznpc.h>

  	set("area_name","苏州姚记钱庄");
	set("area_file","/d/suzhou/qianzhuang.c");
	set("long","老与事故的钱庄老板。\n");
 
	set("attitude", "friendly");

        set("inquiry", ([
            "利息":   "我们庄的规矩是提取两成保管费。\n",
            "lixi":   "我们庄的规矩是提取两成保管费。\n",
                       ]) );

	setup();
	
	carry_object(__DIR__"obj/duanjian")->wield();
	carry_object(__DIR__"obj/hupi")->wear();

	add_money("gold", 2);
}
예제 #21
0
void create_object(void)
{
    set_short("Lallan the apothecary",1);
    set_long("Lallan is a man in his fifties with graying hair and blue " +
             "eyes.\n");
    set_name("apothecary");
    add_id("lallan");
    add_id("man");
    set_level(4);
    set_race("human");
    set_hp(100);
    set_al(200);
    set_gender(1);
    set_wc(6);
    set_ac(1);
    set_unarmed(1);
    add_property("no_flee");
    add_money(200 + random(200));

    load_chat(10,({ "Lallan says: Take my advice, leave while you still " +
                    "can.\n",
                    "Lallan says: If you're staying here, you'll be needing " +
                    "my wares.\n"
                  }));