Discord Thread Chat mention skript variables

  • 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 community!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,749
1
0
The skUnity Discord
discord.gg
Hi, can someone tell me what is wrong in those variables? Im just new at skript and i did something, but it cant understand condition.. idk why
`on chat:
set {_waited} to difference between {cooldown::%player's uuid%} and now
if {_waited} is less than 3 seconds:
send "&cYou cant ping that fast!"
cancel event
if {ping.exempt} is set to true:
send "&cYou cant ping this player."
cancel event
else:
loop all players:
if message contains loop-player's name:
if loop-player's name is not name of sender:
if {ping.exempt} is set to false:
wait 1 tick
play sound "ENTITYEXPERIENCEORB_PICKUP" to loop-player
send action bar "&aSomeone pinged you :O" to loop-player
set {cooldown::%player's uuid%} to now


command /pingoff:
permission: oznaceni.off
permission message: &cYou can't do this!
trigger:
set {ping.exempt} to true
send "&aPlayers cant ping you now."

command /pingon:
permission: oznaceni.on
permission message: &cYou can't do this!
trigger:
set {ping.exempt} to false
send "&aPlayers can ping you now."`

Posted by: danrub from the skUnity Discord. View the thread on skUnity Discord here
 
Hello, your script needs a lot of improvement:
- change the variable in
code_language.skript:
set {ping.exempt} to false to {ping::%player%}
- the error if {ping.exempt} is set to true: just remove set to
- loop all player the variables should {ping::%loop-player%}
instead of that normal variable
read this Skript Tutorials : https://sovdee.gitbook.io/skript-tutorials/

Posted by: eult from the skUnity Discord.
 
Status
Not open for further replies.