Aller au contenu

Messages recommandés

Posté(e) (modifié)

Bonjour, bonsoir, Je tien a m'excuser de peut-être vous déranger, 

Version Skript / Minecraft : 2.1.2 / 1.8.8

Mais voilà mon problème :

J'aimerais faire en sorte que quand nous appuyons sur un item se trouvent dans un gui, ici nous parlerons de la "Capacité de vol" (fly), le lore étant mis en Désactivé soit mis en Activé Dès que le clique est fait.
 

Et inversement


Voici mes code pour vous donné comment mon gui et mon fly sont fait :

Fly :

command /fly:
	usage: /fly
	executable by: players
	trigger:
		if {grade.%uuid of player%} is "&4&l⇛ Admin ⇚&f", "&6⇏ Responsable ⇍", "&b⇉ Super Modérateur ⇇", "&aBuilder", "&c ▸ YouT&fuber ◂&f", "&5MégaVIP" or "&f[&6❤&f]":
			if {fly.%player%} is "&c&lDésactivé":
				send "&6&lCapacité de vol &f: &a&lActivé" to player
				set player's flight mode to true
				set {fly.%player%} to "&a&lActivé"
				stop
			else:
				send "&6&lCapacité de vol &f: &c&lDésactivé." to player
				set player's flight mode to false
				set {fly.%player%} to "&c&lDésactivé"
				stop
				
		else:
			send "&cMédiévaltown ➢ &fTu n'a pas l'accès a cette commande !" to player 

 

Gui

command /profil [<offline player>]:
	trigger:
		if arg 1 is set:
			open chest with 6 row named "&f&l>> &6&lProfil" to player
			wait 3 ticks
			format slot 31 of player with arg 1's skull named "&eProfil &f| &7Informations du compte" with lore " &8-------------------------------- || || &3â–  &7Infomations &8>> ||  &e| &7Compte &f: &7%arg 1% ||  &e| &7Grade &f: &f%{grade.%uuid of arg 1%}% ||  &e| &7Date d'inscription &f>> &e%{inscription.%uuid of arg 1%}% || || &3â– &7Economie &8>> ||  &e| &4Rubis &f: &e%{rubi.%uuid of arg 1%}% ||  &e| &aCoins &f: &e%{coins.%uuid of arg 1%}% ||  &e| &bEXP. Libre &f: &e%{exp.%uuid of arg 1%}%" to be unstealable
			format slot 41 of player with feather named "&f&l>> &6&lCapacite de vol" with lore " ||&b■  &7Permet de fly dans le lobby. || &f|  &7Statut du fly &f>> %{fly.%arg 1%}% || &b* &7Réservé aux &6[MégaVIP] &7et plus. " to run [make player execute command "fly"]
			format slot 20 of player with redstone comparator item named "&3&lParametres &f| &7Menu" to be unstealable
			format slot 39 of player with iron chestplate item named "&d&lArmure Magique &f| &cx Indisponible x" with lore " &8-----------------------------|| ||&bâ–  &7Statut &8>> || &f| Necessite &f: &f[&cYouTu&fbeur] &8(ou plus)" to be unstealable

		else:
			open chest with 6 row named "&f&l>> &6&lProfil" to player
			wait 3 ticks
			format slot 31 of player with player's skull named "&eProfil &f| &7Informations du compte" with lore " &8-------------------------------- || || &3â–  &7Infomations &8>> ||  &e| &7Compte &f: &7%player% ||  &e| &7Grade &f: &f%{grade.%uuid of player%}% ||  &e| &7Date d'inscription &f>> &e%{inscription.%uuid of player%}% || || &3â– &7Economie &8>> ||  &e| &4Rubis &f: &e%{rubi.%uuid of player%}% ||  &e| &aCoins &f: &e%{coins.%uuid of player%}% ||  &e| &bEXP. Libre &f: &e%{exp.%uuid of player%}%" to be unstealable
			format slot 41 of player with feather named "&f&l>> &6&lCapacite de vol" with lore " ||&b■  &7Permet de fly dans le lobby. || &f|  &7Réservé aux &6[MégaVIP] &7et plus. || &b* &7Statut du fly &f>> %{fly.%player%}%" to run [make player execute command "fly"]
			format slot 20 of player with redstone comparator item named "&3&lParametres &f| &7Menu" to be unstealable
			format slot 39 of player with iron chestplate item named "&d&lArmure Magique &f| &cx Indisponible x" with lore " &8-----------------------------|| ||&bâ–  &7Statut &8>> || &f| Necessite &f: &f[&cYouTu&fbeur] &8(ou plus)" to be unstealable

on first join:
	set {inscription.%uuid of player%} to "%now%"
	
on join:
	if {inscription.%uuid of player%} is not set:
		set {inscription.%uuid of player%} to "%now%"
	if {rubi.%uuid of player%} is not set:
		set {rubi.%uuid of player%} to 0
	if {coins.%uuid of player%} is not set:
		set {coins.%uuid of player%} to 0
	if {exp.%uuid of player%} is not set:
		set {exp.%uuid of player%} to 0 
	
command /money-give [<text>] [<text>] [<offline player>]:
	permission: money.give.admin
	permission message: &cMédiévaltown : &cTu n'a pas l'accès a cette commande !
	trigger:
		if arg 1 is "rubi":
			if arg 2 is set:
				if arg 3 is set:
					set {rubi.%uuid of arg 3%} to arg 2
					send "&6Tu vient d'ajouté %arg 2% rubis a %arg 3%"
		else if arg 1 is "coins":
			if arg 2 is set:
				if arg 3 is set:
					set {coins.%uuid of arg 3%} to arg 2
					send "&6Tu vient d'ajouté %arg 2% coins a %arg 3%"
		else if arg 1 is "exp":
			if arg 2 is set:
				if arg 3 is set:
					set {exp.%uuid of arg 3%} to arg 2
					send "&6Tu vient d'ajouté %arg 2% Exp a %arg 3%"
		else:
			send "&cUtilisation correct >>&6 /money-give [rubi/coins/exp] [montant] [Personne] "

Je tiens a vous remercier d'avance de votre aide.

2019-01-26_06.41.17.png

2019-01-26_06.41.22.png

Modifié par MathisGames94
  • 2 semaines après...
Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.