Explore ROM internal Lua formulas

1,812 formulas archived

CommonFun.calcBuff_2121

Lua
function CommonFun.calcBuff_2121(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local EquipASPD = srcUser:GetProperty("EquipASPD")
11 linesView Formula

CommonFun.calcBuff_2130

Lua
function CommonFun.calcBuff_2130(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
10 linesView Formula

CommonFun.calcBuff_2140

Lua
function CommonFun.calcBuff_2140(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
10 linesView Formula

CommonFun.calcBuff_2150

Lua
function CommonFun.calcBuff_2150(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 5
19 linesView Formula

CommonFun.calcBuff_2151

Lua
function CommonFun.calcBuff_2151(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
14 linesView Formula

CommonFun.calcBuff_2160

Lua
function CommonFun.calcBuff_2160(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local A = 0
12 linesView Formula

CommonFun.calcBuff_2170

Lua
function CommonFun.calcBuff_2170(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = targetUser:GetProperty("MaxHp")
12 linesView Formula

CommonFun.calcBuff_2180

Lua
function CommonFun.calcBuff_2180(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxSp = targetUser:GetProperty("MaxSp")
12 linesView Formula

CommonFun.calcBuff_2190

Lua
function CommonFun.calcBuff_2190(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  if damage <= 1 then
18 linesView Formula

CommonFun.calcBuff_22

Lua
function CommonFun.calcBuff_22(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Int = srcUser:GetProperty("Int")
25 linesView Formula

CommonFun.calcBuff_2200

Lua
function CommonFun.calcBuff_2200(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
14 linesView Formula

CommonFun.calcBuff_2210

Lua
function CommonFun.calcBuff_2210(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
44 linesView Formula

CommonFun.calcBuff_2220

Lua
function CommonFun.calcBuff_2220(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local targetRace = targetUser.race
18 linesView Formula

CommonFun.calcBuff_2230

Lua
function CommonFun.calcBuff_2230(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Ring1 = srcUser:GetEquipedID(5_ACCESSORY)
25 linesView Formula

CommonFun.calcBuff_2240

Lua
function CommonFun.calcBuff_2240(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
16 linesView Formula

CommonFun.calcBuff_2250

Lua
function CommonFun.calcBuff_2250(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Vit = targetUser:GetProperty("Vit")
41 linesView Formula

CommonFun.calcBuff_2260

Lua
function CommonFun.calcBuff_2260(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Int1 = targetUser:GetProperty("Int")
43 linesView Formula

CommonFun.calcBuff_2270

Lua
function CommonFun.calcBuff_2270(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local IgnoreDef = 0
33 linesView Formula

CommonFun.calcBuff_2271

Lua
function CommonFun.calcBuff_2271(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Sp = srcUser:GetProperty("Sp")
34 linesView Formula

CommonFun.calcBuff_2272

Lua
function CommonFun.calcBuff_2272(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Sp = srcUser:GetProperty("Sp")
34 linesView Formula