Commit 3624a378 authored by Tommy Ang's avatar Tommy Ang 🤣

Merge branch 'develop'

parents b28de3c8 63573032
This diff is collapsed.
......@@ -5,7 +5,7 @@ on every second:
set {_hour} to "%LocalTime.now().getHour()%"
set {_minute} to "%LocalTime.now().getMinute()%"
set {_second} to "%LocalTime.now().getSecond()%"
{_second} is 0
{_second} is "0"
if {_hour} is equal to "3":
if {_minute} is equal to "50":
broadcast "Server is scheduled to restart in 10 minutes"
......@@ -17,5 +17,4 @@ on every second:
broadcast "Server is scheduled to restart in 1 minute"
wait 1 minute
broadcast "Server is restarting..."
send a request to "<API ACCESS URL HERE>" with the headers "<SERVER KEY HERE>", and "<ACCESS TOKEN HERE>", and "User-Agent : 'Mozilla/5.0'"
\ No newline at end of file
......@@ -80,16 +80,14 @@ on chat:
set {_message} to message
set {_chat::1} to ""
set {_chat::2} to ""
if {_message} contains "http://" or "https://":
set {_toadd} to 1
set {_found} to 0
set {_message::*} to {_message} split at " "
set {_chat::2} to the first 2 characters of {_message::1}
# set {_chat::2} to the first 2 characters of {_message::1}
loop {_message::*}:
if "%loop-value%" contains "http://" or "https://":
if {_found} is 0:
message "%loop-value%"
set {_link} to loop-value
set {_toadd} to 2
set {_found} to 1
......@@ -122,21 +120,21 @@ on chat:
log "<%player%> %message%" to "chat/%{day}%-%{month}%-%{year}%.log"
if {re.%player%.day} is more than 0:
if {_link} is set:
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.day}% day(s) %{re.%player%.hour}% hour(s) %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_chat::1}%<link:%{_link}%><light cyan><i><u>[Click me]<r>%{_chat::2}%" to all players
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.day}% day(s) %{re.%player%.hour}% hour(s) %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_chat::1}%<link:%{_link}%><light cyan><i><u>%{_link}%<r> %{_chat::2}%" to all players
stop
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.day}% day(s) %{re.%player%.hour}% hour(s) %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_message}%" to all players
set {pchat.previouschat} to player's name
stop
if {re.%player%.hour} is more than 0:
if {_link} is set:
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.hour}% hour(s) %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_chat::1}%<link:%{_link}%><light cyan><i><u>[Click me]<r>%{_chat::2}%" to all players
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.hour}% hour(s) %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_chat::1}%<link:%{_link}%><light cyan><i><u>%{_link}%<r> %{_chat::2}%" to all players
stop
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.hour}% hour(s) %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_message}%" to all players
set {pchat.previouschat} to player's name
stop
else:
if {_link} is set:
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_chat::1}%<link:%{_link}%><light cyan><i><u>[Click me]<r>%{_chat::2}%" to all players
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_chat::1}%<link:%{_link}%><light cyan><i><u>%{_link}%<r> %{_chat::2}%" to all players
stop
message formatted "<tooltip:Rank: %{_rank}% %newline%Town: %{_playertown}% %newline%Playtime: %{re.%player%.minute}% minute(s) %{re.%player%.second}% second(s) %newline%Sent: %now%><%{_color}%%player's display name%<r><white>> %{_message}%" to all players
set {pchat.previouschat} to player's name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment