#include <ansi.h>
inherit SSERVER;
int perform(object me, object target)
{
int mypot,tapot,time;
if( !target ) target = offensive_target(me);
if( !target
|| !target->is_character()
|| !me->is_fighting(target) )
return notify_fail("「无尽风波」只有在战斗中才能使用。\n");
if( (int)me->query_skill("fengbo-cha", 1) < 50 )
return notify_fail("你的修为不够深,还使不出这一招!\n");
if( target->is_busy() )
return notify_fail(target->name()+"已经够忙了,你使的再漂亮也不会注意到。\n");
message_vision(HIC"$N挥展开来,左一叉,右一叉,幻出无数大小光环向$n绕去。
虽看起来柔弱无力,却宛若秋波般连绵不绝,实是暗藏杀机!\n\n"NOR,me, target);
me->add("sen", -100);
mypot=(int)me->query_skill("fork");
mypot=mypot*mypot*mypot/10 + (int)me->query("combat_exp");
tapot=(int)target->query_skill("parry");
tapot=tapot*tapot*tapot/10 + (int)target->query("combat_exp");
time=(int)me->query_skill("fengbo-cha", 1) /10;
if ( time > 10 ) time = 10;
if ( time < 5 ) time = 5;
if ( random( mypot + tapot ) > tapot ) {
message_vision(HIR"$N果然被这光环套住,当时目瞪口呆,不知所措!\n"NOR,target);
target->start_busy(time);
}else {
message_vision(HIR"不料却被$N看破,攻其不备,$n反被打了个措手不及!\n"NOR,target,
me);
me->start_busy(3);
}
1、使用条件:fengbo-cha>=50,并在战斗中;
2、风波成功后对方至少busy 5招,最多10招,不成功自己busy 3招;
3、风波成功率跟你的fork等级、武学和对方的parry等级、武学有关:从上面的代码可以看出,fork等级高的话可以弥补武学低的缺陷,这就是我们经常讲的fengbo是打高手的好skills(600的fork相当于21.6M的武学),而且fengbo的随机性较大,从if ( random( mypot + tapot ) > tapot )这句就可以看出,对手再强,你也有套住的可能,对手再弱,你也可能失败