this.inherits(ROOM); this.name = "卧房" this.desc = "这是鳌拜的卧房。鳌拜躺在床上睡着了,粗声粗气地打着呼噜。北边有一扇门(door) 。"; this.exits = { "east": "bj/ao/houyuan" }; this.set_npc("bj/ao/aobai"); this.set_item("door", "", "这是一扇极厚的木门。", [ ["open", "打开", function (me) { var npc = this.find_obj_bypath('bj/ao/aobai'); if (npc) { return npc.do_kill(me); } if (this.query_exits('north')) return me.notify('门已经打开了。'); this.add_exit('north','bj/ao/andao'); }] ]);