CommonFun.calcBuff_74142 mapped buffs · 1 skills
function CommonFun.calcBuff_741(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Num1 = srcUser:GetRunePoint(12180)
local A = Num1 * (a * lv + b)
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_74100 mapped uses
function CommonFun.calcBuff_7410(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Ring1 = srcUser:GetEquipedID(5)
local RefineLv1 = srcUser:GetEquipedRefineLv(5)
local Ring2 = srcUser:GetEquipedID(6)
local RefineLv2 = srcUser:GetEquipedRefineLv(6)
local order1 = srcUser:getEquipLv(5)
local order2 = srcUser:getEquipLv(6)
local a = 0
local b = 0
local c = 1
if (Ring1 == 44123 or Ring1 == 144123) and 0 <= RefineLv1 and RefineLv1 < 12 then
a = 0.03
elseif (Ring1 == 44123 or Ring1 == 144123) and 12 <= RefineLv1 and RefineLv1 < 15 then
a = 0.06
elseif (Ring1 == 44123 or Ring1 == 144123) and 15 <= RefineLv1 then
a = 0.09
end
if (Ring2 == 44123 or Ring2 == 144123) and 0 <= RefineLv2 and RefineLv2 < 12 then
b = 0.03
elseif (Ring2 == 44123 or Ring2 == 144123) and 12 <= RefineLv2 and RefineLv2 < 15 then
b = 0.06
elseif (Ring2 == 44123 or Ring2 == 144123) and 15 <= RefineLv2 then
b = 0.09
end
if (Ring1 == 44123 or Ring1 == 144123) and (Ring2 == 44123 or Ring2 == 144123) then
c = 2
end
local A = (a + b) / c
return A
end
CommonFun.calcBuff_74110 mapped uses
function CommonFun.calcBuff_7411(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Ring1 = srcUser:GetEquipedID(5)
local RefineLv1 = srcUser:GetEquipedRefineLv(5)
local Ring2 = srcUser:GetEquipedID(6)
local RefineLv2 = srcUser:GetEquipedRefineLv(6)
local order1 = srcUser:getEquipLv(5)
local order2 = srcUser:getEquipLv(6)
local a = 0
local b = 0
local c = 1
if (Ring1 == 44124 or Ring1 == 144124) and 0 <= RefineLv1 and RefineLv1 < 12 then
a = 0.03
elseif (Ring1 == 44124 or Ring1 == 144124) and 12 <= RefineLv1 and RefineLv1 < 15 then
a = 0.06
elseif (Ring1 == 44124 or Ring1 == 144124) and 15 <= RefineLv1 then
a = 0.09
end
if (Ring2 == 44124 or Ring2 == 144124) and 0 <= RefineLv2 and RefineLv2 < 12 then
b = 0.03
elseif (Ring2 == 44124 or Ring2 == 144124) and 12 <= RefineLv2 and RefineLv2 < 15 then
b = 0.06
elseif (Ring2 == 44124 or Ring2 == 144124) and 15 <= RefineLv2 then
b = 0.09
end
if (Ring1 == 44124 or Ring1 == 144124) and (Ring2 == 44124 or Ring2 == 144124) then
c = 2
end
local A = (a + b) / c
return A
end
CommonFun.calcBuff_74120 mapped uses
function CommonFun.calcBuff_7412(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Ring1 = srcUser:GetEquipedID(5)
local RefineLv1 = srcUser:GetEquipedRefineLv(5)
local Ring2 = srcUser:GetEquipedID(6)
local RefineLv2 = srcUser:GetEquipedRefineLv(6)
local order1 = srcUser:getEquipLv(5)
local order2 = srcUser:getEquipLv(6)
local a = 0
local b = 0
local c = 1
if (Ring1 == 44125 or Ring1 == 144125) and 0 <= RefineLv1 and RefineLv1 < 12 then
a = 0.03
elseif (Ring1 == 44125 or Ring1 == 144125) and 12 <= RefineLv1 and RefineLv1 < 15 then
a = 0.06
elseif (Ring1 == 44125 or Ring1 == 144125) and 15 <= RefineLv1 then
a = 0.09
end
if (Ring2 == 44125 or Ring2 == 144125) and 0 <= RefineLv2 and RefineLv2 < 12 then
b = 0.03
elseif (Ring2 == 44125 or Ring2 == 144125) and 12 <= RefineLv2 and RefineLv2 < 15 then
b = 0.06
elseif (Ring2 == 44125 or Ring2 == 144125) and 15 <= RefineLv2 then
b = 0.09
end
if (Ring1 == 44125 or Ring1 == 144125) and (Ring2 == 44125 or Ring2 == 144125) then
c = 2
end
local A = (a + b) / c
return A
end