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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Your login skript has looped infinitly. IT means you have part of your code that causes the code to repeat itself. Can you post that skript?
ok a segYour login skript has looped infinitly. IT means you have part of your code that causes the code to repeat itself. Can you post that skript?
options:
logo: &9[&bEnder&aTheth&9]
#
command /registrar <text> <text>:
aliases: /reg, /register
trigger:
if {login.now.%player%} is true:
if {login.regya.%player%} is true:
send "{@logo}&cYa estas registrado"
else:
if arg-1 is arg-2:
set {login.contra.%player%} to arg-1
delete {login.now.%player%}
set {login.regya.%player%} to true
else:
send "{@logo}Tienes que repetir la contraseña"
else:
send "{@logo}&cYa te logeaste"
command /login <text>:
aliases: /log
trigger:
if {login.now.%player%} is true:
if {login.regya.%player%} is true:
if {login.contra.%player%} is arg-1:
send "{@logo}Logeado perfectamente"
send "{@logo}Si eres premium utiliza premium"
delete {login.now.%player%}
else:
send "{@logo}&cContraseña Incorrecta"
else:
send "{@logo}Nesesitas registrarte /reg (contraseña) (repitela)"
else:
send "{@logo}ya estas logeado %player%"
on first join:
set {first.%player%} to true
wait 10 second
delete {first.%player%}
if {premium.%player%} is true:
send "{@logo}Modo premium"
else:
set {login.now.%player%} to true
if {login.regya.%player%} is true:
message "{@logo}&7 Logeate&f /login <contraseña>"
loop 20 times:
wait 5 seconds
message "&8[&7----------{@logo}&7----------&8]"
message "{@logo}&7 Logeate&f /login <contraseña>"
if {login.now.%player%} isn't set:
exit loop
else:
message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
loop 20 times:
wait 5 seconds
message "&8[&7----------{@logo}&7----------&8]"
message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
if {login.now.%player%} isn't set:
exit loop
#
on join:
wait 1 second
if {first.%player%} is true:
stop
else:
if {premium.%player%} is true:
delete {premium.%player%}
execute console command "/kick %player% &7reconectate mi error"
else:
set {login.now.%player%} to true
if {login.regya.%player%} is true:
message "{@logo}&7 Logeate&f /login <contraseña>"
loop 1 times:
wait 5 seconds
message "&8[&7----------{@logo}&7----------&8]"
message "{@logo}&7 Logeate&f /login <contraseña>"
if {login.now.%player%} isn't set:
exit loop
else:
message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
loop 20 times:
wait 5 seconds
message "&8[&7----------{@logo}&7----------&8]"
message "{@logo}&7 registrate&f /registrar <contraseña> <repitela>"
if {login.now.%player%} isn't set:
exit loop
#
on any move:
if {login.now.%player%} is true:
teleport the player to {lobby.lobby}
on chat:
if {login.now.%player%} is true:
cancel event
on command:
if "%command%" contains "login":
stop
if "%command%" contains "register":
stop
if "%command%" contains "reg":
stop
if "%command%" contains "log":
stop
if {login.now.%player%} is true:
cancel event
command /unregister <text>:
permission: admin
permission message: {@logo}No eres admin
trigger:
delete {login.contra.%arg-1%}
delete {login.regya.%arg-1%}
send "{@logo} %arg-1% unregistrado"
I does not like on any move I use that too on my commands like spawn home and if you move the mause a little cancel because on any move how can i fix that?It seems like it may be the on any movement event. do you still get the same error of you take that bit out? (there are other less laggy ways to do the same thing if it is the problem)
Another way to do it would be to when they join, if they havn't logged in per your skript, summon an invisible armorstand and make them ride it. once they complete their sign in just remove the armor stand in their radius.I does not like on any move I use that too on my commands like spawn home and if you move the mause a little cancel because on any move how can i fix that?
I does not know how summon a armor stand And less invisible And less make The player ride The armor standAnother way to do it would be to when they join, if they havn't logged in per your skript, summon an invisible armorstand and make them ride it. once they complete their sign in just remove the armor stand in their radius.
Yeah, my server really hates the on move event tooXD it freaks out every time
Can you help me with this ? https://forums.skunity.com/threads/how-i-create-files-for-a-island-level-scores.4903/Another way to do it would be to when they join, if they havn't logged in per your skript, summon an invisible armorstand and make them ride it. once they complete their sign in just remove the armor stand in their radius.
Yeah, my server really hates the on move event tooXD it freaks out every time
The files unfortunately I have no experience with:c. However for the armor stand use this. You'll have to incorporate it into your code, but I set it up as a command so I could test it on my server. to remove it after simply look up the effect/expression to remove an entity within a radius of a player~I does not know how summon a armor stand And less invisible And less make The player ride The armor stand
[doublepost=1502309196,1502309120][/doublepost]
Can you help me with this ? https://forums.skunity.com/threads/how-i-create-files-for-a-island-level-scores.4903/
command /test:
trigger:
spawn armor stand at player
add "{Invisible:1b,DisabledSlots:2039583}" to nbt of last spawned armor stand
make player ride last spawned armor stand
on join:
wait 0.5 second
set {_t} to true
while {_t} is true:
if player is online:
if {var} is not true:
# do stuff
teleport player to {location var}
else:
set {_t} to false
else:
set {_t} to false
wait 0.3 second
Thanks ver y helpfulTry something like this. Never use "on any move" or "every # seconds" when while loop is the best option here. This code is to give you an idea of how you can do something you have trouble with.
code_language.skript:on join: wait 0.5 second set {_t} to true while {_t} is true: if player is online: if {var} is not true: # do stuff teleport player to {location var} else: set {_t} to false else: set {_t} to false wait 0.3 second