Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
loop all offline players
Im just started on skript, so i don't really know, how to do that, you know.However I would not recommend doing this every second. It would be better set a variable to ‘now’ when they leave then when they rejoin check the difference between ‘now’ and the variable. Then you can give them a certain amount of cookies based on this elapsed time.code_language.skript:loop all offline players
I have it, but how do i make an offline player time checking contraption from a command cooldown?Look at the example cooldown.sk that is generated. It’s the same concept. If you deleted it then you can google it and it’ll come up
I don't get it.. Sorry..No. Don’t use local variables (no underscore). Have a variable for each player I.e {time::%player%}. And line 6 isn’t right, look at the cooldown.sk, it’s the same concept but different application
Local variables are "{_test}", variables with an underscore at the start.I don't get it.. Sorry..
on quit:
set {time.%player%.logout} to now
stop
on join:
set {_time.hasbeen.offline} to difference between {time.%player%.logout} and now
add {_time.hasbeen.offline} to {total.time.offline.%player%}
stop
#!Optional:
command /check [<offline player>]:
trigger:
send "%arg 1% has been %{total.time.offline.%arg 1%}% minutes/offline." to executor
stop