⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 break.c

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻 C
字号:
// break.c 五遁绝杀// Modified by Venus Oct.1997#include <ansi.h>inherit F_SSERVER;int perform(object me, object target){string msg;int count;if( !me->is_fighting() )      return notify_fail("「五遁绝杀」只能在战斗中使用。\n");if( (int)me->query("qi") < 70 )      return notify_fail("你的气不够!\n");if( (int)me->query("max_neili") < 100 )      return notify_fail("你的内力不够!\n");if( (int)me->query("neili") < (int)me->query("max_neili")/2)      return notify_fail("你的真气不够!\n");msg = HIC "$N使出五行遁中的「五遁绝杀」,身法陡然间变得变幻莫测!\n" NOR;message_combatd(msg, me);count = (int)me->query_skill("five-avoid") / 20 + 2;   if( count > 5 ) count = 5;   while( count-- ) {  object ob;  me->clean_up_enemy();  ob = me->select_opponent();  if( !ob || (environment(ob) != environment(me))) {  message_combatd(WHT "$N的身形倏地一转,收身停住了脚步。\n" NOR, me);     break;   }  else  message_combatd(WHT "$N的身影在$n身旁时隐时现 ...\n" NOR, me, ob);  COMBAT_D->fight(me, ob);        me->receive_damage("qi", 10);  me->add("neili", -10); }    me->start_busy(2);    return 1;}

⌨️ 快捷键说明

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