dong05.c

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· C语言 代码 · 共 35 行

C
35
字号
#include <room.h>#include <ansi.h>inherit ROOM;void create(){	set("short", HIW"众神之失乐园"NOR);	set("long", HIW @LONG 这个世界,飘浮在云中,雾中,地板是由发亮的黄金所铺成,四周的墙壁和天花板上满布著美丽的壁画和精致的石雕。空中悬浮的水晶散发著神秘的光芒,无可描述飘荡在空中的音乐使这一切如梦如幻。LONG NOR);	set("exits", ([		"east" : __DIR__"dong"+(random(16)+5),		"south" : __DIR__"dong"+(random(11)+5),                "west" : __DIR__"dong"+(random(6)+5),                "north" : __DIR__"dong"+(random(1)+5),	]));if (random(3)==0)	set("exits", ([		"eastnorth" : __DIR__"dong"+(random(16)+3),		"southwest" : __DIR__"dong"+(random(11)+4),                "westsouth" : __DIR__"dong"+(random(1)+4),                "northeast" : __DIR__"dong"+(random(6)+4),	]));         set("objects", ([ __DIR__"npc/lev1" : random(4),//              "/clone/box/gboxm" : random(2),         ]));	set("no_clean_up", 0);set("magicroom",1);set("outdoors","migong");set("magicset",1);	setup();	replace_program(ROOM);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?