Aller au contenu

BiizMo

Membre
  • Compteur de contenus

    2
  • Inscription

  • Dernière visite

Tout ce qui a été posté par BiizMo

  1. BiizMo

    [UHC] Scénario "Bookception"

    Bon au final en continuant mes recherches de mes côtés j'ai réussi à faire ça : on death: victim is a player: set {_random} to a random integer from 0 to 100 if {_random} is between 0 and 9: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:20,lvl:2}]}" if {_random} is between 10 and 20: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:16,lvl:3}]}" if {_random} is between 21 and 30: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:0,lvl:2}]}" if {_random} is between 31 and 40: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:2,lvl:2}]}" if {_random} is between 41 and 50: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:48,lvl:3}]}" if {_random} is between 51 and 60: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:49,lvl:2}]}" if {_random} is between 61 and 70: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:21,lvl:3}]}" if {_random} is between 71 and 80: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:32,lvl:4}]}" if {_random} is between 81 and 90: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:34,lvl:2}]}" if {_random} is between 91 and 100: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:50,lvl:1}]}" Ca fonctionne parfaitement, je tenais à vous le mettre si jamais ça vous intéressait. :)
  2. Version de Minecraft/Skript : 1.8.x Type de Skript : Scénario d'UHC Description du Skript : Bonjour ! Bookception est un scénario où lorsqu'un joueur tue quelqu'un, un livre enchanté est drop au joueur, de manière aléatoire avec un niveau aléatoire. Exemple : A tue B et drop un livre Sharpness 2. A tue C et drop un livre Feither Falling 3. J'ai déjà cherché sur le forum et j'ai trouvé quelque chose, c'étais une suite de 10 "chance of 10%" ( donc bout à bout ça donne 100% ) sauf que les pourcentage sont comptés de manières individuelle, donc il arrive qu'on n'en drop aucun très souvent, et dès fois plusieurs. Je voudrais que sur une liste de book que j'ai sélectionné ( le mieux serait le plus de livre enchanté possible ), à CHAQUE FOIS qu'un joueur TUE quelqu'un, UN SEUL livre drop et uniquement un seul. Le skript ressemblait à ça : on death: victim is a player: chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:20,lvl:2}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:16,lvl:3}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:0,lvl:2}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:2,lvl:2}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:48,lvl:3}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:49,lvl:2}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:50,lvl:2}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:21,lvl:3}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:32,lvl:4}]}" chance of 10%: execute console command "/give %attacker% enchanted_book 1 0 {StoredEnchantments:[{id:34,lvl:2}]}" #Remplacer le id:xx par l'ID de l'enchantement souhaité, et remplacer lvl:x par le niveau de l'enchantement souhaité. Si quelqu'un peut m'aider ça serait vraiment sympas, merci ! :)
×
×
  • 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.