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

World Change set Double experience

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hello, actually I'm creating World Changes/Mini World Changes and I got a question, how set double experience for 2 days? I was thinking in use the code below, but don't know about how to set double experience.

Code:
if Game.getStorageValue(WorldChange.doublexp) > 0 then
   -- function
end

Hope someone can help me with that.
Thanks.
 
in TFS 1.1+ there is some function in events/scripts/player.lua called onGainExperience (correct me if I'm wrong)
You can place there:
if Game.getStorageValue(WorldChange.doublexp) > 0 then
exp = exp * 2
end
 
Back
Top