• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X spell damage based on level and mlvl how?

Solution
Lua:
local function calculateDamage(cid)
    local level = getPlayerLevel(cid)
    local mlvl = getPlayerMagLevel(cid)
    local min = (level + mlvl) * 2
    local max = (level + mlvl)  * 3
    return min, max
end

This is one way to do it.
Lua:
local function calculateDamage(cid)
    local level = getPlayerLevel(cid)
    local mlvl = getPlayerMagLevel(cid)
    local min = (level + mlvl) * 2
    local max = (level + mlvl)  * 3
    return min, max
end

This is one way to do it.
 
Solution
Back
Top