function Player:onGainExperience(source, exp, rawExp)
return exp
end
function Player:onGainExperience(source, exp, rawExp)
local ringItem = self:getSlotItem(CONST_SLOT_RING)
if ringItem and ringItem:getId() == 18528 then
return exp * 1.5
end
return exp
end
<event class="Player" method="onGainExperience" enabled="0" />
<event class="Player" method="onGainExperience" enabled="1" />
function Player:onGainExperience(source, exp, rawExp)
local party = self:getParty()
if party then
if party:isSharedExperienceEnabled() and party:isSharedExperienceActive() then
local bonus = config[party:getVocationCount()]
if not bonus then
return exp
end
exp = exp * bonus
end
end
return exp
end