1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript that changes outcome of a command everyday

Discussion in 'Requests' started by SamuelCH, Dec 18, 2021.

Tags:
  1. SamuelCH

    SamuelCH Member

    Joined:
    Dec 18, 2021
    Messages:
    1
    Likes Received:
    0
    I need a skript that changes the command that it executes every day.

    What i tried doing:

    command shoptest:
    trigger:
    make the player execute command "/testshop"
    wait 15 seconds
    command shoptest:
    trigger:
    make the player execute command "/testshop2"

    I know this skript is horrible, i'm really new.

    So when the player executes "/shoptest" it makes the player execute command "/testshop" and the next the when the player executes the same command "/shoptest" now it makes the player execute "/testshop2" instead.
     
  2. Cerquaas

    Cerquaas New Member

    Joined:
    Apr 30, 2020
    Messages:
    3
    Likes Received:
    0
    Try this. I have not had time to verify.
    The "wait 15 seconds" is useless. You also can't register a command twice.

    Code (Text):
    1. command /shoptest:
    2.     trigger:
    3.         {shoptest::%player%} is true:
    4.             make player execute command "testshop2"
    5.         else:
    6.             set {shoptest::%player%} to true
    7.             make player execute command "testshop"
     

Share This Page

Loading...