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

Set World Type

VectorEnzo

New Member
Joined
May 23, 2015
Messages
1
Reaction score
0
Hello, I don't know if I'm posting it right, but I need to know if you guys can help me.
I want to create a script to my globalevents to change my worldtype in a specific day.
Like this;

Monday to Friday / Open PvP
Saturday and Sunday / Hardcore PvP

Greetings,
Vector.
 
I think what Limos is trying to say is that this is a request not "support" you should try to make it yourself then post the problems here so we can help you.
 
This actually :p

5. Incomplete Problem Description:
- Post as much useful information as possible. If the problem is about something on your server, post the server version and client version. Also always post the errors you get and the scripts with the problems.

If he doesn't know where to start, he can get guidance for that. But people can't help without any information about what he is using.
 
As far i know. Only timestamps is allowed in globalevents.xml eg.
Correct me if i am wrong.
Code:
<globalevent name="Server Save" time="09:55:00" script="serversave.lua" />

And not like this
Code:
<globalevent name="Server Save" time="Monday" script="serversave.lua" />
 
You can check for the day in the Lua script.
Oh, didn't know. :p Another thing about globalevents. Is it possible to add 2 serversaves? Like this

Code:
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
    <globalevent type="startup" name="ServerStartup" script="startup.lua"/>
    <globalevent type="record" name="PlayerRecord" script="record.lua"/>
    <globalevent name="Server Save" time="09:55:00" script="serversave.lua" />
    <globalevent name="Server Save" time="21:55:00" script="serversave.lua"/>
</globalevents>
 
Oh, didn't know. :p Another thing about globalevents. Is it possible to add 2 serversaves? Like this

Code:
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
    <globalevent type="startup" name="ServerStartup" script="startup.lua"/>
    <globalevent type="record" name="PlayerRecord" script="record.lua"/>
    <globalevent name="Server Save" time="09:55:00" script="serversave.lua" />
    <globalevent name="Server Save" time="21:55:00" script="serversave.lua"/>
</globalevents>

It is posible, but better to use an interval script on x hours that will be executed, if you want exact times then just use an array and check the day with os.date()
 
Back
Top