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

📄 zuida.c

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻 C
字号:
// zuida.c 少林醉棍 [八仙醉打]#include <ansi.h>inherit F_SSERVER;void remove_effect(object me, int amount, int amount1);int perform(object me, object target){	object weapon;	  	string msg;	int count, count1, cnt, skill;		if( !me->is_fighting() )	    return notify_fail("「八仙醉打」只能在战斗中使用。\n");	if (!objectp(weapon = me->query_temp("weapon"))		|| (string)weapon->query("skill_type") != "club")			return notify_fail("你使用的武器不对。\n");	if( (int)me->query_temp("zuida") ) 		return notify_fail("你已经在运功中了。\n");      if( me->query_temp("fumo")   )      return notify_fail("你正在使用大金刚拳的特殊攻击「金刚伏魔」!\n");      if( me->query_temp("jingang")   )      return notify_fail("你正在使用大金刚拳的特殊攻击「大金刚神通」!\n");      if( me->query_temp("fanzhen")   )                return notify_fail("你正在运用「金刚不坏体神功」!\n");	if( (int)me->query_temp("powerup"))		return notify_fail(HIG"你已经运起内功加力了,没有更多的内力使用八仙醉打。\n"NOR);	if( (int)me->query_str() < 25 )		return notify_fail("你的臂力不够,目前不能使用此绝技! \n");	if( (int)me->query_skill("hunyuan-yiqi", 1) < 60)		return notify_fail("你的混元一气功的功力不够,不能使用此项绝技!\n");	if( (int)me->query_skill("club") < 90)		return notify_fail("你的棍法修为不够,不能使用此项绝技! \n");	if( (int)me->query("neili") < 500 )		return notify_fail("你的真气不足!\n");		msg = HIY "$N使出少林醉棍的绝技「八仙醉打」,臂力陡然增加, 身法陡然加快!\n" NOR;	   	message_combatd(msg, me, target);	skill = me->query_skill("zui-gun",1);	cnt =(int)( (int)me->query_condition("drunk") / 3 );	count = me->query("str") * random(cnt + 2);	count1 = me->query("dex") * random(cnt + 2);	me->add_temp("str", count);	me->add_temp("dex", count1);        me->add_temp("apply/attack", skill/4);        me->add_temp("apply/dodge", skill/4);	me->set_temp("zuida", 1);	me->start_call_out( (: call_other, __FILE__, "remove_effect", me, count, count1 :), skill /3 );	me->add("neili", -150);   	return 1;}void remove_effect(object me, int amount, int amount1){	int skill;		if ( (int)me->query_temp("zuida") ) 	{// skill 没有付值 (by xbd)	skill = me->query_skill("zui-gun",1);        me->add_temp("apply/attack", -skill/4);        me->add_temp("apply/dodge", -skill/4);		me->add_temp("str", -amount);		me->add_temp("dex", -amount1);		me->delete_temp("zuida");		tell_object(me, HIY "你的八仙醉打运功完毕,将内力收回丹田。\n" NOR);		me->start_busy(4);	}}

⌨️ 快捷键说明

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