C实现的MUD,对大家基本入门网络游戏很有帮助!

源代码在线查看: killer-w.c

软件大小: 7918 K
上传用户: zhuying0000
关键词: MUD 网络游戏
下载地址: 免注册下载 普通下载 VIP

相关代码

				// Killer-w.c ,No greeting, 星宿功夫, 西门				inherit NPC;								void create()				{					set_name("杀手", ({"killer"}));					set("long",					"这是一个身材高大的江湖人,两臂粗壮,膀阔腰圆,看起来似乎不怀好意。\n"					);									set("gender", "男性");					set("attitude", "aggressive");					set("class", "shaman");									set("age", 20+random(30));					set("shen_type", -1);									set("str", 25+random(10));					set("dex", 25+random(10));					set("int", 25+random(10));					set("con", 25+random(10));									set("qi", 1500);					set("max_qi", 1500);					set("jing", 1000);					set("max_jing", 1000);					set("neili", 1000);					set("max_neili", 1000);					set("jiaji", 50+random(100));									set("combat_exp", 10000+random(100000));					set("score", 1);								        set("startroom","/d/city/ximen");									set_skill("force", 20+random(80));					set_skill("huagong-dafa", 20+random(80));					set_skill("dodge", 20+random(60));					set_skill("zhaixinggong", 20+random(60));					set_skill("unarmed", 20+random(100));					set_skill("xingxiu-duzhang", 10+random(110));					set_skill("parry", 20+random(80));					set_skill("staff", 20+random(100));					set_skill("tianshan-zhang", 10+random(110));									map_skill("force", "huagong-dafa");					map_skill("dodge", "zhaixinggong");					map_skill("parry", "tianshan-zhang");					map_skill("staff", "tianshan-zhang");					map_skill("unarmed", "xinxiu-duzhang");									set("chat_chance", 20);					set("chat_msg", ({						"杀手说道: 这次看那些玩家们往哪儿跑。\n",						"杀手说道: 杀! 杀! 杀!!!。\n",						(: random_move :)					}) );									setup();									carry_object("/d/xingxiu/obj/tiegun")->wield();				}			

相关资源