init: add workspace files
This commit is contained in:
22
world/map/bj/tdh/andao.js
Normal file
22
world/map/bj/tdh/andao.js
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
this.inherits(ROOM);
|
||||
this.name = "暗道";
|
||||
this.desc = "地道里一片漆黑,呼呼的风声从四面八方传来。你什么也看不见,只能在地道里瞎摸乱撞。西面似乎隐隐约约有人说话,但只一会儿又没声了。你使劲地摇了摇头,很怀疑这到底是不是幻觉。好象你已经迷路了。";
|
||||
|
||||
this.exits = { "west": "bj/tdh/andao", "south": "bj/tdh/andao", "north": "bj/tdh/andao", "east": "bj/tdh/andao" };
|
||||
this.on_enter = function (me) {
|
||||
me.notify("你什么也看不见,只能在地道里瞎摸乱撞,好象你已经迷路了。");
|
||||
}
|
||||
this.on_leave = function (me, dir) {
|
||||
if (dir == 'west') {
|
||||
var count = me.add_temp("fb/tdh/andao", 1);
|
||||
if (count > 3) {
|
||||
me.moveto("bj/tdh/andao2", me.name + "向西方离去。", me.name + "走了过来。");
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
me.set_temp("fb/tdh/andao", 0);
|
||||
}
|
||||
|
||||
}
|
||||
6
world/map/bj/tdh/andao1.js
Normal file
6
world/map/bj/tdh/andao1.js
Normal file
@@ -0,0 +1,6 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "暗道";
|
||||
this.desc = "这是一条黑漆漆的地道,曲曲折折地通向前方。两边都是土墙,隐约可以听到上面脚底落地的声音。空气中弥漫着潮湿的泥土气息,令人感到十分凉爽。一个道人站在这里,守卫着上面的两个出口。";
|
||||
this.exits = { "up": "bj/tdh/neishi", "west": "bj/tdh/andao" };
|
||||
|
||||
this.set_npc("bj/tdh/xuan");
|
||||
6
world/map/bj/tdh/andao2.js
Normal file
6
world/map/bj/tdh/andao2.js
Normal file
@@ -0,0 +1,6 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "暗道";
|
||||
this.desc = "终于走出了暗道,你长长的舒了一口气。北边是天地会青木堂的大厅,明亮的灯光让人感到无比温暖。";
|
||||
|
||||
this.exits = { "east": "bj/tdh/andao", "north": "bj/tdh/dating" };
|
||||
this.set_npc("bj/tdh/wu");
|
||||
16
world/map/bj/tdh/ceting.js
Normal file
16
world/map/bj/tdh/ceting.js
Normal file
@@ -0,0 +1,16 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "侧厅";
|
||||
|
||||
this.desc = "这里是侧厅,靠墙是一排书架,摆满了各种拳谱、书籍。墙角有一张木床。天地会总舵主陈近南常常在这里读书、休息。";
|
||||
|
||||
this.exits = { "west": "bj/tdh/dating" };
|
||||
this.items = OBJ.create_by_odds([
|
||||
{
|
||||
obj: ["book/book#dodge", "book/book#force", "book/book#unarmed", "book/book#sword", "book/book#blade", "book/book#parry"],
|
||||
odds: 8000
|
||||
}, {
|
||||
obj: ["book/bc#yunlongxinfa", "book/bc#yunlongjian", "book/bc#yunlongbian", "book/bc#yunlongshenfa", "book/bc#wuhuduanmendao",
|
||||
"book/bc#houquan"],
|
||||
odds: 4000
|
||||
}
|
||||
]);
|
||||
7
world/map/bj/tdh/dating.js
Normal file
7
world/map/bj/tdh/dating.js
Normal file
@@ -0,0 +1,7 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "青木堂";
|
||||
this.desc = "这里就是天下闻名的天地会青木堂大厅,只见一张板桌上供着两个灵牌,中间一个写着“大明天子之位”,侧边一个写着“大明延平郡王郑之位”。此外有一块<cmd cmd='look baimu'>白木(baimu)</cmd> ,上面密密麻麻全是血字。厅侧有一副<cmd cmd='look duilian'>对联(duilian)</cmd> 。东边是侧厅,南北都是暗道。";
|
||||
this.set_item("baimu", "白木","只见白木上写道:天地万有,回复大明。吾人当同生共死,仿桃园故事,约为兄弟,姓洪名金兰,合为一家。拜天为父,拜地为母, 日为兄,月为姊妹,焚香设誓,一雪前耻,顺天行道,恢复明朝。歃血为盟,神明降鉴。");
|
||||
this.set_item("duilian", "对联", "地振高冈,一派溪山千古秀\n门朝大海,三河合水万年流");
|
||||
this.exits = { "south": "bj/tdh/andao2", "north": "bj/tdh/kedian", "east": "bj/tdh/ceting" };
|
||||
this.set_npc("bj/tdh/chen");
|
||||
5
world/map/bj/tdh/hct.js
Normal file
5
world/map/bj/tdh/hct.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "回春堂药店";
|
||||
this.desc = "这是一家药铺,一股浓浓的药味让你几欲窒息,那是从药柜上的几百个小抽屉里散发出来的。一位老者在柜台后站着。看到你进来,药铺伙计警惕的看了你一眼。";
|
||||
this.exits = { "west": "bj/tdh/neishi" };
|
||||
this.set_npc("bj/tdh/huoji","bj/tdh/xu");
|
||||
3
world/map/bj/tdh/hutong.js
Normal file
3
world/map/bj/tdh/hutong.js
Normal file
@@ -0,0 +1,3 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "胡同";
|
||||
this.desc = "";
|
||||
39
world/map/bj/tdh/kedian.js
Normal file
39
world/map/bj/tdh/kedian.js
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
this.inherits(ROOM);
|
||||
this.name = "客店后院";
|
||||
this.desc = "这里客店后院。一阵阵打斗之声从东面的厢房中传来,其中夹杂着一个女子的声音。房门的板壁不住的震动,似乎客房四周的板壁都要被刀风掌力震坍一般。西首也是厢房,不时有人探头出来观望。北面是客店大门。";
|
||||
|
||||
this.exits = { "east": "bj/tdh/kedian3", "south": "bj/tdh/andao", "west": "bj/tdh/hutong"};
|
||||
this.on_enter = function (me) {
|
||||
me.notify("你走出天地会暗道,发现来到一处客店的后院。");
|
||||
}
|
||||
|
||||
this.on_leave = function (me,dir) {
|
||||
if (dir === "east") {
|
||||
var lv = me.query_skill("dodge", 0);
|
||||
if (lv < 200) {
|
||||
return me.notify_fail("你一步踏进客房,突觉一股力道奇大的劲风激扑出来,将你一撞,你登时立足不稳,腾腾腾到退三步,一跤坐倒。");
|
||||
}
|
||||
}
|
||||
if (dir === 'west') {
|
||||
this.actions['lkfb'].action(me);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
this.add_action('lkfb', null, function (me, par) {
|
||||
|
||||
if (par) {
|
||||
|
||||
WORLD.COMMANDS['cr'].enter(me, 'over');
|
||||
|
||||
me.moveto(ROOM.Get('bj/hg/xiaolu'));
|
||||
|
||||
me.send('你从客栈后院出来,来到一个胡同里面。');
|
||||
} else {
|
||||
me.send('你即将离开这个副本进入公共区域,是否确认?');
|
||||
me.send_commands('lkfb ok', '确认进入');
|
||||
}
|
||||
|
||||
});
|
||||
8
world/map/bj/tdh/kedian3.js
Normal file
8
world/map/bj/tdh/kedian3.js
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
this.inherits(ROOM);
|
||||
this.name = "东客房";
|
||||
this.desc = "一进门,只见六个喇嘛手持戒刀,围着一白衣女尼拼命砍杀,只是给白衣女尼的袖力掌风逼住了,欺不近身。但那白衣女子头顶已冒出丝丝白气,显然已尽了全力。她只一条臂膀,再支持下去恐怕难以抵敌。地上斑斑点点都是血迹。";
|
||||
|
||||
this.exits = { "west": "bj/tdh/kedian"};
|
||||
this.set_npc(["bj/tdh/lama",6],"bj/tdh/dubi");
|
||||
31
world/map/bj/tdh/neishi.js
Normal file
31
world/map/bj/tdh/neishi.js
Normal file
@@ -0,0 +1,31 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "内室";
|
||||
this.desc = "这里是一个空荡荡的房间,除了<cmd cmd='look floor'>地板(floor)</cmd>,什么也没有。";
|
||||
this.exits = { "east": "bj/tdh/hct" };
|
||||
this.set_npc("bj/tdh/guan");
|
||||
this.set_item("floor", "地板", "你试著敲了敲地板,声响清脆,下面似乎是空心的。", [
|
||||
["open", "移开", function (me) {
|
||||
me.from_attack(300, 100,
|
||||
"$N掀开地板,只听“唰”的一声, 地道里突然白光一闪,一柄长剑倏的伸出,刺向你的小腹",
|
||||
"<hir>$N匆忙间闪避不急,一声惨嚎,被长剑刺了个正着。</hir>",
|
||||
"$N赶紧向旁边一跳,躲了过去。");
|
||||
me.send_room("一个道人从洞里探出头来,看了$N一眼,又伸手把地板关上了。");
|
||||
}]
|
||||
]);;
|
||||
this.add_action("knock", "敲地板", function (me) {
|
||||
if (this.query_exits("bj/tdh/andao1")) {
|
||||
return mo.notify("地板已经敲开了你还想干嘛?");
|
||||
}
|
||||
var npc = this.find_by_path("bj/tdh/guan");
|
||||
if (npc) {
|
||||
me.notify("关夫子对你喝到:你想干什么?");
|
||||
npc.do_kill(me);
|
||||
return;
|
||||
}
|
||||
me.send_room("$N在木板上咚地敲了一下。");
|
||||
var count= me.add_temp("fb/tdh/knock", 1, 1000);
|
||||
if (count == 3) {
|
||||
me.send_room("从地板里边伸出一双手把地板掀开了。");
|
||||
this.add_exit("down","bj/tdh/andao1");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user