init: add workspace files
This commit is contained in:
29
world/map/bj/ao/andao.js
Normal file
29
world/map/bj/ao/andao.js
Normal file
@@ -0,0 +1,29 @@
|
||||
this.inherits(ROOM);
|
||||
this.name = "暗道"
|
||||
this.desc = "这里是鳌拜卧室的一个暗道,整个通道黑呼呼的,不知道通往哪里。";
|
||||
this.exits = { "south": "bj/ao/woshi" };
|
||||
|
||||
this.on_enter = function (me) {
|
||||
|
||||
me.notify('你踏入暗道,放眼望去看不到出口,不知通往何处。');
|
||||
me.send_commands('lkfb', '一直走下去');
|
||||
}
|
||||
|
||||
|
||||
this.add_action('lkfb', null, function (me, par) {
|
||||
|
||||
if (par) {
|
||||
|
||||
WORLD.COMMANDS['cr'].enter(me, 'over');
|
||||
|
||||
me.moveto(ROOM.Get('bj/hg/jiashan'));
|
||||
|
||||
me.send('你从暗道出来,来到一个假山外面。');
|
||||
me.enable_area();
|
||||
|
||||
} else {
|
||||
me.send('你即将离开这个副本进入公共区域,是否确认?');
|
||||
me.send_commands('lkfb ok', '确认进入');
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user