Aller au contenu
  • 0

Amure en chaine avec effect


Question

Posté(e)

on equip:
if helmet of attacker is chain helmet:
	if chestplate of attacker is chain chestplate:
		if leggings of attacker is chain leggings:
			if boots of attacker is chain boots:
				wait 1 seconds
				apply potion of resistance 3 to the attacker for 999 seconds
				apply potion of strength 2 to the attacker for 999 seconds
				apply potion of speed 3 to the attacker for 999 seconds

Bonjour, j'ai vraiment besoin d'aide est au plus vite

 

demande/aide:

- quand on porte une armure en chaine sa donne des effect particulier (resistance 1,force 1,speed 2,night vision, a l'infini) est que sa donne 2 bar de vie donc 20 demi coeur; quand on l'enleve ou quon la casse sa nous enleve les effect

 

je suis en 1.7.10

 

Merci si vous avez lu est si vous penser m'aider :)

23 réponses à cette question

Messages recommandés

  • 0
Posté(e)

CA???

on equip:
   if helmet of player is chain helmet:
       if chestplate of player is chain chestplate:
           if leggings of player is chain leggings:
               if boots of player is chain boots:
                   wait 1 seconds
                   apply potion of resistance 3 to the player for 999 seconds
                   apply potion of strength 2 to the player for 999 seconds
                   apply potion of speed 3 to the player for 999 seconds

  • 0
Posté(e)
tu n'aurai pas un exemple stp ?

every 2 second in world "World":
   loop all players:
       if helmet of loop-player is chain helmet:
           if chestplate of loop-player is chain chestplate:
               if leggings of loop-player is chain leggings:
                   if boots of loop-player is chain boots:
                       wait 1 seconds
                       apply potion of resistance 3 to the loop-player for 999 seconds
                       apply potion of strength 2 to the loop-player for 999 seconds
                       apply potion of speed 3 to the loop-player for 999 seconds

  • 0
Posté(e)
Alors, rajoute "clear all effects from the player" avant le wait 1 second

Tu vas juste clear les effets avant de mettre les nouveaux la ..

Merci mec , mais si je l'enleve j'ai encore les effect

Fait ça :

every 2 second in world "World":
loop all players:
	if helmet of loop-player is chain helmet:
		if chestplate of loop-player is chain chestplate:
			if leggings of loop-player is chain leggings:
				if boots of loop-player is chain boots:
					wait 1 seconds
					apply potion of resistance 3 to the loop-player for 999 seconds
					apply potion of strength 2 to the loop-player for 999 seconds
					apply potion of speed 3 to the loop-player for 999 seconds
				else:
					make console execute command "/effect %loop-player% clear"
			else:
				make console execute command "/effect %loop-player% clear"
		else:
			make console execute command "/effect %loop-player% clear"
	else:
		make console execute command "/effect %loop-player% clear"

  • 0
Posté(e)
sa enleve a tout les joueur tout les effect en gros meme si le joueur n'a pas d'armure en maille be sa lui clear quand meme

Fixé

variables:
{booster.stuff.mail.%player%} = false

every 2 second in world "World":
loop all players:
	if helmet of loop-player is chain helmet:
		if chestplate of loop-player is chain chestplate:
			if leggings of loop-player is chain leggings:
				if boots of loop-player is chain boots:
					wait 1 seconds
					set {booster.stuff.mail.%loop-player%} to true
					apply potion of resistance 3 to the loop-player for 999 seconds
					apply potion of strength 2 to the loop-player for 999 seconds
					apply potion of speed 3 to the loop-player for 999 seconds
				else:
					if {booster.stuff.mail.%loop-player%} is true:
						make console execute command "/effect %loop-player% clear"
						set {booster.stuff.mail.%loop-player%} to false
			else:
				if {booster.stuff.mail.%loop-player%} is true:
					make console execute command "/effect %loop-player% clear"
					set {booster.stuff.mail.%loop-player%} to false
		else:
			if {booster.stuff.mail.%loop-player%} is true:
				make console execute command "/effect %loop-player% clear"
				set {booster.stuff.mail.%loop-player%} to false
	else:
		if {booster.stuff.mail.%loop-player%} is true:
			make console execute command "/effect %loop-player% clear"
			set {booster.stuff.mail.%loop-player%} to false

  • 0
Posté(e)

variables:
   {booster.stuff.mail.%player%} = false

every 2 second in world "World":
   loop all players:
       if helmet of loop-player is chain helmet:
           if chestplate of loop-player is chain chestplate:
               if leggings of loop-player is chain leggings:
                   if boots of loop-player is chain boots:
                       wait 1 seconds
                       set {booster.stuff.mail.%loop-player%} to true
                       apply potion of resistance 3 to the loop-player for 999 seconds
                       apply potion of strength 2 to the loop-player for 999 seconds
                       apply potion of speed 3 to the loop-player for 999 seconds
                       stop
       if {booster.stuff.mail.%loop-player%} is true:
           make console execute command "/effect %loop-player% clear"
           set {booster.stuff.mail.%loop-player%} to false

 

C'est plus optimisé comme ça

  • 0
Posté(e)

Avec ce titre , je ne me donne même pas la peine de t'aidez , ont doit aidez tout le monde aux même temp , et détail nous ce titre pour mieux t'aidez la prochaine fois.

×
×
  • 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.