Files
wsmud/world/map/yz/cuifu/dongxiang.js
2026-05-26 16:41:20 +08:00

24 lines
1.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}
]]);