Aller au contenu
  • 0

Encore besoin d'aide effect de potion


Question

Posté(e)

Bonjour / Bonsoir

 

 

Bon j'ai encore un problème.

 

on join:
   broadcast "&6[&cMinetoda&6]&r : Le joueur %player% à rejoint le serveur"
       if argument 1 is "humain":
           apply regeneration to the player for 99999999999 second
           apply resistance to the player for 99999999999 second
       if argument 1 is "nains":
           apply haste to the player for 99999999999 second
           apply strength to the player for 99999999999 second
       if argument 1 is "gobelins":
           apply strength to the player for 99999999999 second
           apply regeneration to the player for 99999999999 second


on respawn:
       if argument 1 is "humain":
           apply regeneration to the player for 99999999999 second
           apply resistance to the player for 99999999999 second
       if argument 1 is "nains":
           apply haste to the player for 99999999999 second
           apply strength to the player for 99999999999 second
       if argument 1 is "gobelins":
           apply strength to the player for 99999999999 second
           apply regeneration to the player for 99999999999 second

 

Le skript n'as pas d'erreur mais il applique pas les efffects

8 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Je me suis trompé de code

 

Voila le bon

 

on join:
  broadcast "&6[&cMinetoda&6]&r : Le joueur %player% à rejoint le serveur"
  if player has permission "minetoda.humain":
     apply potion of regeneration of tier 255 to the player for 99999999999 second
     apply potion of resistance of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.nains":
     apply potion of haste of tier 255 to the player for 99999999999 second
     apply potion of strength of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.gobelins":
     apply potion of strength of tier 255 to the player for 99999999999 second
     apply potion of regeneration of tier 255 to the player for 99999999999 second

on respawn:
  if player has permission "minetoda.humain":
     apply potion of regeneration of tier 255 to the player for 99999999999 second
     apply potion of resistance of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.nains":
     apply potion of haste of tier 255 to the player for 99999999999 second
     apply potion of strength of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.gobelins":
     apply potion of strength of tier 255 to the player for 99999999999 second
     apply potion of regeneration of tier 255 to the player for 99999999999 second

 

 

Oui j'ai mis les permission pour que les commande marche

  • 0
Posté(e)

alors je voie pas ce qui coince.

quand je code, ce que je fait c'est de faire afficher des message afin de voire ou commence et ou s'arette mon skript " message de débug "

 

essaye de fair afficher des message pour voire si les action attendue s'effectue

Exemple :

on join:
   broadcast "&6[&cMinetoda&6]&r : Le joueur %player% à rejoint le serveur"
   if player has permission "minetoda.humain":
       message "Le joueur a la permission minetoda.humain" # ceci permet de voire que le code es entrer dans cette condition

       ...

  • 0
Posté(e)
Je me suis trompé de code

 

Voila le bon

 

on join:
  broadcast "&6[&cMinetoda&6]&r : Le joueur %player% à rejoint le serveur"
  if player has permission "minetoda.humain":
     apply potion of regeneration of tier 255 to the player for 99999999999 second
     apply potion of resistance of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.nains":
     apply potion of haste of tier 255 to the player for 99999999999 second
     apply potion of strength of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.gobelins":
     apply potion of strength of tier 255 to the player for 99999999999 second
     apply potion of regeneration of tier 255 to the player for 99999999999 second

on respawn:
  if player has permission "minetoda.humain":
     apply potion of regeneration of tier 255 to the player for 99999999999 second
     apply potion of resistance of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.nains":
     apply potion of haste of tier 255 to the player for 99999999999 second
     apply potion of strength of tier 255 to the player for 99999999999 second
  if player has permission "minetoda.gobelins":
     apply potion of strength of tier 255 to the player for 99999999999 second
     apply potion of regeneration of tier 255 to the player for 99999999999 second

 

 

Oui j'ai mis les permission pour que les commande marche

il est pas possible d'appliqué une potion à un joueur, seulement l'effet comme ça:

on respawn:
  if player has permission "minetoda.humain":
     apply regeneration 255 to the player for 99999999999 seconds
     apply resistance 255 to the player for 99999999999 seconds

Je ne pense pas que le "of tier 255" marche mais, comme ci-dessus ça devrais marcher.

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