Files
wsmud/world/map/bj/tdh/neishi.js
2026-05-26 16:41:20 +08:00

31 lines
1.4 KiB
JavaScript
Raw 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 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");
}
});