resistance.c

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

C
29
字号
#include <ansi.h>
#include <combat.h>

inherit F_SSERVER;
#include "/kungfu/skill/eff_msg.h";
int check_pfm(object me, object target, object ob);
int perform(object me, object target)
{
	object fire,weapon;
	int zhaosheshu,yangsheshu, exp, MAX_GUARD;
        if ( me->is_busy() )
        return notify_fail("你现在正忙,无法召唤御寒奇术");
        if( !me->query("zhuanbest",1))
        return notify_fail("你没有资格使用这项技能!\n");
	if((int)me->query("neili")< 300)
	return notify_fail("你的法力太差了!\n");
	if((int)me->query_skill("magic-water",1)< 250)
	return notify_fail("你的水系魔法太差了!\n");
        if ((int)me->query("magicgift")==2)
        return notify_fail("你已经使用御寒奇术了!\n");
	me->add("neili",-250);
	me->start_busy(2);
        me->set("magicgift",2);
	message_vision(WHT "\n$N"WHT"念动咒语 跨越天空以及大地的力量啊,温柔流动的潺潺河水啊!!!\n" NOR, me);	
	message_vision(WHT "\n$N"WHT"念到 集中到我的手中来成为我的力量吧!!!!!\n" NOR, me);	
	message_vision(WHT "\n$N"WHT"的周围出来了无形的水之护盾!\n" NOR, me);
	return 1;
}

⌨️ 快捷键说明

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