init: add workspace files
This commit is contained in:
6
world/map/bj/zhuang/changlang.js
Normal file
6
world/map/bj/zhuang/changlang.js
Normal file
@@ -0,0 +1,6 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "长廊"
|
||||
this.desc = "这是条长长的走廊。四处黑沉沉的。";
|
||||
this.exits={"north":"bj/zhuang/xiaowu","south":"bj/zhuang/dating"};
|
||||
|
||||
this.set_npc("bj/shenlong/dizi");
|
||||
3
world/map/bj/zhuang/dalu.js
Normal file
3
world/map/bj/zhuang/dalu.js
Normal file
@@ -0,0 +1,3 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "青石大道"
|
||||
this.desc = "你走在一条小路上。前面道路崎岖,行人很少。往南有条小路通往城内。";
|
||||
27
world/map/bj/zhuang/damen.js
Normal file
27
world/map/bj/zhuang/damen.js
Normal file
@@ -0,0 +1,27 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大门"
|
||||
this.desc = "这里就是文士庄允城的旧居。自从他被朝廷抓走后,这里好象就没有人住了。一扇<cmd cmd='look men'>大门</cmd>紧锁着,周围是高高的<cmd cmd='look wall'>围墙</cmd>。一切都很干净,并没有积多少灰尘。";
|
||||
this.exits={"south":"bj/zhuang/xiaolu2"};
|
||||
this.set_item("men","大门","这扇门是锁着的,除非你打破它。",[
|
||||
["break","打破",function(me){
|
||||
if(this.query_exits("north")) return me.notify("门已经被你打开了。");
|
||||
if(me.max_mp>500&&me.mp>200){
|
||||
me.add_mp(-200);
|
||||
me.send_room("$N走到门前,深吸一口气,双掌同时拍出。 \n$N只听一声轰响,$P把门震开了!");
|
||||
this.add_exit("north","bj/zhuang/dayuan");
|
||||
}else{
|
||||
me.send_room("$N走到门前,深吸一口气,双掌同时拍出。 \n$N大吼一声“开!”,结果什么也没发生。看来$P的内力不够强。");
|
||||
}
|
||||
}]
|
||||
]);
|
||||
this.set_item("wall","院墙","墙很高,可能翻不过去。",[
|
||||
["climb","翻墙",function(me){
|
||||
if(me.query_skill("dodge",0)>200&&me.mp>200){
|
||||
me.add_mp(-200);
|
||||
me.send_room("$N在墙前站定,深吸一口气,猛然跃起。\n只见$N足尖在墙上一点,已悠然飘落院中!");
|
||||
me.moveto("bj/zhuang/dayuan",null,me.name+"跳了进来。");
|
||||
}else{
|
||||
me.send_room("$N在墙前站定,深吸一口气,猛然跃起,可还差一大截呢,看来是轻功不够好。");
|
||||
}
|
||||
}]
|
||||
]);
|
||||
7
world/map/bj/zhuang/dating.js
Normal file
7
world/map/bj/zhuang/dating.js
Normal file
@@ -0,0 +1,7 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大厅"
|
||||
this.desc = "这是一间大厅。通往各个房间.东边的屋里有女子啼哭之声隐隐传来。";
|
||||
this.exits={"north":"bj/zhuang/changlang","south":"bj/zhuang/dayuan","east":"bj/zhuang/dating2","west":"bj/zhuang/dating1"};
|
||||
|
||||
this.set_npc("bj/shenlong/dizi");
|
||||
this.set_npc("bj/zhuang/zhang");
|
||||
6
world/map/bj/zhuang/dating1.js
Normal file
6
world/map/bj/zhuang/dating1.js
Normal file
@@ -0,0 +1,6 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大厅"
|
||||
this.desc = "这是一间灵堂。堂上供了七八个牌位.看来一座灵堂上供的是一家死人.一阵阴风吹过,蜡烛突然灭了。";
|
||||
this.exits={"east":"bj/zhuang/dating"};
|
||||
|
||||
this.set_npc("bj/shenlong/dizi");
|
||||
5
world/map/bj/zhuang/dating2.js
Normal file
5
world/map/bj/zhuang/dating2.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大厅"
|
||||
this.desc = "这是一间灵堂。堂上供了七八个牌位.看来一座灵堂上供的是一家死人.一阵阴风吹过,蜡烛突然灭了。";
|
||||
this.exits={"west":"bj/zhuang/dating"};
|
||||
this.set_npc("bj/shenlong/dizi");
|
||||
5
world/map/bj/zhuang/dayuan.js
Normal file
5
world/map/bj/zhuang/dayuan.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大院"
|
||||
this.desc = "这是一个破旧的大院。院内十分宽阔,可容百人。正中一口天井,再往里是座大厅。";
|
||||
this.exits={"north":"bj/zhuang/dating","south":"bj/zhuang/damen"};
|
||||
this.set_npc(["bj/shenlong/dizi",2]);
|
||||
31
world/map/bj/zhuang/xiaolu.js
Normal file
31
world/map/bj/zhuang/xiaolu.js
Normal file
@@ -0,0 +1,31 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "小路"
|
||||
this.desc = "你走在一条小路上。前面道路崎岖,行人很少。往南有条小路通往城内。";
|
||||
this.exits = { "north": "bj/zhuang/xiaolu2"};
|
||||
this.on_before_enter = function (me) {
|
||||
if (me.query_temp('fb', 0) > 10) {
|
||||
this.add_exit('south', "bj/zhuang/dalu" );
|
||||
}
|
||||
}
|
||||
this.on_leave = function (me, dir) {
|
||||
if (dir === 'south') {
|
||||
|
||||
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/nanmen'));
|
||||
|
||||
me.send('你顺着小路进入京城,来到奉天城门。');
|
||||
} else {
|
||||
me.send('你即将离开这个副本进入公共区域,是否确认?');
|
||||
me.send_commands('lkfb ok', '确认进入');
|
||||
}
|
||||
|
||||
});
|
||||
5
world/map/bj/zhuang/xiaolu2.js
Normal file
5
world/map/bj/zhuang/xiaolu2.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "小路"
|
||||
this.desc = "你走在一条小路上。前面道路崎岖,行人很少。前方隐约有房屋可见.";
|
||||
this.exits={"north":"bj/zhuang/damen","south":"bj/zhuang/xiaolu"};
|
||||
this.set_npc("bj/zhuang/tufei");
|
||||
5
world/map/bj/zhuang/xiaowu.js
Normal file
5
world/map/bj/zhuang/xiaowu.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "长廊"
|
||||
this.desc = "这是一个小房间,桌上点着蜡烛.房中只有一桌一床,陈设简单,却十分干净.床上铺着被褥。";
|
||||
this.exits={"south":"bj/zhuang/changlang"};
|
||||
this.set_npc("bj/zhuang/furen","bj/zhuang/shuanger");
|
||||
Reference in New Issue
Block a user