Ir para conteúdo

Skript contagem regressiva!


zKing

Posts Recomendados

Eae novinhos :3 !!

Hoje eu estou precisando de ajuda para terminar um skript que estou fazendo!

Bom.. sendo claro, eu quero uma contagem regressiva na barra de exp do player ! eu fiz um mas esta muito grande e possivelmente cause lag em uma grande quantidade de players!

Modelo: Namoral isso chega a ser feio! tem algum comando que ja faça este tipo de ação e que possua algum condição ele termine?  

 

Sendo um sk de login.. quando o player poe a senha correta"  {_Registrando} " fica falso e a contagem some! ( esta funcionando.. mas vcs ja sabem)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

on join:

         if {_Registrando} is "true":
            wait 1 second
            set the player's level to 60 
            if level of player is greater than or equal to 1:                
                set the player's level to 60
                wait 2 second
                if {_Registrando} is "true":
                    set the player's level to 58
                    wait 2 second
                    if {_Registrando} is "true":
                        set the player's level to 56
                        wait 2 second
                        if {_Registrando} is "true":
                            set the player's level to 54
                            wait 2 second
                            if {_Registrando} is "true":
                                set the player's level to 52 
                                wait 2 second
                                if {_Registrando} is "true":
                                    set the player's level to 50
                                    wait 2 second
                                    if {_Registrando} is "true":
                                        set the player's level to 48
                                        wait 2 second
                                        if {_Registrando} is "true":
                                            set the player's level to 46
                                            wait 2 second
                                            if {_Registrando} is "true":
                                                set the player's level to 44
                                                wait 2 second
                                                if {_Registrando} is "true":
                                                    set the player's level to 42 
                                                    wait 2 second
                                                    if {_Registrando} is "true":
                                                        set the player's level to 40
                                                        wait 2 second
                                                        if {_Registrando} is "true":
                                                            set the player's level to 38
                                                            wait 2 second
                                                            if {_Registrando} is "true":
                                                                set the player's level to 36
                                                                wait 2 second
                                                                if {_Registrando} is "true":
                                                                    set the player's level to 34
                                                                    wait 2 second
                                                                    if {_Registrando} is "true":
                                                                        set the player's level to 32 
                                                                        wait 2 second
                                                                        if {_Registrando} is "true":
                                                                            set the player's level to 30
                                                                            wait 2 second
                                                                            if {_Registrando} is "true":
                                                                                set the player's level to 28
                                                                                wait 2 second
                                                                                if {_Registrando} is "true":
                                                                                    set the player's level to 26
                                                                                    wait 2 second
                                                                                    if {_Registrando} is "true":
                                                                                        set the player's level to 24
                                                                                        wait 2 second
                                                                                        if {_Registrando} is "true":
                                                                                            set the player's level to 22 
                                                                                            wait 2 second
                                                                                            if {_Registrando} is "true":
                                                                                                set the player's level to 20
                                                                                                wait 2 second
                                                                                                if {_Registrando} is "true":
                                                                                                    set the player's level to 18
                                                                                                    wait 2 second
                                                                                                    if {_Registrando} is "true":
                                                                                                        set the player's level to 16
                                                                                                        wait 2 second
                                                                                                        if {_Registrando} is "true":
                                                                                                            set the player's level to 14
                                                                                                            wait 2 second
                                                                                                            if {_Registrando} is "true":
                                                                                                                set the player's level to 12 
                                                                                                                wait 2 second
                                                                                                                if {_Registrando} is "true":
                                                                                                                    set the player's level to 10                    
                                                                                                                    wait 1 second
                                                                                                                    if {_Registrando} is "true":
                                                                                                                        set the player's level to 9
                                                                                                                        wait 1 second
                                                                                                                        if {_Registrando} is "true":
                                                                                                                            set the player's level to 8
                                                                                                                            wait 1 second
                                                                                                                            if {_Registrando} is "true":
                                                                                                                                set the player's level to 7
                                                                                                                                wait 1 second
                                                                                                                                if {_Registrando} is "true":
                                                                                                                                    set the player's level to 6 
                                                                                                                                    wait 1 second
                                                                                                                                    if {_Registrando} is "true":
                                                                                                                                        set the player's level to 5
                                                                                                                                        wait 1 second
                                                                                                                                        if {_Registrando} is "true":
                                                                                                                                            set the player's level to 4
                                                                                                                                            wait 1 second
                                                                                                                                            if {_Registrando} is "true":
                                                                                                                                                set the player's level to 3
                                                                                                                                                wait 1 second
                                                                                                                                                if {_Registrando} is "true":
                                                                                                                                                    set the player's level to 2
                                                                                                                                                    wait 1 second
                                                                                                                                                    if {_Registrando} is "true":
                                                                                                                                                        set the player's level to 1 
                                                                                                                                                        wait 1 second
                                                                                                                                                        if {_Registrando} is "true":
                                                                                                                                                            set the player's level to 0
                                                                                                                                                        else:
                                                                                                                                                            set the player's level to 0    
                                                                                                                                                    else:
                                                                                                                                                        set the player's level to 0                                                                                   
                                                                                                                                                else:
                                                                                                                                                    set the player's level to 0
                                                                                                                                            else:
                                                                                                                                                set the player's level to 0
                                                                                                                                        else:
                                                                                                                                            set the player's level to 0
                                                                                                                                    else:
                                                                                                                                        set the player's level to 0
                                                                                                                                else:
                                                                                                                                    set the player's level to 0
                                                                                                                            else:
                                                                                                                                set the player's level to 0
                                                                                                                        else:
                                                                                                                            set the player's level to 0
                                                                                                                    else:
                                                                                                                        set the player's level to 0
                                                                                                                else:
                                                                                                                    set the player's level to 0
                                                                                                            else:
                                                                                                                set the player's level to 0
                                                                                                        else:
                                                                                                            set the player's level to 0
                                                                                                    else:
                                                                                                        set the player's level to 0
                                                                                                else:
                                                                                                    set the player's level to 0
                                                                                            else:
                                                                                                set the player's level to 0
                                                                                        else:
                                                                                            set the player's level to 0
                                                                                    else:
                                                                                        set the player's level to 0
                                                                                else:
                                                                                    set the player's level to 0
                                                                            else:
                                                                                set the player's level to 0
                                                                        else:
                                                                            set the player's level to 0
                                                                    else:
                                                                        set the player's level to 0
                                                                else:
                                                                    set the player's level to 0
                                                            else:
                                                                set the player's level to 0
                                                        else:
                                                            set the player's level to 0
                                                    else:
                                                        set the player's level to 0
                                                else:
                                                    set the player's level to 0
                                            else:
                                                set the player's level to 0
                                        else:
                                            set the player's level to 0
                                    else:
                                        set the player's level to 0
                                else:
                                    set the player's level to 0
                            else:
                                set the player's level to 0
                        else:
                            set the player's level to 0
                    else:
                        set the player's level to 0
                else:
                    set the player's level to 0
            else:
                set the player's level to 0 
        else:
            set the player's level to 0

2019-01-31_21.11.18.png

Link para o comentário
Compartilhar em outros sites

on join:
    set the player's level to 60 
    set {_n} to 60
    while {_Registrando.%player%} is true:
        set the player's level to {_n}
	remove 1 from {_n}
        wait 1 second

ta ai quando o jogador se registrar tu tem que marcar a variavel para false

no caso {_Registrado.%player%} to false

e quando ele sair setar para true

acho que é isso

pra mais ajuda ou se der erros

https://discord.gg/zDpV2y3

entra ae que eu te ajudo

Editado por SrBlecaute
Link para o comentário
Compartilhar em outros sites

1 hora atrás, SrBlecaute disse:

on join:
    set the player's level to 60 
    set {_n} to 60
    white {_Registrando.%player%} is true:
        set the player's level to {_n}
	remove 1 from {_n}
        wait 1 second

ta ai quando o jogador se registrar tu tem que marcar a variavel para false

no caso {_Registrado.%player%} to false

e quando ele sair setar para true

acho que é isso

pra mais ajuda ou se der erros

https://discord.gg/zDpV2y3

entra ae que eu te ajudo

preciso de alguma plataforma... skQuery algo do tipo? pq o "white" esta dando erro de condição

 

 

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...