// haotian-zhang 昊天掌
// By Lgg,1998.10
#include <ansi.h>
inherit SKILL;
string *order = ({""HIY"", ""HIG"", ""RED"", ""MAG"", ""YEL"", ""HIC"", ""HIW"", ""HIR"",""HIB"", ""CYN"",""WHT"",""HIM"",""BLU""});
mapping *action = ({
([ "action" : "$N使一招"+(order[random(13)])+"「春江潮水」"NOR",双手划了个半圈,按向$n的$l",
"force" : 100,
"dodge" : 50,
"damage": 75,
"skill_name" : "春江潮水",
"lvl" : 0,
"damage_type" : "内伤"
]),
([ "action" : "$N使一招"+(order[random(13)])+"「海上明月」"NOR",左手轻轻一挥,劈向$n的$l",
"force" : 120,
"dodge" : 48,
"damage": 70,
"skill_name" : "海上明月",
"lvl" : 5,
已经显示 8% (ENTER 继续下一页,q 离开,b 前一页)
"damage_type" : "内伤"
]),
([ "action" : "$N右手掌心向外,由右向左,使一招"+(order[random(13)])+"「滟滟随波」"NOR",向$n的$l打去",
"force" : 140,
"dodge" : 46,
"damage": 75,
"skill_name" : "滟滟随波",
"lvl" : 10,
"damage_type" : "内伤"
]),
([ "action" : "$N使一招"+(order[random(13)])+"「江流宛转」"NOR",分击$n的胸口和$l",
"force" : 160,
"dodge" : 44,
"damage": 70,
"skill_name" : "江流宛转",
"lvl" : 15,
"damage_type" : "内伤"
]),
([ "action" : "$N使一招"+(order[random(13)])+"「月照花林」"NOR",左右掌同时击出,在空中突然左右掌方向互
变",
"force" : 180,
"dodge" : 42,
"damage": 85,
已经显示 17% (ENTER 继续下一页,q 离开,b 前一页)
"skill_name" : "月照花林",
"lvl" : 20,
"damage_type" : "内伤"
]),
([ "action" : "$N左手不住晃动,右掌一招"+(order[random(13)])+"「空中流霜」"NOR",向$n的$l打去",
"force" : 200,
"dodge" : 40,
"damage": 80,
"skill_name" : "空中流霜",
"lvl" : 25,
"damage_type" : "内伤"
]),
([ "action" : "$N左手变掌为啄,右掌立掌如刀,一招"+(order[random(13)])+"「汀上白沙」"NOR",劈向$n的$l",
"force" : 220,
"dodge" : 38,
"damage": 85,
"skill_name" : "汀上白沙",
"lvl" : 30,
"damage_type" : "内伤"
]),
([ "action" : "$N左脚退后半步,右掌使一招"+(order[random(13)])+"「江天一色」"NOR",横挥向$n",
"force" : 240,
"dodge" : 36,
已经显示 26% (ENTER 继续下一页,q 离开,b 前一页)
"damage": 80,
"skill_name" : "江天一色",
"lvl" : 35,
"damage_type" : "内伤"
]),
([ "action" : "$N一招"+(order[random(13)])+"「皎皎孤月」"NOR",左掌先发而后至,右掌后发而先至",
"force" : 260,
"dodge" : 34,
"damage": 85,
"skill_name" : "皎皎孤月",
"lvl" : 40,
"damage_type" : "内伤"
]),
([ "action" : "$N双掌缩入袖中,双袖飞起扫向$n的$l,却是一招"+(order[random(13)])+"「长江流水」"NOR",仪
态潇洒",
"force" : 280,
"dodge" : 32,
"damage": 80,
"skill_name" : "长江流水",
"lvl" : 45,
"damage_type" : "内伤"
]),
([ "action" : "$N左手虚按,右手划道弧线使一招"+(order[random(13)])+"「白云悠悠」"NOR",向$n的$l插去",
已经显示 35% (ENTER 继续下一页,q 离开,b 前一页)
"force" : 300,
"dodge" : 30,
"damage": 86,
"skill_name" : "白云悠悠",
"lvl" : 50,
"damage_type" : "内伤"
]),
([ "action" : "$N双手变掌做拳,向前向后划弧,一招"+(order[random(13)])+"「青枫浦上」"NOR"击向$n的$l",
"force" : 320,
"dodge" : 28,
"damage": 82,
"skill_name" : "青枫浦上",
"lvl" : 55,
"damage_type" : "内伤"
]),
([ "action" : "$N左手虚划,右手变掌为钩一记"+(order[random(13)])+"「楼月蜚回」"NOR"击向$n的$l",
"force" : 340,
"dodge" : 26,
"damage": 88,
"skill_name" : "楼月蜚回",
"lvl" : 60,
"damage_type" : "内伤"
]),
已经显示 44% (ENTER 继续下一页,q 离开,b 前一页)([ "action" : "$N施出"+(order[random(13)])+"「玉户帘中」"NOR",右掌向外挥出,左掌同时攻向$n",
"force" : 360,
"dodge" : 24,
"damage": 174,
"skill_name" : "玉户帘中",
"lvl" : 65,
"damage_type" : "内伤"
]),
([ "action" : "$N由臂带手,在面前缓缓划过,使一招"+(order[random(13)])+"「鸿雁长飞」"NOR",挥向$n的$l",
"force" : 380,
"dodge" : 22,
"damage": 181,
"skill_name" : "鸿雁长飞",
"lvl" : 70,
"damage_type" : "内伤"
]),
([ "action" : "$N负身就地,右掌使一招"+(order[random(13)])+"「鱼龙潜跃」"NOR",自下而上向$n的$l击去",
"force" : 400,
"dodge" : 20,
"damage": 188,
"skill_name" : "鱼龙潜跃",
"lvl" : 75,
"damage_type" : "内伤"
已经显示 53% (ENTER 继续下一页,q 离开,b 前一页)]),
([ "action" : "$N右手由钩变掌,双手掌心向上,右掌向前推出一招"+(order[random(13)])+"「月华流照」"NOR"",
"force" : 420,
"dodge" : 18,
"damage": 198,
"skill_name" : "月华流照",
"lvl" : 80,
"damage_type" : "内伤"
]),
([ "action" : "$N右掌不住向外扫出,是一式"+(order[random(13)])+"「闲潭落花」"NOR",左掌旋转着向$n攻去",
"force" : 440,
"dodge" : 16,
"damage": 210,
"skill_name" : "闲潭落花",
"lvl" : 85,
"damage_type" : "内伤"
]),
([ "action" : "$N右手经腹前经左肋向前撇出,使一招"+(order[random(13)])+"「江水流春」"NOR",向$n的$l锤去
",
"force" : 460,
"dodge" : 14,
"damage": 220,
"skill_name" : "江水流春",
已经显示 62% (ENTER 继续下一页,q 离开,b 前一页)
"lvl" : 90,
"damage_type" : "内伤"
]),
([ "action" : "$N使一招"+(order[random(13)])+"「斜月沉沉」"NOR",左掌连划三个大圈,右掌从圈中穿出击向$n
",
"force" : 480,
"dodge" : 12,
"damage": 230,
"skill_name" : "斜月沉沉",
"lvl" : 95,
"damage_type" : "内伤"
]),
([ "action" : "$N左手向上划弧拦出,右手使一招"+(order[random(13)])+"「碣石潇湘」"NOR",手掌不住晃动,不
离$n头顶方寸之间",
"force" : 500,
"dodge" : 10,
"damage": 250,
"skill_name" : "碣石潇湘",
"lvl" : 100,
"damage_type" : "内伤"
])
});
已经显示 71% (ENTER 继续下一页,q 离开,b 前一页)
int valid_enable(string usage) { return usage=="strike" || usage=="parry" ; }
int valid_combine(string combo) { return combo=="qixing-shou"; }
int valid_learn(object me)
{
if (me->query_temp("weapon") || me->query_temp("secondary_weapon"))
return notify_fail("练昊天掌必须空手。\n");
if ((int)me->query_skill("xiantian-qigong", 1) < 10)
return notify_fail("你的先天气功火候不够,无法学昊天掌。\n");
return 1;
}
mapping query_action(object me, object weapon)
{
int i, level;
level = (int) me->query_skill("haotian-zhang",1);
for(i = sizeof(action); i > 0; i--)
if(level > action[i-1]["lvl"])
return action[NewRandom(i, 5, level/5)];
}
int practice_skill(object me)
已经显示 79% (ENTER 继续下一页,q 离开,b 前一页)
{
if ((int)me->query("qi") < 30)
return notify_fail("你的体力太低了。\n");
if ((int)me->query("neili") < 20)
return notify_fail("你的内力不够练昊天掌。\n");
me->receive_damage("qi", 25);
me->add("neili", -10);
return 1;
}
string perform_action_file(string action)
{
return __DIR__"haotian-zhang/" + action;
}
mixed hit_ob(object me, object victim, int damage_bonus, int factor, string limb)
{
int level, jiali, time,level2,damage;
object weapon;
weapon = me->query_temp("weapon");
level = (int) me->query_skill("qixing-array",1);
level2= (int) me->query_skill("xiantian-qigong",1);
已经显示 88% (ENTER 继续下一页,q 离开,b 前一页)
if (random(8)==0 && level>=300 && me->query_skill_mapped("force") == "xiantian-qigong")
{
victim->start_busy(3);
return HIR"$N踏奇门,走偏锋,$n双眼一花,不知如何应对!\n"NOR;
}
}
int ob_hit(object ob, object me, int damage)
{
object wp1,weapon;
string msg;
int p,j,skill, neili, neili1;
int level,level2,damage2;
level = (int) me->query_skill("qixing-array",1);
level2= (int) me->query_skill("xiantian-qigong",1);
neili = me->query("neili");
neili1 = ob->query("neili");
damage2= (int) ob->query("neili",1)/10;
if (random(8)==0 && level>=300 && me->query_skill_mapped("force") == "xiantian-qigong")
{
ob->start_busy(3);
已经显示 97% (ENTER 继续下一页,q 离开,b 前一页)msg = HIG"$N七星移位,走偏锋,$n双眼一花,不知如何应对!\n"NOR;
message_vision(msg, me, ob);
return j;
}
}
|