Aller au contenu
  • 0

Every Secondes


Question

Posté(e)

Yop j'ai fait un petit Skript, 

every 3 seconds:
	if player is in world "Pala":
		if {arrow.%player%} is true:
			give arrow to player
			play raw sound "note.pling" at player with pitch 1 volume 

Sauf que le every seconds n'est pas pour un Joueur.

 

Donc faudrait 

loop-player

Sauf que ça fait vraiment longtemps que j'ai pas fait ça x)

 

Spigot:  1.8.8 - ViaVersion

11 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonjour,

 

every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				give arrow to loop-player
				play raw sound "note.pling" at loop-player with pitch 1 volume 

 

Et voici!

 

Tien moi au courant ^^

  • 0
Posté(e)
il y a 19 minutes, Mathitux a dit :

Bonjour,

 


every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				give arrow to loop-player
				play raw sound "note.pling" at loop-player with pitch 1 volume 

 

Et voici!

 

Tien moi au courant ^^

Ça fonctionne nickel, a part le son mais pas grave xD

Juste moyen de pas give la flèche si il a déjà une flèche dans son inventaire ?

  • 0
Posté(e)
every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				if loop-player's inventory contains 1 arrow:
					stop
				else:
					give 1 arrow to loop-player
					play raw sound "note.pling" to loop-player with pitch 1 volume 

Try this

  • J'aime 1
  • 0
Posté(e)
il y a 51 minutes, Mathitux a dit :

every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				if loop-player's inventory contains 1 arrow:
					stop
				else:
					give 1 arrow to loop-player
					play raw sound "note.pling" to loop-player with pitch 1 volume 

Try this

Quel gentillesse xD
Je test ça

  • 0
Posté(e)
il y a 53 minutes, Mathitux a dit :

every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				if loop-player's inventory contains 1 arrow:
					stop
				else:
					give 1 arrow to loop-player
					play raw sound "note.pling" to loop-player with pitch 1 volume 

Try this

Ça ne fonctionne pas, ça ne give pas la flèche.

  • 0
Posté(e)
every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				if loop-player's inventory contains 1 arrow:
					stop
				else:
					give 1 arrow to loop-player
					play "note.pling" to loop-player at volume 1

ça devrais corriger l'erreur,

 

mais si y'a pas d'autres erreurs je comprend pas...

  • 0
Posté(e)
il y a 40 minutes, Mathitux a dit :

every 3 seconds:
	loop all players:
		if loop-player is in world "Pala":
			if {arrow.%loop-player%} is true:
				if loop-player's inventory contains 1 arrow:
					stop
				else:
					give 1 arrow to loop-player
					play "note.pling" to loop-player at volume 1

ça devrais corriger l'erreur,

 

mais si y'a pas d'autres erreurs je comprend pas...

There's no loop that matches 'loop-player at 1 volume'

 

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.