#Why is this not working? I cant find the error
1 messages · Page 1 of 1 (latest)
this is how it should work:
If 2 players are in the queue then one player will get auto executed /rtp and then the second will get tped to the other player
Can anyone help?
if {queueset::%player's uuid%} is true:
wait no
first
remove queueset var
and u can make it add the player to the queue list and check if the player is in that list
How can I make that?
if {queue::*} >= {numqueue}:
set {queue::*} to 0```
remove that
and use
if {x::*} contains player's uuid:
if size of {x::*} >= 2
x means queue?
yea
if {numqueue} is not set:
set {numqueue} to 2
loop all players:
if {queueset::%loop-player's uuid%} is not set:
set {queueset::%loop-player's uuid%} to false
command /queue:
trigger:
if {queue::*} contains player's uuid:
if size of {queue::*} >= 2
send "&7Teleporting..." to {queuetp::*}
execute player command "/rtp"
teleport {queuetp::*} to player
clear {queuetp::*}
set {queueset::*} to false
else:
send "&aYou have been added to the queue!"
set {queueset::%player's uuid%} to true
set {queuetp::%player's uuid%} to player
add 1 to {queue::*}
else:
send "&cYou are already in this queue!" to player
command /setqueue <number>:
usage: &cAdd a number to set a queue! the default number is 2.
permission: op
trigger:
set {numqueue} to arg-1
send "&aSuccessfully set queue to &3%{numqueue}%&a."
command /resetqueue:
permission: op
trigger:
clear {queuetp::*}
set {queue::*} to 0
set {queueset::*} to false
send "&aSuccessfully cleared queue!"```
Its like this now and it spams full errors
damn
the whole skript needs to be rewritten then
yea
or
i can fix the current one
you choose
you wannt a better system
or fix this one
you dont need to store useless stuff
u can change it to a ram var
easier to add on to
Can you try fixxing the current one only?
sure
Thanks
let me load up mc
set {-numqueue} to 2
command /queue:
trigger:
if {-queueset::%player's uuid%} is not set:
if {-queue} >= {-numqueue}:
send "&7Teleporting..." to {-queuetp::*}
execute player command "/rtp"
wait 1 second
teleport {-queuetp::*} to player
set {-queue} to 0
delete {-queuetp::*}
delete {-queueset::*}
else:
send "&aYou have been added to the queue!"
set {-queueset::%player's uuid%} to true
add player to {-queuetp::*}
add 1 to {-queue}
else:
send "&cYou are already in this queue!" to player
command /setqueue <number>:
usage: &cAdd a number to set a queue! the default number is 2.
permission: op
trigger:
set {-numqueue} to arg-1
send "&aSuccessfully set queue to &3%{-numqueue}%&a."
command /resetqueue:
permission: op
trigger:
delete {-queuetp::*}
set {-queue} to 0
delete {-queueset::*}
send "&aSuccessfully cleared queue!"```
try that
@amber basin
"You have been added to the queue" but nothing happens (im testing it with another player)
We are both in the queue
debug
?
any
{-queueset::*}
in the /queue command
When typing it or just from the skript?
hold up
ik why
on load:
set {-numqueue} to 2
command /queue:
trigger:
if {-queueset::%player's uuid%} is not set:
send "&aYou have been added to the queue!"
set {-queueset::%player's uuid%} to true
add player to {-queuetp::*}
add 1 to {-queue}
if {-queue} >= {-numqueue}:
send "&7Teleporting..." to {-queuetp::*}
execute player command "/rtp"
wait 1 second
teleport {-queuetp::*} to player
set {-queue} to 0
delete {-queuetp::*}
delete {-queueset::*}
else:
send "&cYou are already in this queue!" to player
command /setqueue <number>:
usage: &cAdd a number to set a queue! the default number is 2.
permission: op
trigger:
set {-numqueue} to arg-1
send "&aSuccessfully set queue to &3%{-numqueue}%&a."
command /resetqueue:
permission: op
trigger:
delete {-queuetp::*}
set {-queue} to 0
delete {-queueset::*}
send "&aSuccessfully cleared queue!"```
np
Could you make /leavequeue also?
you might want to add this to your skript config
the pattern should be that
and reload config
you should be able to do that urself
try it
Yeah Ill just copy the /resetqueue and change it abit
should be easy
ye
thank you very much
@iron wasp Is it possible to add a glowing effect to both of the players? (i dont know what to argument to use for the player)
give both the glowing potion effect
what would be the command / line
also if one of them dies then both glowing effects should be removed
do i need a extra skript for that?
nevermind Ill just use a small cooldown
apply %potioneffects% to player?
yea
do i need 2 lines for that?
is there a document for the glowing effect or of all effects
There is no duration mentioned
you gotta learn basic skript essenials like reading docs
apply potion of glowing 1 without particles to player for 1 days
How do I add that to both?
It only works to the player who executes /rtp
please learn skript...
I added it into both lines the effect just stacks
Im Super new to Skript im learning it but it worked before then I changed smth and now it doesn’t work
you gotta give it to the entire list