init: add workspace files

This commit is contained in:
2026-05-26 16:41:20 +08:00
commit f4f2393f72
1041 changed files with 67405 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "大道";
this.desc = "这是一条宽敞的大道。全由乱石堆成,显然曾花了不少人力。东面是一个宽阔的练武场, 西边是一片开阔地。";
this.set_npc("bj/shenlong/xu");
this.exits = { "west": "bj/shenlong/kongdi", "east": "bj/shenlong/wuchang" };

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "山道";
this.desc = "这是一条狭窄的山道,向着北方一座山峰行去.转过了几个山坡,抬头遥见峰顶建着几座大竹屋。";
this.exits = { "south": "bj/shenlong/wuchang", "north": "bj/shenlong/damen" };

View File

@@ -0,0 +1,17 @@
this.inherits(ROOM);
this.name = "大门";
this.desc = "这是间很大的竹屋。门外站着几个年轻弟子.再住北就是神龙教大厅, 隔得虽远, 却也可以听得到厅上众人齐声念颂之声。";
this.set_npc(["bj/shenlong/dizi", 2]);
this.exits = { "south": "bj/shenlong/dadao2", "north": "bj/shenlong/dating" };
this.on_leave = function (me, dir) {
if (dir == "north") {
var obj = this.find_obj_bypath("bj/shenlong/dizi");
if (obj) {
me.notify("神龙教弟子挡住了你:神龙教重地,外人不得入内。");
return false;
}
}
}

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "大厅";
this.desc = "过了一条长廊,眼前突然现出一座大厅。此厅硕大无朋,足可容千人之众。只见一群群少年男女衣分五色, 分站五个方位.青、白、黑、黄四色的都是少年, 穿红的却是少女, 背上各负短剑, 每一队约有百人。";
this.set_npc("bj/shenlong/hong", "bj/shenlong/zhang", "bj/shenlong/wugen");
this.exits = { "south": "bj/shenlong/damen" };

View File

@@ -0,0 +1,50 @@
this.inherits(ROOM);
this.name = "海滩";
this.desc = "这里就是神龙岛了。南边是一望无际的大海;往北则是一片灌木林。岛上的空气似乎又热又闷, 咸湿的海风中带着一股腥臭, 又夹杂了一缕奇特的花香, 闻起来十分怪异,海边泊着一艘大船。";
this.exits = { "north": "bj/shenlong/lin1" };
this.on_before_enter = function (me) {
if (!me.query_bool('fb2', 3) && me.query_temp('pl_yu')) {
if (!this.items[0])
NPC.CREATE('penglai/wulang/jiangjiu', this);
}
}
this.on_enter = function (me) {
if (!me.query_bool('fb2', 3) && me.query_temp('pl_yu')) {
let npc = this.items[0];
if (npc && npc.is('penglai/wulang/jiangjiu')) {
me.send(npc.name + "招了招手:" + me.call() + ",这里,这里。");
this.call_out(this.to_next, 3000, me, npc);
}
}
}
this.to_next = function (me, npc) {
if (me.environment !== this || npc.environment !== this)
return;
if (me.fight_type || npc.fight_type) return;
me.send(npc.name + "正色道:在下正准备去往近年江湖中传闻仙山出世的蓬莱岛," + me.call() + "可愿一同前往?");
me.send_commands('lkfb', '同去');
}
this.add_action('lkfb', null, function (me, par) {
let npc = this.items[0];
if (npc && npc.is('penglai/wulang/jiangjiu')) {
if (par) {
WORLD.COMMANDS['cr'].enter(me, 'over');
me.moveto('penglai/matou');
me.send('你和' + npc.name + '乘坐大船,来到一个偏远神秘的小岛。');
me.enable_area();
} else {
me.send('你即将离开这个副本进入公共区域,是否确认?');
me.send_commands('lkfb ok', '确认进入');
}
}
});

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "空地";
this.desc = "这是一片空地,四周都是乱石,杂草丛生。北边是一间小屋,南面是深深的灌木林,东面有一条工整的大道, 西面是一片草坪。";
this.set_npc(["bj/shenlong/dizi", 2]);
this.exits = { "south": "bj/shenlong/lin2", "north": "bj/shenlong/xiaowu", "east": "bj/shenlong/dadao" };

View File

@@ -0,0 +1,20 @@
this.inherits(ROOM);
this.name = "灌木林";
this.desc = "这是一片灌木林。你对这样一个孤岛上竟有这样大一片<cmd cmd='look bush'>灌木林</cmd>感到非常吃惊.前面根本没有路, 四周的密林中长满了杂草。";
this.set_npc("bj/shenlong/dushe", "bj/shenlong/zyshe");
this.exits = { "south": "bj/shenlong/haitan" };
this.set_item("bush", "灌木林","这是一片很大的灌木林,把路都给挡住了。", [
"kan", "砍掉", function (me) {
if (this.query_exits("north")) return me.notify("已经砍好了,快过去吧!");
if (!me.query_weapon()) return me.notify("你不拿武器怎么砍?");
me.send_room("$N抽出$W,对着灌木丛一阵乱砍。");
if (me.mp > 300) {
me.send_room("$N累得气喘吁吁,终于砍出一条小路。");
this.add_exit("north","bj/shenlong/lin2");
} else {
me.send_room("$N累得气喘吁吁,也没砍开一条路来。");
}
}
]);

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "灌木林";
this.desc = "这是一片灌木林。走了不远,你就可以看得见前面的空地了。";
this.set_npc("bj/shenlong/dushe", "bj/shenlong/zyshe");
this.exits = { "south": "bj/shenlong/lin1", "north": "bj/shenlong/kongdi" };

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "练武场";
this.desc = "这是一个宽大的练武场,有几个手执短剑的少年少女在这里练功。旁边站着几人, 有男有女, 年纪轻的三十来岁, 老的已有六七十岁, 身上却不带兵刃。北边一条山路直上山顶。";
this.set_npc(["bj/shenlong/nvdizi", 2]);
this.exits = { "west": "bj/shenlong/dadao", "north": "bj/shenlong/dadao2" };

View File

@@ -0,0 +1,8 @@
this.inherits(ROOM);
this.name = "小屋";
this.desc = "一进小屋,只见墙上挂满了无数名贵的字画。书架上也堆满了平时难得一见的各种各样的书籍。一个相貌英武的中年文士正对着一幅字画唉声叹气。";
this.set_npc("bj/shenlong/lu");
this.exits = { "south": "bj/shenlong/kongdi" };