You can edit player.lua in events, in this example I used a power ring as the exp ring, you have to edit items if you want a custom ring.
in /data/events/scripts/player.lua:
under:
Code:
function Player:onGainExperience(source, exp, rawExp)
add:
Code:
-- Apply bonus experience multiplier if wearing ring
local ring = self:getSlotItem(CONST_SLOT_RING)
if ring and ring.itemid == 2203 then -- 2203 = the ring
exp = exp * 5 -- 5x
end
For skills, find and change:
Code:
function Player:onGainSkillTries(skill, tries)
if APPLY_SKILL_MULTIPLIER == false then
return tries
end
if skill == SKILL_MAGLEVEL then
return tries * configManager.getNumber(configKeys.RATE_MAGIC)
end
return tries * configManager.getNumber(configKeys.RATE_SKILL)
end
to
Code:
function Player:onGainSkillTries(skill, tries)
if APPLY_SKILL_MULTIPLIER == false then
return tries
end
if skill == SKILL_MAGLEVEL then
return tries * configManager.getNumber(configKeys.RATE_MAGIC)
end
tries = tries * configManager.getNumber(configKeys.RATE_SKILL)
-- Apply bonus skill multiplier if wearing ring
local ring = self:getSlotItem(CONST_SLOT_RING)
if ring and ring.itemid == 2203 then -- 2203 = the ring
tries = tries * 5 -- 5x skill rate
end
return tries
end