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