Keyall not Working

  • Welcome to skUnity!

    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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Oct 29, 2023
34
2
8
24
Also habe ich mein eigenes Keyall-Skript erstellt, aber es funktioniert irgendwie nicht. Ich bin ein Anfänger im Scripting. Könnten Sie bitte das Problem beheben?
 

Attachments

  • Keyall.sk
    1.2 KB · Views: 71
Congrats, you have everything 2 times.

Here is a somewhat more sorted version

Code:
variables:
    {timer_count} = 0

every 1 second:
    if {timer_count} is 0:
        execute console command "/ecrates key giveall emerald 1"
        set {timer} to {timer_count} parsed as timespan
        set {timer} to 3600
        broadcast "KEYALL"
    else:
        remove 1 from {timer_count}

every 5 minutes:
    if {timer_count} != 0:
        set {timer} to {timer_count} parsed as timespan
        remove 300 from {timer}
        broadcast "%{timer}% seconds until"

command /keyall:
    permission: op
    trigger:
        execute command "ecrates key giveall emerald 1"
 
Congrats, you have everything 2 times.

Here is a somewhat more sorted version

Code:
variables:
    {timer_count} = 0

every 1 second:
    if {timer_count} is 0:
        execute console command "/ecrates key giveall emerald 1"
        set {timer} to {timer_count} parsed as timespan
        set {timer} to 3600
        broadcast "KEYALL"
    else:
        remove 1 from {timer_count}

every 5 minutes:
    if {timer_count} != 0:
        set {timer} to {timer_count} parsed as timespan
        remove 300 from {timer}
        broadcast "%{timer}% seconds until"

command /keyall:
    permission: op
    trigger:
        execute command "ecrates key giveall emerald 1"
Thank you can you tell me how to set the keyall to 3600 seconds because on the Server the Keyall is every 1 second
 
Code:
every 3600 second:
    execute console command "ecrates key giveall emerald 1"
    broadcast "KEYALL"

command /keyall:
    permission: op
    trigger:
        execute command "ecrates key giveall emerald 1"
 
Code:
every 3600 second:
    execute console command "ecrates key giveall emerald 1"
    broadcast "KEYALL"

command /keyall:
    permission: op
    trigger:
        execute command "ecrates key giveall emerald 1"
I already had that skript but i wanted it with an placeholder that i can display that on the tab like Keyall: 33m 12s
 
Code:
every 1 second:
    add 1 to {keyall}
    if {keyall} > 3600:
        set {keyall} to 0
        execute console command "ecrates key giveall emerald 1"
        broadcast "KEYALL"

every 5 minutes:
    if {keyall} is set:
        broadcast "Key all in %{keyall}% seconds"