-
Notifications
You must be signed in to change notification settings - Fork 50
/
workroom.c
32 lines (29 loc) · 913 Bytes
/
workroom.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <ansi.h>
inherit ROOM;
varargs void create(int x, int y, int z)
{
set("short", "云端");
set("long", HIW"
这里是九霄云外,好神奇的地方啊,只看朵朵白云飘,让
人心旷神怡。\n");
setArea("云端", x, y, z);
set("exits", ([
"north":__DIR__ "workroom/" + x + "," + (y + 1) + "," + z,
"south":__DIR__ "workroom/" + x + "," + (y - 1) + "," + z,
"west":__DIR__ "workroom/" + (x - 1) + "," + y + "," + z,
"east":__DIR__ "workroom/" + (x + 1) + "," + y + "," + z,
]));
if (x == 0 && y == 0)
{
addExit("down", __DIR__ "mogong");
addExit("up", "/d/sky/tianmen");
set("objects",([
// "/d/city/npc/yanruyu" : 1,
__DIR__"npc/LiSouci" : 1,
__DIR__"obj/safe" : 1,
]));
set("sleep_room", 1);
set("valid_startroom", 1);
}
setup();
}