data/events/player.luaIs there any way to set for example 5% more experience on specific days? an automatic method perhaps, using startup function?
i want more 5% of experience only on mondays and tuesdays.
function Player:onGainExperience(source, exp, rawExp)
return exp
end
local day, day_multiplier = os.date("%A"), 1
if day == "Monday" or day == "Tuesday" then
day_multiplier = 1.05
end
return exp * day_multiplier
end
local day = os.date("%A")
if day == "Monday" or day == "Tuesday" then
day_multiplier = 1.05
end
return exp * day_multiplier
end