• 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!

way to set more xxx% experience TFS 1.2

gubbo123

New Member
Joined
Aug 15, 2017
Messages
151
Solutions
1
Reaction score
3
Is 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.
 
Is 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.
data/events/player.lua
search for:
LUA:
function Player:onGainExperience(source, exp, rawExp)
in the last line of the function has:
LUA:
    return exp
end
change to:
LUA:
    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
 
Back
Top