https://bbs.hgem2.net/forum.php? ... &extra=page%3D1
纯属骗钱的,啥狗瘠薄东西没有
--使用破魂斩,计算输出时触发(返回指定伤害数值)
function on_MergeMagic_60(actor, nPoint)
local Zhj = 0
local Yhj2 = 0
local RaceId = actor:getRace()--种族ID
if RaceId == 0 then
local U51 = actor:getVal_U(51)
local U52 = actor:getVal_U(52)
if U52 > 0 then
local Syjla = s.share.getRandom(1,100)
Sysh = U52 / 100
if Syjla <= U51 then
Zhj = nPoint * Sysh
actor:sendFloatMsg(2,5,0)
actor:sendCenterMsg(0,249,"本号神佑触发"..U52.."%合击额外伤害:"..math.floor(Zhj),0, 10, 3)
end
end
end
if RaceId == 66 then
local play = s.obj.getPlayer(actor:getMasterName())--如果为英雄需转换对象
if (play~= nil) then
local U89 = play:getVal_U(89)
local U90 = play:getVal_U(90)
if U90 > 0 then
local Syjlb = s.share.getRandom(1,100)
Sysh2 = U90 / 100
if Syjlb <= U89 then
Yhj2 = nPoint * Sysh2
actor:sendFloatMsg(2,5,0)
play:sendCenterMsg(0,249,"英雄神佑触发"..U90.."%合击额外伤害:"..math.floor(Yhj2),0, 10, 3)
end
end
end
end
return nPoint + Zhj + Yhj2
end
--使用劈星斩,计算输出时触发(返回指定伤害数值)
function on_MergeMagic_61(actor, nPoint)
local Zhj = 0
local Yhj2 = 0
local RaceId = actor:getRace()--种族ID
if RaceId == 0 then
local U51 = actor:getVal_U(51)
local U52 = actor:getVal_U(52)
if U52 > 0 then
local Syjla = s.share.getRandom(1,100)
Sysh = U52 / 100
if Syjla <= U51 then
Zhj = nPoint * Sysh
actor:sendFloatMsg(2,5,0)
actor:sendCenterMsg(0,249,"本号神佑触发"..U52.."%合击额外伤害:"..math.floor(Zhj),0, 10, 3)
end
end
end
if RaceId == 66 then
local play = s.obj.getPlayer(actor:getMasterName())--如果为英雄需转换对象
if (play~= nil) then
local U89 = play:getVal_U(89)
local U90 = play:getVal_U(90)
if U90 > 0 then
local Syjlb = s.share.getRandom(1,100)
Sysh2 = U90 / 100
if Syjlb <= U89 then
Yhj2 = nPoint * Sysh2
actor:sendFloatMsg(2,5,0)
play:sendCenterMsg(0,249,"英雄神佑触发"..U90.."%合击额外伤害:"..math.floor(Yhj2),0, 10, 3)
end
end
end
end
return nPoint + Zhj + Yhj2
end
--使用雷霆一击,计算输出时触发(返回指定伤害数值)
function on_MergeMagic_62(actor, nPoint)
local Zhj = 0
local Yhj2 = 0
local RaceId = actor:getRace()--种族ID
if RaceId == 0 then
local U51 = actor:getVal_U(51)
local U52 = actor:getVal_U(52)
if U52 > 0 then
local Syjla = s.share.getRandom(1,100)
Sysh = U52 / 100
if Syjla <= U51 then
Zhj = nPoint * Sysh
actor:sendFloatMsg(2,5,0)
actor:sendCenterMsg(0,249,"本号神佑触发"..U52.."%合击额外伤害:"..math.floor(Zhj),0, 10, 3)
end
end
end
if RaceId == 66 then
local play = s.obj.getPlayer(actor:getMasterName())--如果为英雄需转换对象
if (play~= nil) then
local U89 = play:getVal_U(89)
local U90 = play:getVal_U(90)
if U90 > 0 then
local Syjlb = s.share.getRandom(1,100)
Sysh2 = U90 / 100
if Syjlb <= U89 then
Yhj2 = nPoint * Sysh2
actor:sendFloatMsg(2,5,0)
play:sendCenterMsg(0,249,"英雄神佑触发"..U90.."%合击额外伤害:"..math.floor(Yhj2),0, 10, 3)
end
end
end
end
return nPoint + Zhj + Yhj2
end
--使用噬魂沼泽,计算输出时触发(返回指定伤害数值)
function on_MergeMagic_63(actor, nPoint)
local Zhj = 0
local Yhj2 = 0
local RaceId = actor:getRace()--种族ID
if RaceId == 0 then
local U51 = actor:getVal_U(51)
local U52 = actor:getVal_U(52)
if U52 > 0 then
local Syjla = s.share.getRandom(1,100)
Sysh = U52 / 100
if Syjla <= U51 then
Zhj = nPoint * Sysh
actor:sendFloatMsg(2,5,0)
actor:sendCenterMsg(0,249,"本号神佑触发"..U52.."%合击额外伤害:"..math.floor(Zhj),0, 10, 3)
end
end
end
if RaceId == 66 then
local play = s.obj.getPlayer(actor:getMasterName())--如果为英雄需转换对象
if (play~= nil) then
local U89 = play:getVal_U(89)
local U90 = play:getVal_U(90)
if U90 > 0 then
local Syjlb = s.share.getRandom(1,100)
Sysh2 = U90 / 100
if Syjlb <= U89 then
Yhj2 = nPoint * Sysh2
actor:sendFloatMsg(2,5,0)
play:sendCenterMsg(0,249,"英雄神佑触发"..U90.."%合击额外伤害:"..math.floor(Yhj2),0, 10, 3)
end
end
end
end
return nPoint + Zhj + Yhj2
end
--使用末日审判,计算输出时触发(返回指定伤害数值)
function on_MergeMagic_64(actor, nPoint)
local Zhj = 0
local Yhj2 = 0
local RaceId = actor:getRace()--种族ID
if RaceId == 0 then
local U51 = actor:getVal_U(51)
local U52 = actor:getVal_U(52)
if U52 > 0 then
local Syjla = s.share.getRandom(1,100)
Sysh = U52 / 100
if Syjla <= U51 then
Zhj = nPoint * Sysh
actor:sendFloatMsg(2,5,0)
actor:sendCenterMsg(0,249,"本号神佑触发"..U52.."%合击额外伤害:"..math.floor(Zhj),0, 10, 3)
end
end
end
if RaceId == 66 then
local play = s.obj.getPlayer(actor:getMasterName())--如果为英雄需转换对象
if (play~= nil) then
local U89 = play:getVal_U(89)
local U90 = play:getVal_U(90)
if U90 > 0 then
local Syjlb = s.share.getRandom(1,100)
Sysh2 = U90 / 100
if Syjlb <= U89 then
Yhj2 = nPoint * Sysh2
actor:sendFloatMsg(2,5,0)
play:sendCenterMsg(0,249,"英雄神佑触发"..U90.."%合击额外伤害:"..math.floor(Yhj2),0, 10, 3)
end
end
end
end
return nPoint + Zhj + Yhj2
end
--使用火龙气焰,计算输出时触发(返回指定伤害数值)
function on_MergeMagic_65(actor, nPoint)
local Zhj = 0
local Yhj2 = 0
local RaceId = actor:getRace()--种族ID
if RaceId == 0 then
local U51 = actor:getVal_U(51)
local U52 = actor:getVal_U(52)
if U52 > 0 then
local Syjla = s.share.getRandom(1,100)
Sysh = U52 / 100
if Syjla <= U51 then
Zhj = nPoint * Sysh
actor:sendFloatMsg(2,5,0)
actor:sendCenterMsg(0,249,"本号神佑触发"..U52.."%合击额外伤害:"..math.floor(Zhj),0, 10, 3)
end
end
end
if RaceId == 66 then
local play = s.obj.getPlayer(actor:getMasterName())--如果为英雄需转换对象
if (play~= nil) then
local U89 = play:getVal_U(89)
local U90 = play:getVal_U(90)
if U90 > 0 then
local Syjlb = s.share.getRandom(1,100)
Sysh2 = U90 / 100
if Syjlb <= U89 then
Yhj2 = nPoint * Sysh2
actor:sendFloatMsg(2,5,0)
play:sendCenterMsg(0,249,"英雄神佑触发"..U90.."%合击额外伤害:"..math.floor(Yhj2),0, 10, 3)
end
end
end
end
return nPoint + Zhj + Yhj2
end
|