rmgx | 人物等级 驾轻就熟 江湖威望 +7 江湖阅历 24 门派贡献 825 实战经验 19796 文章 263 注册 06-05-30 11:17
|
|
|
发表 2006-08-09 11:16:27 人气:547
我现在liangyi-jian170sk,没出,以下是liangyi-jian的pfm代码
================================
#include <ansi.h>
#include <combat.h>
#define REN "「" HIW "天地同仁" NOR "」"
inherit F_SSERVER;
int perform(object me, object target)
{ int ap, dp, damage; string msg; object weapon;
if (userp(me) && ! me->query("can_perform/liangyi-jian/ren")) return notify_fail("你所使用的外功中没有这种功能。\n");
if (! target) target = offensive_target(me);
if (! target || ! me->is_fighting(target)) return notify_fail(REN "只能对战斗中的对手使用。\n");
if (! objectp(weapon = me->query_temp("weapon")) || (string)weapon->query("skill_type") != "sword") return notify_fail("你使用的武器不对,难以施展" REN "。\n");
if ((int)me->query_skill("liangyi-jian", 1) < 120) return notify_fail("你两仪剑法不够娴熟,难以施展" REN "。\n");
if ((int)me->query("max_neili") < 1500) return notify_fail("你的内力修为不足,难以施展" REN "。\n");
if (me->query_skill_mapped("sword") != "liangyi-jian") return notify_fail("你没有激发两仪剑法,难以施展" REN "。\n");
if ((int)me->query("neili") < 200) return notify_fail("你现在真气不够,难以施展" REN "。\n");
if (! living(target)) return notify_fail("对方都已经这样了,用不着这么费力吧?\n");
msg = HIW "$N" HIW "手中长剑剑芒跃动,剑光暴长,剑尖颤动似乎分左右刺向$n" HIW ",$n" HIW "看到剑\n光偏左,疾侧身右转,但只这一刹,剑光刹时袭" "向右首!\n";
ap = me->query_skill("sword"); dp = target->query_skill("parry");
if (ap / 2 + random(ap) > dp) { me->start_busy(2); damage = ap * 4 / 3; damage = damage / 2 + random(damage * 2 / 3);
msg += COMBAT_D->do_damage(me, target, WEAPON_ATTACK, damage, 50, HIR "$n" HIR "疾忙左转,却发现$N" HIR "的" + weapon->name() + HIR "疾往左转" ",登时穿胸而过,血如泉涌。\n" NOR); me->add("neili", -180); } else { me->start_busy(3); msg += CYN "可是$p" CYN "轻轻一笑,侧身右转,躲开了$P" CYN "左转的剑式,毫发未伤。\n" NOR; } message_combatd(msg, me, target); return 1;
}
|
|
相关帖子 | |
武当的冲虚道长在哪儿? (rmgx,10753,2006-08-06 11:04:46) | 没有冲虚的........... (duxia,483,2006-08-07 08:17:54) | 【两仪剑法】 天地同仁... (rmgx,538,2006-08-07 10:30:37) | 可能pfm是直接到等级就可以出了。 (becklzy,472,2006-08-08 13:54:16) | 我现在liangyi-jian170sk... (rmgx,547,2006-08-09 11:16:27) | 那就是现在还不能用,因为武当的没听谁说过... (duxia,462,2006-08-09 15:24:12) |
|
|