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

28 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 men'>门(men)</CMD>。";
this.exits = { "south": "yz/by/bingqiku", "north": "yz/by/damen" };
this.set_npc("yz/shiqingshan", ["pub/wujiang", 2]);
this.on_leave = function (me, dir) {
if (dir == "south") {
if (!this.south_open) {
me.notify("门还是关着的,你过不去。");
return false;
}
}
}
this.set_item("men", "铁门", "这是一扇极厚的铁门。", [[
"open", "打开", function (me, par) {
if (par != "men") {
return;
}
if (me.str + me.query_prop("str") < 30) {
me.send_room("$N使出吃奶的力气推向铁门半晌后瘫倒在地但是铁门还是纹丝不动。");
} else {
me.send_room("$N大喝一声使出全力推开铁门。");
this.south_open = true;
}
return true;
}
]]);