• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

423: eof expected near end

Lopaskurwa

Well-Known Member
Joined
Oct 6, 2017
Messages
936
Solutions
2
Reaction score
57
LUA:
function Player:onGainSkillTries(skill, tries)
    if APPLY_SKILL_MULTIPLIER == false then
        return tries
    end

    local level = (skill == SKILL_MAGLEVEL) and self:getMagicLevel() or self:getSkillLevel(skill)
    local multiplier = getRateFromTable(skillStages, skill, level, 1)

    local key = (skill == SKILL_MAGLEVEL) and configKeys.RATE_MAGIC or configKeys.RATE_SKILL
    tries = tries * configManager.getNumber(key) * multiplier
        -- Custom Lines
        if getGlobalStorageValue(17591) > os.time() then
            tries = tries * (1 + getGlobalStorageValue(17587) / 100)
        end
        -- Custom Lines
        return tries
    end
    
    tries = tries * configManager.getNumber(configKeys.RATE_SKILL)
    -- Custom Lines
    if getGlobalStorageValue(17590) > os.time() then
        tries = tries * (1 + getGlobalStorageValue(17586) / 100)
    end
    -- Custom Lines
    return tries
end
 
LUA:
function Player:onGainSkillTries(skill, tries)
    if APPLY_SKILL_MULTIPLIER == false then
        return tries
    end

    local level = (skill == SKILL_MAGLEVEL) and self:getMagicLevel() or self:getSkillLevel(skill)
    local multiplier = getRateFromTable(skillStages, skill, level, 1)

    local key = (skill == SKILL_MAGLEVEL) and configKeys.RATE_MAGIC or configKeys.RATE_SKILL
    tries = tries * configManager.getNumber(key) * multiplier
        -- Custom Lines
        if getGlobalStorageValue(17591) > os.time() then
            tries = tries * (1 + getGlobalStorageValue(17587) / 100)
        end
        -- Custom Lines
        return tries
    end
   
    tries = tries * configManager.getNumber(configKeys.RATE_SKILL)
    -- Custom Lines
    if getGlobalStorageValue(17590) > os.time() then
        tries = tries * (1 + getGlobalStorageValue(17586) / 100)
    end
    -- Custom Lines
    return tries
end
The
423
means the line that have error. SEND THE FULL CODE, we can't help you without the code.
In this code, the end in line 17 is closing the function Player:onGainSkillTries. But im pretty sure, that the problem isn't here.
 
Back
Top