local Rune_Attr = 0
local Rune_MaxHpPer = 0
local Rune_MaxHp = 0
local Rune_MingZhong = 0
local Rune_HuiXinGG = 0
local Rune_HuiXinFY = 0
local Rune_ShanBi = 0
--已装备的秘技
local MiJiData = {
tonumber(GetWuZiDataEx(sceneId, selfId, 10005)),
tonumber(GetWuZiDataEx(sceneId, selfId, 10006)),
tonumber(GetWuZiDataEx(sceneId, selfId, 10007)),
tonumber(GetWuZiDataEx(sceneId, selfId, 10008))
}
for i = 1, 4 do
if MiJiData[i] > 0 then
if MiJiData[i] == 38004251 then --//青眼有加(二五) (命中)
local list = {1,2,3,4,5}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004251)
local OrderExtraTable = {0,1,2,3}
local nMax = {6,6,7,8}
Rune_Attr = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_Attr > nMax[OrderExtra] then
Rune_Attr = nMax[OrderExtra]
end
Hit_Persent = Hit_Persent + Rune_Attr
XueWuDebug( sceneId,selfId,"无字谱 [青眼有加] 获得命中加成"..Rune_Attr.."%")
elseif MiJiData[i] == 38004252 then --//随侯获珠(二六) (会心)
local list = {1,2,3,4,5}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004252)
local OrderExtraTable = {0,1,2,3}
local nMax = {6,6,7,8}
Rune_Attr = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_Attr > nMax[OrderExtra] then
Rune_Attr = nMax[OrderExtra]
end
CriticalAttack_Persent = CriticalAttack_Persent + Rune_Attr
XueWuDebug( sceneId,selfId,"无字谱 [随侯获珠] 获得会心加成"..Rune_Attr.."%")
elseif MiJiData[i] == 38004253 then --//步袜生尘(二七) (闪避)
local list = {1,2,3,4,5}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004253)
local OrderExtraTable = {0,1,2,3}
local nMax = {6,6,7,8}
Rune_Attr = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_Attr > nMax[OrderExtra] then
Rune_Attr = nMax[OrderExtra]
end
Miss_Persent = Miss_Persent + Rune_Attr
XueWuDebug( sceneId,selfId,"无字谱 [步袜生尘] 获得闪避加成"..Rune_Attr.."%")
elseif MiJiData[i] == 38004254 then --//东山高卧(二八) (会防)
local list = {1,2,3,4,5}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004254)
local OrderExtraTable = {0,1,2,3}
local nMax = {6,6,7,8}
Rune_Attr = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_Attr > nMax[OrderExtra] then
Rune_Attr = nMax[OrderExtra]
end
CriticalDefence_Persent = CriticalDefence_Persent + Rune_Attr
XueWuDebug( sceneId,selfId,"无字谱 [东山高卧] 获得会防加成"..Rune_Attr.."%")
elseif MiJiData[i] == 38004255 then --//龟寿千年(二九) (血上限)
local list = {1,2,3,4,5}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004255)
local OrderExtraTable = {0,1,2,3}
local nMax = {6,6,7,8}
Rune_MaxHpPer = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_MaxHpPer > nMax[OrderExtra] then
Rune_MaxHpPer = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [龟寿千年] 获得血上限加成"..Rune_MaxHpPer.."%")
elseif MiJiData[i] == 38004236 then --//魏武持刀(三十) (外功攻击)
local list = {5,7.5,10,12.5,15}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004236)
local OrderExtraTable = {0,3,8,15}
local nMax = {18,18,23,30}
AttackPhysics_Persent = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if AttackPhysics_Persent > nMax[OrderExtra] then
AttackPhysics_Persent = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [魏武持刀] 外功攻击加成"..AttackPhysics_Persent.."%")
elseif MiJiData[i] == 38004237 then --//三刀入梦(三一) (内功攻击)
local list = {5,7.5,10,12.5,15}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004237)
local OrderExtraTable = {0,3,8,15}
local nMax = {18,18,23,30}
AttackMagic_Persent = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if AttackMagic_Persent > nMax[OrderExtra] then
AttackMagic_Persent = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [三刀入梦] 内功攻击加成"..AttackMagic_Persent.."%")
elseif MiJiData[i] == 38004626 then --//投壶问月(三二) (命中)
local list = {1500,1650,1800,1950,2100}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004626)
local OrderExtraTable = {0,200,500,900}
local nMax = {2300,2300,2600,3000}
Rune_MingZhong = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_MingZhong > nMax[OrderExtra] then
Rune_MingZhong = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [投壶问月] 命中加成"..Rune_MingZhong.."点")
elseif MiJiData[i] == 38004627 then --//周王一怒(三三) (会心攻击)
local list = {8,10,12,14,16}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004627)
local OrderExtraTable = {0,2,5,9}
local nMax = {18,18,21,25}
Rune_HuiXinGG = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_HuiXinGG > nMax[OrderExtra] then
Rune_HuiXinGG = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [周王一怒] 会心攻击加成"..Rune_HuiXinGG.."点")
elseif MiJiData[i] == 38004628 then --//飞燕轻姿(三四) (闪避)
local list = {675,740,805,870,935}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004628)
local OrderExtraTable = {0,100,300,600}
local nMax = {800,800,1000,1300}
Rune_ShanBi = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_ShanBi > nMax[OrderExtra] then
Rune_ShanBi = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [飞燕轻姿] 闪避加成"..Rune_ShanBi.."点")
elseif MiJiData[i] == 38004629 then --//兵甲护塞(三五) (会心防御)
local list = {8,10,12,14,16}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004629)
local OrderExtraTable = {0,2,5,9}
local nMax = {18,18,21,25}
Rune_HuiXinFY = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_HuiXinFY > nMax[OrderExtra] then
Rune_HuiXinFY = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [兵甲护塞] 会心防御加成"..Rune_HuiXinFY.."点")
elseif MiJiData[i] == 38004630 then --//龟鹤延年(三五) (血上限)
local list = {8,10,12,14,16}
local Rune_MiLevel,OrderExtra = CallScriptFunction(920310,"GetMiJiLevel", sceneId, selfId,38004630)
local OrderExtraTable = {0,2,5,9}
local nMax = {18,18,21,25}
Rune_MaxHp = list[Rune_MiLevel] + OrderExtraTable[OrderExtra]
if Rune_MaxHp > nMax[OrderExtra] then
Rune_MaxHp = nMax[OrderExtra]
end
XueWuDebug( sceneId,selfId,"无字谱 [龟鹤延年] 血上限加成"..Rune_MaxHp.."点")
end
end
end