CommonFun.calcBuff_74074 mapped buffs · 1 skills
function CommonFun.calcBuff_740(srcUser, targetUser, a, b, c, d, lv)
if srcUser == nil or targetUser == nil then
return 0
end
local Num1 = srcUser:GetRunePoint(12180)
local A = 100 - Num1 * 100
if A <= 0 then
return 0
end
return A
end
CommonFun.calcBuff_74000 mapped uses
function CommonFun.calcBuff_7400(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 == 44120 or Ring1 == 144120) and 0 <= RefineLv1 and RefineLv1 < 12 then
a = 0
elseif (Ring1 == 44120 or Ring1 == 144120) and 12 <= RefineLv1 and RefineLv1 < 15 then
a = 0.05
elseif (Ring1 == 44120 or Ring1 == 144120) and 15 <= RefineLv1 then
a = 0.1
end
if (Ring2 == 44120 or Ring2 == 144120) and 0 <= RefineLv2 and RefineLv2 < 12 then
b = 0
elseif (Ring2 == 44120 or Ring2 == 144120) and 12 <= RefineLv2 and RefineLv2 < 15 then
b = 0.05
elseif (Ring2 == 44120 or Ring2 == 144120) and 15 <= RefineLv2 then
b = 0.1
end
if (Ring1 == 44120 or Ring1 == 144120) and (Ring2 == 44120 or Ring2 == 144120) then
c = 2
end
local A = (a + b) / c
return A
end
CommonFun.calcBuff_74010 mapped uses
function CommonFun.calcBuff_7401(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 == 44121 or Ring1 == 144121) and 0 <= RefineLv1 and RefineLv1 < 12 then
a = 0
elseif (Ring1 == 44121 or Ring1 == 144121) and 12 <= RefineLv1 and RefineLv1 < 15 then
a = 0.05
elseif (Ring1 == 44121 or Ring1 == 144121) and 15 <= RefineLv1 then
a = 0.1
end
if (Ring2 == 44121 or Ring2 == 144121) and 0 <= RefineLv2 and RefineLv2 < 12 then
b = 0
elseif (Ring2 == 44121 or Ring2 == 144121) and 12 <= RefineLv2 and RefineLv2 < 15 then
b = 0.05
elseif (Ring2 == 44121 or Ring2 == 144121) and 15 <= RefineLv2 then
b = 0.1
end
if (Ring1 == 44121 or Ring1 == 144121) and (Ring2 == 44121 or Ring2 == 144121) then
c = 2
end
local A = (a + b) / c
return A
end
CommonFun.calcBuff_74020 mapped uses
function CommonFun.calcBuff_7402(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 == 44122 or Ring1 == 144122) and 0 <= RefineLv1 and RefineLv1 < 12 then
a = 0
elseif (Ring1 == 44122 or Ring1 == 144122) and 12 <= RefineLv1 and RefineLv1 < 15 then
a = 0.05
elseif (Ring1 == 44122 or Ring1 == 144122) and 15 <= RefineLv1 then
a = 0.1
end
if (Ring2 == 44122 or Ring2 == 144122) and 0 <= RefineLv2 and RefineLv2 < 12 then
b = 0
elseif (Ring2 == 44122 or Ring2 == 144122) and 12 <= RefineLv2 and RefineLv2 < 15 then
b = 0.05
elseif (Ring2 == 44122 or Ring2 == 144122) and 15 <= RefineLv2 then
b = 0.1
end
if (Ring1 == 44122 or Ring1 == 144122) and (Ring2 == 44122 or Ring2 == 144122) then
c = 2
end
local A = (a + b) / c
return A
end