Jump to content

Help With Chat Event


DraykerMaykerr

Recommended Posts

I am making a server with chat events.
Maybe "Say "astronaut" for an astronaut helmet!" type thing.
That's exactly what I'm trying to do, but it won't work.
The Skript is WIP so don't mind the random part at the beginning lol
But this won't work. Anyone help?

every 3 minutes:
    set {_num} to random integer between 1 and 1
    if {_num} is equal to 1:
        broadcast "&cEvent&7: &bType 'astronaut' for a free astronaut helmet item! Expires in 25 seconds!"
        set {_astronaut} to "a"
        wait 25 seconds
        delete {_astronaut}

on chat:
    if message is equal to "astronaut":
        if {_astronaut} is equal to "a":
            set {%player's uuid%astronaut} to "astronaut"
            send "&bHooray! Do /equip astronaut to equip!"

Link to comment
Share on other sites

every 3 minutes:
    set {_num} to random integer between 1 and 1
    if {_num} is equal to 1:
        broadcast "&cEvent&7: &bType 'astronaut' for a free astronaut helmet item! Expires in 25 seconds!"
        set {_astronaut} to "a"
        wait 25 seconds
        delete {_astronaut}

on chat:
    if message contains "astronaut":
        if {_astronaut} is equal to "a":
            set {%player's uuid%astronaut} to "astronaut"
            send "&bHooray! Do /equip astronaut to equip!" to player

 

  • Thanks 1

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

On 9/1/2021 at 2:33 PM, Lapzzo said:
every 3 minutes:
    set {_num} to random integer between 1 and 1
    if {_num} is equal to 1:
        broadcast "&cEvent&7: &bType 'astronaut' for a free astronaut helmet item! Expires in 25 seconds!"
        set {_astronaut} to "a"
        wait 25 seconds
        delete {_astronaut}

on chat:
    if message contains "astronaut":
        if {_astronaut} is equal to "a":
            set {%player's uuid%astronaut} to "astronaut"
            send "&bHooray! Do /equip astronaut to equip!" to player

 

Thank you I totally missed that part! lol

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...