Tinoy
Level 3
Originally I wanted a command for this but I realized it would be really hard to add, so I made it myself. Simply open it every time you open SchoolRP and it will tell you how much time has passed. I know it's not useful to most people, but oh well.
Here is the script. It is NOT entirely accurate, especially for months, and it only accounts for weekend times after 1+ weeks. It doesn't know what time it is in SchoolRP. There is no years feature, but if someone wants it, i'll add one. If you think it has viruses, then just don't run it lol. You need python on ur computer to run it.
And if you want to put your own version in the replies, you can too. I'm probably not fixing the inaccuracies. And i'm putting it on the forums because it makes it more accessible.
Here is the script. It is NOT entirely accurate, especially for months, and it only accounts for weekend times after 1+ weeks. It doesn't know what time it is in SchoolRP. There is no years feature, but if someone wants it, i'll add one. If you think it has viruses, then just don't run it lol. You need python on ur computer to run it.
Python:
import os
import time
print ("SchoolRP time calculator v.10 (not entirely accurate as it only accounts for weekend times after 1+ weeks")
# File name to store the last saved time
filename = 'last_time.txt'
minutes=0
hours=0
days=0
weeks=0
months=0
# Check if the file exists
if os.path.exists(filename):
# Read the stored time from the file
with open(filename, 'r') as file:
last_saved_time = int(file.read().strip())
else:
# If the file doesn't exist (first time running the program), set last_saved_time to None
last_saved_time = None
# Save the current time to the file
current_time = int(time.time())
with open(filename, 'w') as file:
file.write(str(current_time))
# Calculate the difference in time if it's not the first run
if last_saved_time is not None:
time_difference = (current_time - last_saved_time) * 4
while True:
if time_difference>=60:
time_difference-=60
minutes+=1
if minutes>=60:
minutes-=60
hours+=1
if hours>=24:
hours-=24
days+=1
if days >=7:
days-=7
weeks+=1
hours+=4
if weeks>=4:
weeks-=4
months+=1
if time_difference<60 and minutes<60 and hours<24 and days<7 and weeks <4:
break
print(f"Time difference in SchoolRP time since last run: {time_difference} seconds, {minutes} minutes, {hours} hours, {days} days, {weeks} weeks, and {months} months have occured.")
else:
print("First time running the program")
exit1 = input("Press the enter key to exit")
And if you want to put your own version in the replies, you can too. I'm probably not fixing the inaccuracies. And i'm putting it on the forums because it makes it more accessible.
Last edited: