init: add workspace files
This commit is contained in:
28
world/map/yz/cuifu/caizhu.js
Normal file
28
world/map/yz/cuifu/caizhu.js
Normal file
@@ -0,0 +1,28 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大门"
|
||||
this.desc = "一座富丽堂皇的大宅院出现在你的眼前,两头高大的石狮子镇住了大门两侧,朱漆大门足足有三寸厚。门上挂着两个灯笼,写着“崔”字。崔家是当地首富,而且以蛮横著称。几条狼狗嚎叫着向你冲了过来。";
|
||||
this.exits = { "north": "yz/cuifu/dayuan" };
|
||||
this.set_npc([
|
||||
"yz/cuifu/langgou", 2
|
||||
]);
|
||||
this.on_enter = function (me) {
|
||||
if (me.is("yz/cuifu/yahuan")) {
|
||||
var player = me.follow_target;
|
||||
if (!player || !player.is_here(me)) return;
|
||||
if ( player.can_follow("yz/cuifu/yahuan")) {
|
||||
me.do_follow(null);
|
||||
player.notify("眼看就要走到门外,丫鬟却站在原地不动了。");
|
||||
player.notify("丫鬟垂首说道:这位大人,小女子已无家可归,还望大人收留!");
|
||||
player.send_commands("ok " + me.id, "答应她");
|
||||
} else {
|
||||
player.notify("走到这里,丫鬟对你说道:谢谢这位" + player.call() + "。");
|
||||
me.do_follow(null);
|
||||
player.notify("丫鬟想了想又对你说道:这位" + player.call() + ",崔员外家的东厢好像还藏了些东西,你可以去找找看。");
|
||||
player.notify("丫鬟急匆匆的走了。");
|
||||
me.destroy();
|
||||
}
|
||||
player.set_temp("fb/cuifu/yahuan", 2);
|
||||
player.add_fbscore(20);
|
||||
|
||||
}
|
||||
}
|
||||
16
world/map/yz/cuifu/dayuan.js
Normal file
16
world/map/yz/cuifu/dayuan.js
Normal file
@@ -0,0 +1,16 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "大院"
|
||||
this.desc = "你走进大院,迎面是一个假山水池,池上摆着一块奇形怪状的石头,据说是当年花石纲的遗石。水池的两旁种满了花草。东边是一棵槐树,郁郁葱葱,遮盖了大半个院子,显得阴森恐怖。一条长廊走道通往后院,有几个家丁把守。";
|
||||
this.exits = { "south": "yz/cuifu/caizhu", "north": "yz/cuifu/houyuan" };
|
||||
this.set_npc("yz/cuifu/guanjia", [
|
||||
"yz/cuifu/jiading",2
|
||||
]);
|
||||
this.on_leave = function (me, dir) {
|
||||
if (dir == "north") {
|
||||
var obj = this.find_by_path("yz/cuifu/guanjia");
|
||||
if (obj) {
|
||||
me.notify("管家拦住你:私人宅院,禁止入内。");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
24
world/map/yz/cuifu/dongxiang.js
Normal file
24
world/map/yz/cuifu/dongxiang.js
Normal file
@@ -0,0 +1,24 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "东厢"
|
||||
this.desc = "这是一个昏暗的房间,窗户都被钉死。地上放着皮鞭、木棍等刑具,显然这是财主私立公堂,折磨仆人、丫鬟的所在。一个丫鬟被绳子绑着,浑身赤裸跪在地上哭哭啼啼,身上是一道道的伤口。墙角有个<cmd cmd='look gui'>柜子</cmd>,好像放了不少东西。";
|
||||
this.exits = { "west": "yz/cuifu/houyuan" };
|
||||
this.set_npc("yz/cuifu/yahuan");
|
||||
this.set_item("gui", "柜子", "一个黑乎乎的柜子,里面不知道放了什么。", [[
|
||||
"search", "搜索", function (me, par) {
|
||||
if (par != "gui") {
|
||||
return;
|
||||
}
|
||||
if (me.query_temp("fb/cuifu/yahuan") == 3) {
|
||||
me.send_room("$N仔细翻了翻柜子,从柜子下面找到一个小箱子。");
|
||||
me.set_temp("fb/cuifu/yahuan",4);
|
||||
var obj = me.add_obj("sp/yz/box1", 1);
|
||||
if (obj) {
|
||||
me.send_room("$N从得到了一个 " + obj.color_name + "。");
|
||||
}
|
||||
|
||||
} else {
|
||||
me.notify("你胡乱在柜子里上面翻了几下,什么都没发现。");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
]]);
|
||||
27
world/map/yz/cuifu/houyuan.js
Normal file
27
world/map/yz/cuifu/houyuan.js
Normal file
@@ -0,0 +1,27 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "后院"
|
||||
this.desc = "这里是财主后院,各种古玩琳琅满目,商周青铜、汉瓦当、唐三彩……,应有尽有,只要拥有一件,就够你吃一辈子了。崔员外正坐在琉璃榻上,慢幽幽地喝着参汤。东侧有一扇<cmd cmd='look men'>门(men)</cmd>。";
|
||||
this.exits = { "south": "yz/cuifu/dayuan", "west": "yz/cuifu/xixiang" };
|
||||
this.set_npc("yz/cuifu/cui");
|
||||
this.set_item("men", "门", "这扇门似乎通向一间密室。", [[
|
||||
"open", "打开", function (me) {
|
||||
if (this.query_exits("east"))
|
||||
return me.notify("这扇门已经是打开的。");
|
||||
var obj = me.find_obj_bypath("sp/yz/yaoshi");
|
||||
if (!obj)
|
||||
return me.notify("你不会撬锁。");
|
||||
|
||||
this.add_exit("east", "yz/cuifu/dongxiang");
|
||||
me.remove_obj(obj,1);
|
||||
me.send_room("$N用一把钥匙打开了秘门,可是钥匙却断了。");
|
||||
}
|
||||
]]);
|
||||
this.on_leave = function (me, dir) {
|
||||
if (dir == "west") {
|
||||
var obj = this.find_obj_bypath("yz/cuifu/cui");
|
||||
if (obj) {
|
||||
me.notify("崔员外挡住了你。");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
5
world/map/yz/cuifu/xixiang.js
Normal file
5
world/map/yz/cuifu/xixiang.js
Normal file
@@ -0,0 +1,5 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "西厢"
|
||||
this.desc = "这是财主小姐的闺房,一股幽香扑面而来。一张绣榻放在墙角,垂着细纱。小姐正躺在榻上,懒洋洋地一幅思春模样。看到你突然闯进来,惊呆了。";
|
||||
this.exits = { "east": "yz/cuifu/houyuan" };
|
||||
this.set_npc("yz/cuifu/yingying");
|
||||
Reference in New Issue
Block a user