Aller au contenu
  • 0

Question pour message dans le chat.


Question

Posté(e)

Version de Minecraft : 1.12.2
Version de Skript : 31c

Addons utilisés: skUtilities.v0.9.2,skRayFall+v1.9.12,SkQuery-4.1.2,Skellett-Legacy

Type du skript : Aide pour message dans le chat

Description du script :

Bonjour j'ai une question est il possible de marquer un message dans le chat, en gros j'ai fait un gui pour acheter c'est grades avec l'économie du jue qui marche tres bien et je me demande si il est possible de pouvoir marque un message dans le chat des que quelqu'un achète un grade avec son nom dans le chat ,Jor un truc comme ça "Bravo a %player% d'avoir acheter le grade citoyen ." Merci pour vos réponses d'avances  .(est il possible de jouer un son que seul la personne qui achète le grade entend jor un villageois qui level-up ? .

10 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Yep, il te suffit de te servir de ceci :

broadcast "Bravo à %player% d'avoir acheter le grade citoyen."

Et de ceci pour jouer un son :

play sound "entity.experience_orb.pickup" with volume 0.5 to player

 

  • 0
Posté(e) (modifié)

merci beaucoup Lou' et j'ai une dernière question eu je n'arrive pas a faire de description sur un objet , je crois que c'est with lore " " mais le problème est que cela me le marque comme une erreur il faut un addon ? J'ai aussi un problème avec le son faut il un addon ? merci

Modifié par RazMaker
  • 0
Posté(e)

Tu peux procéder comme ceci :

# Tu définis ton objet
set {_item} to stick named "Bâton"
# Tu crées le lore (tu peux mettre autant de lignes que tu veux)
set lore of {_item} to "Première ligne", "Deuxième ligne" and  "Troisième ligne"
# Tu mets la variable contenant ton objet et ta description dans ton menu
make gui slot 13 of player with {_item} to do nothing

N'hésite pas à passer ton sujet en résolu si tu n'as plus de questions 😉

  • 0
Posté(e)

Merci pour ta réponse mais si je veut le mètre dans un gui comment je fait voici la ligne dans laquelle j'aimerais le mètre. 

format slot 10 of player with glowing 299 named "&f &c&lCitoyen" to run [make player execute command "/buycitoyen1"]

et as du coup pour le son comme je fait il faut un addon ?Merci pour ton aide

  • 0
Posté(e)

Je te le fais mais on ne va pas tout te faire à l'avenir, il faut être un minimum dégourdi et je t'ai donné toutes les informations nécessaires :

set {_item} to glowing 299 named "&f &c&lCitoyen"
set lore of {_item} to "Première ligne", "Deuxième ligne" and  "Troisième ligne"
format slot 10 of player with {_item} to run [make player execute command "/buycitoyen1"]

Je te déconseille vivement d'utiliser les ids numériques (299) mais d'utiliser les ids directement avec le nom (leather chestplate).
Sinon non, pas besoin d'addon pour le son, c'est directement Skript qui s'en occupe.

  • 0
Posté(e)

Désolé mais je ne comprend pas pourquoi cela ne marche pas pour le lore et aussi pourquoi cela ne marche pas pour le son ,voici le code .

Merci pour ta réponse et je ne te demande pas de me donner les réponse mais juste de m'expliquer et je commence le skrip je demande juste de l'aide .

command /Grades:
	trigger:
		open chest with 4 rows named "&4Grades" to player
		wait 1 ticks
		format slot 0 of player with gray stained glass pane named " " to be unstealable
		format slot 1 of player with gray stained glass pane named " " to be unstealable
		format slot 7 of player with gray stained glass pane named " " to be unstealable
		format slot 8 of player with gray stained glass pane named " " to be unstealable
		format slot 9 of player with gray stained glass pane named " " to be unstealable
		format slot 17 of player with gray stained glass pane named " " to be unstealable
		format slot 18 of player with gray stained glass pane named " " to be unstealable
		format slot 26 of player with gray stained glass pane named " " to be unstealable
		format slot 27 of player with gray stained glass pane named " " to be unstealable
		format slot 28 of player with gray stained glass pane named " " to be unstealable
		format slot 34 of player with gray stained glass pane named " " to be unstealable
		format slot 35 of player with gray stained glass pane named " " to be unstealable
		format slot 2 of player with yellow stained glass pane named " " to be unstealable
		format slot 3 of player with yellow stained glass pane named " " to be unstealable
		format slot 5 of player with yellow stained glass pane named " " to be unstealable
		format slot 6 of player with yellow stained glass pane named " " to be unstealable
		format slot 11 of player with yellow stained glass pane named " " to be unstealable
		format slot 13 of player with yellow stained glass pane named " " to be unstealable
		format slot 15 of player with yellow stained glass pane named " " to be unstealable
		format slot 20 of player with yellow stained glass pane named " " to be unstealable
		format slot 22 of player with yellow stained glass pane named " " to be unstealable
		format slot 24 of player with yellow stained glass pane named " " to be unstealable
		format slot 29 of player with yellow stained glass pane named " " to be unstealable
		format slot 30 of player with yellow stained glass pane named " " to be unstealable
		format slot 32 of player with yellow stained glass pane named " " to be unstealable
		format slot 33 of player with yellow stained glass pane named " " to be unstealable
		format slot 19 of player with 266 named "&eCoute 10 000Euros " to be unstealable
		format slot 21 of player with 266 named "&eCoute 10 000Euros " to be unstealable
		format slot 23 of player with 266 named "&eCoute 10 000Euros " to be unstealable
		format slot 25 of player with 266 named "&eCoute 10 000Euros " to be unstealable
        set 307 to glowing 299 named "&f &c&lCitoyen"
        set lore of 307 to "Première ligne", "Deuxième ligne" and  "Troisième ligne"
        format slot 10 of player with 307 to run [make player execute command "/buycitoyen1"]
		format slot 12 of player with glowing 307 named "&f &c&lCitoyen" to be unstealable
		format slot 14 of player with glowing 315 named "&f &c&lCitoyen" to be unstealable
		format slot 16 of player with glowing 311 named "&f &c&lCitoyen" to be unstealable
		format slot 4 of player with glowing 389 named "&c&lGrades Info" to be unstealable
		format slot 31 of player with glowing barrier named "&f>> &c&lFermer le menu" to close

command /buycitoyen1:
	trigger:
		if player's balance is bigger than 1.999:
			make server execute command "lp user %player% parent add citoyen"
			broadcast "&aBravo à %player% d'avoir acheter le grade citoyen."
			play sound "entity.experience_orb.pickup" with volume 0.5 to player
		else:
			send "&4Tu n'as pas assez d'argent"

 

  • 0
Posté(e)

Regarde ce que tu as fait :

        set 307 to glowing 299 named "&f &c&lCitoyen"
        set lore of 307 to "Première ligne", "Deuxième ligne" and  "Troisième ligne"
        format slot 10 of player with 307 to run [make player execute command "/buycitoyen1"]

Tu as mis 307, alors que c'est une variable qu'il faut mettre pas un nombre. Regarde mes messages précédents si tu ne comprends pas.

Pour le son essaie ceci :

play sound "entity.experience_orb.pickup" to player
  • 0
Posté(e) (modifié)

Merci cela fonctionne bien mais j'ai toujours un problème avec le son qui ne se joue pas merci beaucoup pour ton aide .

Voici le code qui marche ;

command /Grades:
	trigger:
		open chest with 4 rows named "&4Grades" to player
		wait 1 ticks
		format slot 0 of player with gray stained glass pane named " " to be unstealable
		format slot 1 of player with gray stained glass pane named " " to be unstealable
		format slot 7 of player with gray stained glass pane named " " to be unstealable
		format slot 8 of player with gray stained glass pane named " " to be unstealable
		format slot 9 of player with gray stained glass pane named " " to be unstealable
		format slot 17 of player with gray stained glass pane named " " to be unstealable
		format slot 18 of player with gray stained glass pane named " " to be unstealable
		format slot 26 of player with gray stained glass pane named " " to be unstealable
		format slot 27 of player with gray stained glass pane named " " to be unstealable
		format slot 28 of player with gray stained glass pane named " " to be unstealable
		format slot 34 of player with gray stained glass pane named " " to be unstealable
		format slot 35 of player with gray stained glass pane named " " to be unstealable
		format slot 2 of player with yellow stained glass pane named " " to be unstealable
		format slot 3 of player with yellow stained glass pane named " " to be unstealable
		format slot 5 of player with yellow stained glass pane named " " to be unstealable
		format slot 6 of player with yellow stained glass pane named " " to be unstealable
		format slot 11 of player with yellow stained glass pane named " " to be unstealable
		format slot 13 of player with yellow stained glass pane named " " to be unstealable
		format slot 15 of player with yellow stained glass pane named " " to be unstealable
		format slot 20 of player with yellow stained glass pane named " " to be unstealable
		format slot 22 of player with yellow stained glass pane named " " to be unstealable
		format slot 24 of player with yellow stained glass pane named " " to be unstealable
		format slot 29 of player with yellow stained glass pane named " " to be unstealable
		format slot 30 of player with yellow stained glass pane named " " to be unstealable
		format slot 32 of player with yellow stained glass pane named " " to be unstealable
		format slot 32 of player with yellow stained glass pane named " " to be unstealable
		format slot 33 of player with yellow stained glass pane named " " to be unstealable
		format slot 19 of player with gold ingot named "&eCoute 10 000Euros " to be unstealable
		format slot 21 of player with gold ingot named "&eCoute 10 000Euros " to be unstealable
		format slot 23 of player with gold ingot named "&eCoute 10 000Euros " to be unstealable
		format slot 25 of player with gold ingot named "&eCoute 10 000Euros " to be unstealable
		set {_item} to glowing leather tunic named "&f &c&lCitoyen"
		set lore of {_item} to "Première ligne"
		format slot 10 of player with {_item} to run [make player execute command "/buycitoyen1"]
		format slot 12 of player with glowing iron chestplate named "&f &c&lCitoyen" to be unstealable
		format slot 14 of player with glowing golden chestplate named "&f &c&lCitoyen" to be unstealable
		format slot 16 of player with glowing diamond chestplate named "&f &c&lCitoyen" to be unstealable
		format slot 4 of player with glowing item frame named "&c&lGrades Info" to be unstealable
		format slot 31 of player with glowing barrier named "&f>> &c&lFermer le menu" to close
		
command /buycitoyen1:
	trigger:
		if player's balance is bigger than 1.999:
			make server execute command "lp user %player% parent add citoyen"
			broadcast "&aBravo à %player% d'avoir acheter le grade citoyen."
		else:
			send "&4Tu n'as pas assez d'argent"

 

Modifié par RazMaker
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.