Ir para conteúdo

[DUP] Usando o Gui do Skript.


quando eu tinha uma uzi

Posts Recomendados

Olá gangsters, bem, não sei se muitos já sabiam disso, mas eu fui descobrir agora e vim relatar para vocês.

 

Eu usava meus sistemas em gui simples em Skript, ele tinha 1 segundo de delay para abrir (para previnir algumas coisinhas), um usuário veio e me reportou um "dup" que é executado da seguinte forma:

 

Você digitava 2x rapidamente o comando e abria o gui 2x, na segunda vez que ele fosse aberto tinha como recolher os itens. Então retirei o delay, coloquei nenhum, mas da mesma forma o bug é ocorrido.

 

Gif Abaixo (Se observarem bem, aparece "Aguarde..." 2x ali em baixo, é quando eu digito rápido:

 

https://i.imgur.com/39r0tli.gifv

 

Plugins para substituir? Quais recomendam? (Que execute comandos, nome, lore, slots, linhas).

Link para o comentário
Compartilhar em outros sites

 

Poderia mandar o código do skript para ser analisado, verificar se possui algum erro?

 

command /warp:
	aliases: /warps
	trigger:
		send "&6* Aguarde..."
		open chest with 6 rows named "                &4&lWARPS               " to the player
		format slot 0 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 1 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 2 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 3 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 4 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 5 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 6 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 7 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 8 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 9 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 17 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""		
		format slot 18 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 26 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 27 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 35 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 36 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 44 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 45 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 46 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 47 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 48 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 49 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 50 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 51 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 52 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 53 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 10 of player with diamond pickaxe named "&e➤ &9&oMina" with lore "&e➥ Clique para ir." to close then run [make player execute command "/minas"]
		format slot 16 of player with ladder named "&e➤ &9&oParkour" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir parkour"]
		format slot 21 of player with dropper named "&e➤ &9&oDrop" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir drop"]
		format slot 13 of player with brick block named "&e➤ &9&oCidade" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir cidade"]
		format slot 23 of player with enchantment table named "&e➤ &9&oSala de Encantamentos" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir encantar"]
		format slot 28 of player with iron ore named "&e➤ &9&oMinaPvP" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir minapvp"]
		format slot 34 of player with hay block named "&e➤ &9&oFazenda" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir fazenda"]
		format slot 31 of player with diamond sword named "&e➤ &9&oArenas" with lore "&e➥ Clique para ir." to close then run [make player execute command "/arenas"]
		stop

(Eu tinha tirado o delay nesse aí, mas mesmo assim funciona, não tem jeito).

 

 

Tu pode usar ChestCommands mas devia realmente aprender a programar em java.

Obrigado, e vou começar sim, só estou tentando ganhar um pouco de tempo para os estudos de Java.

Link para o comentário
Compartilhar em outros sites

command /warp:
	aliases: /warps
	trigger:
		send "&6* Aguarde..."
		open chest with 6 rows named "                &4&lWARPS               " to the player
		format slot 0 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 1 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 2 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 3 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 4 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 5 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 6 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 7 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 8 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 9 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 17 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""		
		format slot 18 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 26 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 27 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 35 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 36 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 44 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 45 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 46 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 47 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 48 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 49 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 50 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 51 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 52 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 53 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 10 of player with diamond pickaxe named "&e➤ &9&oMina" with lore "&e➥ Clique para ir." to close then run [make player execute command "/minas"]
		format slot 16 of player with ladder named "&e➤ &9&oParkour" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir parkour"]
		format slot 21 of player with dropper named "&e➤ &9&oDrop" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir drop"]
		format slot 13 of player with brick block named "&e➤ &9&oCidade" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir cidade"]
		format slot 23 of player with enchantment table named "&e➤ &9&oSala de Encantamentos" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir encantar"]
		format slot 28 of player with iron ore named "&e➤ &9&oMinaPvP" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir minapvp"]
		format slot 34 of player with hay block named "&e➤ &9&oFazenda" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir fazenda"]
		format slot 31 of player with diamond sword named "&e➤ &9&oArenas" with lore "&e➥ Clique para ir." to close then run [make player execute command "/arenas"]
		stop

(Eu tinha tirado o delay nesse aí, mas mesmo assim funciona, não tem jeito).

 

 

Obrigado, e vou começar sim, só estou tentando ganhar um pouco de tempo para os estudos de Java.

 

 

Coloca :

 

https://hastebin.com/dayiciveza.vbs

Link para o comentário
Compartilhar em outros sites

command /warp:
	aliases: /warps
	trigger:
		send "&6* Aguarde..."
		open chest with 6 rows named "                &4&lWARPS               " to player
		wait 2 ticks
		format slot 0 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 1 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 2 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 3 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 4 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 5 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 6 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 7 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 8 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 9 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 17 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""		
		format slot 18 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 26 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 27 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 35 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 36 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 44 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 45 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 46 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 47 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 48 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 49 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 50 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 51 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 52 of player with vine named "&cCenturies&fMC" to close then run ""
		format slot 53 of player with white stained glass pane named "&cCenturies&fMC" to close then run ""
		format slot 10 of player with diamond pickaxe named "&e➤ &9&oMina" with lore "&e➥ Clique para ir." to close then run [make player execute command "/minas"]
		format slot 16 of player with ladder named "&e➤ &9&oParkour" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir parkour"]
		format slot 21 of player with dropper named "&e➤ &9&oDrop" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir drop"]
		format slot 13 of player with bricks named "&e➤ &9&oCidade" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir cidade"]
		format slot 23 of player with enchantment table named "&e➤ &9&oSala de Encantamentos" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir encantar"]
		format slot 28 of player with iron ore named "&e➤ &9&oMinaPvP" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir minapvp"]
		format slot 34 of player with hay block named "&e➤ &9&oFazenda" with lore "&e➥ Clique para ir." to close then run [make player execute command "/ir fazenda"]
		format slot 31 of player with diamond sword named "&e➤ &9&oArenas" with lore "&e➥ Clique para ir." to close then run [make player execute command "/arenas"]
		stop
		
on inventory click:
	if inventory name of player's current inventory is "                &4&lWARPS               ":
		cancel event

Oque eu fiz, foi somente adicionar

 

on inventory click:
	if inventory name of player's current inventory is "                &4&lWARPS               ":
		cancel event

Caso aconteça o BUG, com isso ele nao ira conseguir pegar os itens

Link para o comentário
Compartilhar em outros sites

Resolveu isso aí, mas vou usar ChestCommands mesmo.. menos Skript, melhor.

 

@off

 

Você que quer aprender algo, não começa com Skript, isso é horrível. #Arrependido.

Editado por quando eu tinha uma uzi
Link para o comentário
Compartilhar em outros sites

Quem n sabe fzr da nisto...

 

usa assim:

 

 

wait 0.454 tick

open chest...
wait 0.454 tick
format slot... 

 

on inventory click:
    if invetory name of player's current inventory is "Teste":

        cancel event

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

Skript ele é quase "Ilimitado", mais possui muito bugs, por isso prefiro meus plugins e.e

Sim, verdade.

 

 ChestCommands ou DeluxeMenus são os melhores.

Esse Deluxe ai é bom?

 

Quem n sabe fzr da nisto...

 

usa assim:

 

 

wait 0.454 tick

open chest...

wait 0.454 tick

format slot... 

 

on inventory click:

    if invetory name of player's current inventory is "Teste":

        cancel event

Não é questão de não saber fazer, eu não sabia desse problema no GUI, ninguém nasce sabendo não é mesmo? Só vim alertar os novatos que saem baixando Skripts de qualquer lugar, tanto que tem Skripters grandes com o código faltando essa "gambiarra" para prevenir esse bug/dup.

Link para o comentário
Compartilhar em outros sites

Resolveu isso aí, mas vou usar ChestCommands mesmo.. menos Skript, melhor.

 

@off

 

Você que quer aprender algo, não começa com Skript, isso é horrível. #Arrependido.

Concordo kkk o servidor de P4Free que eu tinha, eu usava muito skript pois não manjava muito, ai como resultado nego derrubava direto por comando kkkkk

 

( foi o primeiro servidor ) agora estou um pouco mais experiente do que antes kkkk 

Link para o comentário
Compartilhar em outros sites

Sim, verdade.

 

Esse Deluxe ai é bom?

 

Não é questão de não saber fazer, eu não sabia desse problema no GUI, ninguém nasce sabendo não é mesmo? Só vim alertar os novatos que saem baixando Skripts de qualquer lugar, tanto que tem Skripters grandes com o código faltando essa "gambiarra" para prevenir esse bug/dup.

Eh vdd...Desculpe então qualquer coisa ^^ 

Link para o comentário
Compartilhar em outros sites

 

Bug visual

 

É não kk, tanto que eu até dropei os items.. são reais.

 

Concordo kkk o servidor de P4Free que eu tinha, eu usava muito skript pois não manjava muito, ai como resultado nego derrubava direto por comando kkkkk

 

( foi o primeiro servidor ) agora estou um pouco mais experiente do que antes kkkk 

Na versão 1.5 o Skript é horrível, eu derrubava usando macro.

Link para o comentário
Compartilhar em outros sites

Por isso a minha forma de fazer GUI de uns tempo para ca se tornou esse abaixo.

Ou usando o tuske para usar os clicks e etc.

command /teste:
	trigger:
		wait 0.5 tick
		open chest with 4 rows named "Xablau" to player
		wait 0.5 tick
		set slot 10 of player's current inventory to paper named "xD"
		stop
		
on inventory click:
	if inventory name of player's current inventory is "Xablau":
		cancel event
		if clicked slot is 10:
			player command "/ComandoXD"
			stop
		else:
			stop
	else:
		stop
Link para o comentário
Compartilhar em outros sites

É não kk, tanto que eu até dropei os items.. são reais.

 

Na versão 1.5 o Skript é horrível, eu derrubava usando macro.

SIm kkk fizeram um vídeo aqui no fórum mostrando como da pra derrubar sv que usa skript ><'

Esses kengo kkk

Link para o comentário
Compartilhar em outros sites

ARQUIVAMENTO DE CONTEÚDO

O tópico foi arquivado. A partir deste momento, não será mais possível editar ou adicionar novos comentários. Caso precise de informações adicionais, por favor, entre em contato com a equipe da comunidade.

Equipe de Moderação
Gamer's Board
Link para o comentário
Compartilhar em outros sites

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