📄 xiantiandafa.c
字号:
// kungfu/skill/taixuan-gong/taixuan//海洋II(云起云落)//星星lywin 2000/6/10// powerup.c#include <ansi.h>inherit F_CLEAN_UP;void remove_effect(object me, int amount);int exert(object me, object target){ int skill; if( target != me ) return notify_fail("你只能对自己用["+HIW+"先天大法"+NOR+"]\n"NOR,);// if( (int)me->query_temp("qzj_tong") ) // return notify_fail("你已经在运同归剑法中了。\n"); if ((int)me->query_skill("xiantian-qigong", 1) < 200) return notify_fail("你的先天气功太差了。\n"); if( (int)me->query("neili") < 500 ) return notify_fail("你的内力不够。\n"); if( (int)me->query_temp("powerup") ) return notify_fail("你已经在运功中了。\n"); if( (int)me->query_temp("powerupxtg") ) return notify_fail("你已经在先天大法了。\n"); if( (int)me->query_temp("poweruptxg") ) return notify_fail("你已经在运太玄功了。\n"); if( (int)me->query_temp("powerupkh") ) return notify_fail("你已经在运葵花无敌功了。\n"); if( (int)me->query_temp("jiuyin/powerup") ) return notify_fail("你已经在运九阴真功中了。\n"); if( (int)me->query_temp("hslj/powerup") ) return notify_fail("你已经在运万法归宗中了。\n"); skill = me->query_skill("force"); me->add("neili", -500); me->receive_damage("qi",0); message_combatd(HIR"$N运起了先天大法全身的衣服随着真气飘动了起来,这正是当年华山论剑中名传天下[先天大法]。\n" NOR, me); me->add_temp("apply/attack", skill/4); tell_object(me,HIR"你的攻击力提高了!\n"NOR); me->add_temp("apply/dodge", skill/4); tell_object(me,HIR"你的防御力提高了!\n"NOR); me->set_temp("powerup", 1); me->set_temp("powerupxtg", 1); me->add_temp("apply/strength",skill/25); tell_object(me,HIG"你的力量提高了!\n"NOR); me->add_temp("apply/dexerity",skill/25); tell_object(me,HIG"你的速度提高了!\n"NOR); me->add_temp("apply/constitution",skill/25); tell_object(me,HIG"你的根骨提高了!\n"NOR); me->add_temp("apply/intelligence",skill/25); tell_object(me,HIG"你的悟性提高了!\n"NOR); me->start_call_out((:call_other,__FILE__,"remove_effect",me,skill/10:),skill); if( me->is_fighting() ) me->start_busy(3); return 1;}void remove_effect(object me, int amount){ int skill; skill = me->query_skill("force"); me->add_temp("apply/attack", - skill/4); me->add_temp("apply/dodge", - skill/4); me->delete_temp("powerupxtg"); me->delete_temp("powerup"); me->add_temp("apply/strength",- skill/25); me->add_temp("apply/intelligence",- skill/25); me->add_temp("apply/constitution",- skill/25); me->add_temp("apply/dexerity" , - skill/25); tell_object(me, "你的["+HIR+"先天大法"+NOR+"]运行完毕,将内力收回丹田。\n");}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -