Aller au contenu
  • 0

Cooldown avec le temps restant


Je suis bête pour pas savoir le faire ?  

5 membres ont voté

  1. 1. Je suis bête pour pas savoir le faire ?

    • Totalement mec !
      2
    • Nan tkt !
      3


Question

Posté(e)

Bonjour,

 

Je voudrai qu'un Skripteur/euse applique un cooldown d'Un Jour avec le délai qu'il reste en français sur ces 2 Codes ci-dessous (ou pour un me suffira très bien…)

 

command /guiC1:
   trigger:
       if {temps.+time.%uuid of player%} is not set:
           send "§9====================================================="
           chance of 10%:
               send "§b• §aVous gagnez une §cEpee en Diamand"
               give a diamond sword to player
           chance of 50%:
               send "• §aVous gagnez un §cPlastron en Fer"
               give an iron chestplate to player
           chance of 40%:
               send "§e• §aVous ne gagnez §4Rien !"
           chance of 40%:
               send "§1• §aVous gagnez un §cArc & 3 Flèches"
               give 1 bow to player
               give 3 arrow to player
           chance of 30%:
               send "§6• §aVous gagnez une §cPotion de Dégat I"
               give 1 splash instant damage potion to the player
           chance of 80%:
               send "§2• §aVous gagnez 2 §cBottle d'XP"
               give 2 experience bottle to player
           chance of 10%:
               send "§e• §aVous ne gagnez §4Rien !"
           chance of 70%:
               send "§9• §AVous gagnez une §cPomme d'Or"
               give 1 golden apple to player
           chance of 50%:
               send "§0• §aVous gagnez 20 §cBoule de Neige"
               give 20 snowball to player
           chance of 0.004%:
               send "§4§l• §4§lVOUS GAGNEZ LE §b§lVIP§4§l !!!"
               make console execute command "/manuadd %player% VIP"
               send player title "§4§l!!! §b§lVIP§4§l !!!" with subtitle "§bVous gagnez le §aVIP§b %player% !" for 1 seconds
               wait 1 second
               send player title "§b§l!!! §4§lVIP§b§l !!!" with subtitle "§aVous gagnez le §bVIP§a %player% !" for 1 seconds
           send "§9====================================================="
           set {temps.+time.%uuid of player%} to 1
           stop
       if {temps.+time.%uuid of player%} is set:
           send "§cErreur :§7 Vous devez attendre §cUn Jour§7 avant d'utilisé votre §2B§ao§fi§at§2e §fM§aa§2g§ai§fq§au§2e §7!"
command /guiC2:
   trigger:
       if {temps.+set.//timings.%uuid of player%} is not set:
           send "§9====================================================="
           chance of 40%:
               send "§b• §5Vous gagnez 3 §aPotion de FireResistance"
               give 3 potion of:16419 to player
           chance of 18%:
               send "• §5Vous gagnez une §aEnderPearl"
               give 1 ender pearl to player
           chance of 50%:
               send "§a• §5Vous gagnez une §aPotion de Regénération"
               give 1 potion of:8193 to player
           chance of 10%:
               send "§e• §5Vous ne gagnez §4Rien !"
           chance of 11%:
               send "§1• §5Vous gagnez un §aArc & 6 Flèches"
               give 1 bow to player
               give 6 arrow to player
           chance of 70%:
               send "§8• §5Vous gagnez 1 §aPotion de Heal"
               give 1 potion of:16453 to player
           chance of 23%:
               send "§6• §5Vous gagnez une §aPotion de Dégat II"
               give 1 potion of:16428 to player
           chance of 60%:
               send "§2• §5Vous gagnez 5 §aBottle d'XP"
               give 5 experience bottle to player
           chance of 23%:
               send "§e• §5Vous ne gagnez §4Rien !"
           chance of 25%:
               send "§9• §5Vous gagnez 2 §aPomme d'Or"
               give 2 golden apple to player
           chance of 20%:
               send "§0• §5Vous gagnez une §aPotion de Poison"
               give 1 potion of:16388 to player
           chance of 0.005%:
               send "§4§l• §4§lVOUS GAGNEZ LE §b§lVIP§4§l !!!"
               make console execute command "/manuadd %player% Light-VIP"
               send player title "§4§l!!! §b§lVIP§4§l !!!" with subtitle "§bVous gagnez le §aVIP§b %player% !" for 1 seconds
               wait 1 second
               send player title "§b§l!!! §4§lVIP§b§l !!!" with subtitle "§aVous gagnez le §bVIP§a %player% !" for 1 seconds
           send "§9====================================================="
           set {temps.+set.//timings.%uuid of player%} to 1
           stop
       if {temps.+set.//timings.%uuid of player%} is set:
           send "§cErreur :§7 Vous devez attendre §cUn Jour§7 avant d'utilisé votre §2B§ao§fi§at§2e §fM§aa§2g§ai§fq§au§2e §7!"

 

Merci de ne pas prendre ce code pour le votre dans votre serveur :c

5 réponses à cette question

Messages recommandés

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