Aller au contenu

shodak

Membre
  • Compteur de contenus

    39
  • Inscription

  • Dernière visite

  • Jours gagnés

    1
  • Crédits

    76 [Faire un don]

Tout ce qui a été posté par shodak

  1. Merci pour t'as réponse ca m'a bcp aidé
  2. Salut, tu peux utiliser la condition ci-dessous: if player's tool is air: Voilà, j'espère t'avoir aidé ! Si tu as encore besoin d'aide n'hésite pas
  3. Version de Minecraft : 1.8.9 Version de Skript : 2.1.2 (si vous connaissez une version plus récente stable qui fonctionne avec la 1.8.9 je suis preneur) Addons utilisés: Pas d'addon Type du skript : Script de /friends Bonjour, Je suis actuellement en train de développer un skript de /friend, pour cela j'utilise des boucles pour récupérer les informations des joueur stocké dans des variables list. Mais les boucles sont imbriqué les une dans les autres et j'ai donc une erreur qui me dit qu'il faut que je spécifie les numéro des boucles, mais je n'y arrive pas... quelqu'un peut-il m'aider ? Merci d'avance Je vous joint le skript ci-dessous: command /friend [<text>] [<text>]: aliases: /friends, /f trigger: if arg 1 is "invite" or "add": loop {all.player.list::*}: if loop-value = arg 2: exit loop set {_arg.2} to loop-index loop {online.player.list::*}: if loop-index = {_arg.2}: exit loop loop {f.list.%uuid of player%::*}: if loop-value = {_arg.2}: exit loop send "Vous êtes déjà ami avec ce joueur !" to player stop loop {f.wating.list.%uuid of player%::*}: if loop-value = {_arg.2}: exit loop send "Vous êtes désormais ami avec %arg 2 %" to player send "%player% a accepté votre demande d'ami(e) !" to arg 2 parsed as a player add uuid of player to {f.list.%{_arg.2}%::*} add {_arg.2} to {f.list.%uuid of player%::*} remove {_arg.2} from {f.wating.list.%uuid of player%::*} stop loop {f.wating.list.%{_arg.2}%::*}: if loop-value = uuid of player: exit loop send "Vous avez déjà envoyé une demande d'ami à ce joueur !" to player stop send "Le joueur %player% vous a demandez en ami(e) !" to arg 2 parsed as a player send "Votre demande a bien été envoyé !" to player add uuid of player to {f.wating.list.%{_arg.2}%::*} stop loop {f.list.%uuid of player%::*}: if loop-value = {_arg.2}: exit loop send "Vous êtes déjà ami avec ce joueur !" to player stop loop {f.wating.list.%uuid of player%::*}: if loop-value = {_arg.2}: exit loop send "Vous êtes désormais ami avec %arg 2 %" to player add "%player% a accepté votre demande d'ami(e) !" to {f.message.offline.%{_arg.2}%::*} add uuid of player to {f.list.%{_arg.2}%::*} add {_arg.2} to {f.list.%uuid of player%::*} remove {_arg.2} from {f.wating.list.%uuid of player%::*} stop loop {f.wating.list.%{_arg.2}%::*}: if loop-value = uuid of player: exit loop send "Vous avez déjà envoyé une demande d'ami à ce joueur !" to player stop send "Votre demande a bien été envoyé !" to player add uuid of player to {f.wating.list.%{_arg.2}%::*} stop
  4. shodak

    inactif ✖ Aide Skript Team

    J'utilise cette version [Contenu masqué], et je n'ai pas d'addons
  5. shodak

    inactif ✖ Aide Skript Team

    C'est bizarre car lorsque j'ai essayer le code, tous marchais parfaitement...
  6. Salut, le code est tout simple On damage: if victim is in world "world": cancel event J'espere t'avoir aider
  7. shodak

    inactif ✖ Aide Skript Team

    Salut, il y a une erreur dans ton code, ligne 56 remplace par ça : remove player from {blue::*} Par contre, en copiant le code j'ai eu plein d'erreurs d'espace donc jsp si c'est skript qui modifie ou pas mais fais attention
  8. shodak

    inactif ✖ CTF

    Je peux continuer le programme juste c'est plus facile pour toi de le continuer avec les différentes variables tu t'y retrouvera plus facilement néanmoins si tu veux je peux le continuer ou t'aider si tu le veux.
  9. shodak

    inactif ✖ CTF

    j'ai fait en sorte que quand tu te connecte (on join) ta couleur par défaut est rouge ( derniere ligne) donc cela ne marche que sur les laine rouge qui deviennent blache lorsque tu fais un click droit et qui réapparaissent lorsque tu meurt ou mais la laine au cooronné du block au dessu celui pointer lors du curseur lors de m'éxécution de la commande /woolpose red pour la team rouge et /woolpose blue pour la team bleu Relance moi si tu as d'autre soucis je t'aiderai vaulontairement
  10. shodak

    inactif ✖ CTF

    Bonjour, j'ai commencer un skript je vous laisse voir si vous avez besoin d'aide dites le moi #lorsque les joueur rejoigne leur équipe il faut mettre la variable {team.color.%player%} to la couleur ("red" or "blue") on right click on blue wool: #lorsqu'un joueur rouge prends la laine bleue if {team.color.%player%} is "red": cancel event set {wool.location.%player%} to location of event-block set event-block to white wool set {wool.taken.%player%} to true give blue wool to player on right click on red wool: #lorsqu'un joueur bleu prends la laine rouge if {team.color.%player%} is "blue": cancel event set {wool.location.%player%} to location of event-block set event-block to white wool set {wool.taken.%player%} to true give red wool to player on right click with blue wool: #Les joueur rouge doivent poser la laine bleue dans leur base a un endroit précis "{location.place.wool.red}" if {team.color.%player%} is "red": if location of block up targeted block is {location.place.wool.red}: wait 1 second set block up to air add 1 to {red.team.point} set block at {wool.location.%player%} to blue wool #teleport les joueurs a leur spawn (en fonction de leur team) else: cancel event on right click with red wool: #Les joueur bleu doivent poser la laine rouge dans leur base a un endroit précis "{location.place.wool.blue}" if {team.color.%player%} is "blue": if location of block up event-block is {location.place.wool.blue}: wait 1 second set block up to air add 1 to {blue.team.point} set block at {wool.location.%player%} to red wool #teleport les joueurs a leur spawn (en fonction de leur team) else: cancel event on break blue wool or red wool or white wool: #pour empecher les jouer de casser les laines if {team.color.%player%} is "red" or "blue": cancel event on death of player: if {wool.taken.%player%} is true: if {team.color.%player%} is "red": set block at {wool.location.%player%} to blue wool # remove all blue wools from player's inventory else if {team.color.%player%} is "blue": set block at {wool.location.%player%} to red wool # remove all red wools from player's inventory delete {wool.taken.%player%} delete {wool.location.%player%} loop all entities in player's world: if loop-entity is wool: kill loop-entity on drop of blue wool or red wool: if {team.color.%player%} is "red": cancel event else if {team.color.%player%} is "blue": cancel event command /woolpose [<text>]: trigger: if arg 1 is "red": #pour set l'endroit ou les rouges doivent poser les laines bleus set {location.place.wool.red} to location of block up targeted block send "Les rouges doivent poser la laine bleue au coordonnées %{location.place.wool.red}%" to player if arg 1 is "blue": #pour set l'endroit ou les bleus doivent poser les leines rouges set {location.place.wool.blue} to location of block up targeted block send "Les bleus doivent poser la laine rouge au coordonnées %{location.place.wool.blue}%" to player on join: set {team.color.%player%} to "red"
  11. shodak

    résolu ✔ Erreur console tuske

    ok merci, je vais essayer
  12. j'ai fais ça aavec les minerai mais tu peux dupliquer le code et changer les information suivante: if arg 1 is "emerald": #Pour que la command soit "/sold emerald" si tu veux changer tu remplace le emerald par autre chose set {_count} to 0 loop all items in player's inventory: if loop-item is emerald: # il verifie si l'item en question est bien de l'emerald set {_count} to number of loop-item of player's inventory remove all emerald from player's inventory # il retire les emerald de l'inventaire du joueur if {_count} != 0: set {_count} to {_count}*35 #il calcule le prix de tout les minerai*le prix par minerai add {_count} to {point.%UUID of player%} #il ajoute la somme a ton argent send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de emerald" to player juste une chose je me suis tromper dans le skript dans chaque bloc, il faut modifier la ligne: set {point.%UUID of player%} to {_count} par add {_count} to {point.%UUID of player%} voila le skript corrigé: command /sold [<text>]: trigger: if arg 1 is "diamond": set {_count} to 0 loop all items in player's inventory: if loop-item is diamond: set {_count} to number of loop-item of player's inventory remove all diamonds from player's inventory if {_count} != 0: set {_count} to {_count}*30 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de diamant !" to player if arg 1 is "gold": set {_count} to 0 loop all items in player's inventory: if loop-item is gold ingot: set {_count} to number of loop-item of player's inventory remove all gold ingots from player's inventory if {_count} != 0: set {_count} to {_count}*20 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas d'or !" to player if arg 1 is "iron": set {_count} to 0 loop all items in player's inventory: if loop-item is iron ingot: set {_count} to number of loop-item of player's inventory remove all iron ingots from player's inventory if {_count} != 0: set {_count} to {_count}*15 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de fer !" to player if arg 1 is "coal": set {_count} to 0 loop all items in player's inventory: if loop-item is coal: set {_count} to number of loop-item of player's inventory remove all coal from player's inventory if {_count} != 0: set {_count} to {_count}*8 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de charbon !" to player if arg 1 is "lapis": set {_count} to 0 loop all items in player's inventory: if loop-item is lapis lazuli: set {_count} to number of loop-item of player's inventory remove all lapis lazuli from player's inventory if {_count} != 0: set {_count} to {_count}*20 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de lapis lazuli" to player if arg 1 is "redstone": set {_count} to 0 loop all items in player's inventory: if loop-item is redstone: set {_count} to number of loop-item of player's inventory remove all redstone from player's inventory if {_count} != 0: set {_count} to {_count}*20 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de redstone" to player if arg 1 is "emerald": set {_count} to 0 loop all items in player's inventory: if loop-item is emerald: set {_count} to number of loop-item of player's inventory remove all emerald from player's inventory if {_count} != 0: set {_count} to {_count}*35 add {_count} to {point.%UUID of player%} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de emerald" to player
  13. bonjour, voila le code : si vous avez des questions ou des erreurs n'hésitez surtout pas meme si j'ai testé le code et tout fonctione correctement command /sold [<text>]: trigger: if arg 1 is "diamond": set {_count} to 0 loop all items in player's inventory: if loop-item is diamond: set {_count} to number of loop-item of player's inventory remove all diamonds from player's inventory if {_count} != 0: set {_count} to {_count}*30 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de diamant !" to player if arg 1 is "gold": set {_count} to 0 loop all items in player's inventory: if loop-item is gold ingot: set {_count} to number of loop-item of player's inventory remove all gold ingots from player's inventory if {_count} != 0: set {_count} to {_count}*20 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas d'or !" to player if arg 1 is "iron": set {_count} to 0 loop all items in player's inventory: if loop-item is iron ingot: set {_count} to number of loop-item of player's inventory remove all iron ingots from player's inventory if {_count} != 0: set {_count} to {_count}*15 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de fer !" to player if arg 1 is "coal": set {_count} to 0 loop all items in player's inventory: if loop-item is coal: set {_count} to number of loop-item of player's inventory remove all coal from player's inventory if {_count} != 0: set {_count} to {_count}*8 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de charbon !" to player if arg 1 is "lapis": set {_count} to 0 loop all items in player's inventory: if loop-item is lapis lazuli: set {_count} to number of loop-item of player's inventory remove all lapis lazuli from player's inventory if {_count} != 0: set {_count} to {_count}*20 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de lapis lazuli" to player if arg 1 is "redstone": set {_count} to 0 loop all items in player's inventory: if loop-item is redstone: set {_count} to number of loop-item of player's inventory remove all redstone from player's inventory if {_count} != 0: set {_count} to {_count}*20 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de redstone" to player if arg 1 is "emerald": set {_count} to 0 loop all items in player's inventory: if loop-item is emerald: set {_count} to number of loop-item of player's inventory remove all emerald from player's inventory if {_count} != 0: set {_count} to {_count}*35 set {point.%UUID of player%} to {_count} send "Vous avez gagné %{_count}% dollar(s)" to player else: send "Vous n'avez pas de emerald" to player
  14. shodak

    résolu ✔ Erreur console tuske

    nn c'est message au millieu de l'ecran mais ca met une erreur
  15. shodak

    résolu ✔ Erreur console tuske

    merci je n'ai plus d'erreur juste une autre question lorsque j'utilise send title ca me retourne une erreur! (can't understand this condition/effect)
  16. shodak

    résolu ✔ Erreur console tuske

    [Contenu masqué] celle-ci
  17. bonjour j'ai commencer a developper le debut du skript mais pouvez vous me donner votre plugin de faction afin de pouvoir coordonner les deux plugins (vous pouvez me l'envoyer en privé si vous préféré) merci
  18. shodak

    résolu ✔ Erreur console tuske

    la derniere il me semble la 1.8.2
  19. Version de Minecraft : 1.9.X Version de Skript : 2.5.1 Addons utilisés: Tuske, SkQuery, Skript-yaml Type du skript : Description du script : Bonjour lorsque je lance mon serveur avec Tuske, j'ai une erreur dans la console, est ce que quelqu'un pourrai m'aider à la corriger ? Merci d'avance voila le message d'erreur: [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! [Skript] Severe Error: [08:00:32 ERROR]: #!#! TuSKe's class com.github.tukenuke.tuske.effects.EffMakeDrop generated an exception while loading [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Something went horribly wrong with Skript. [08:00:32 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. [08:00:32 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). [08:00:32 ERROR]: #!#! Following plugins are probably related to this error in some way: [08:00:32 ERROR]: #!#! TuSKe (github.com/Tuke-Nuke/TuSKe) [08:00:32 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. [08:00:32 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. [08:00:32 ERROR]: #!#! In that case, you will be given instruction on how should you report it. [08:00:32 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. [08:00:32 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Stack trace: [08:00:32 ERROR]: #!#! java.lang.NullPointerException [08:00:32 ERROR]: #!#! at com.github.tukenuke.tuske.effects.EffMakeDrop.<clinit>(EffMakeDrop.java:25) [08:00:32 ERROR]: #!#! at java.lang.Class.forName0(Native Method) [08:00:32 ERROR]: #!#! at java.lang.Class.forName(Unknown Source) [08:00:32 ERROR]: #!#! at ch.njol.skript.SkriptAddon.loadClasses(SkriptAddon.java:107) [08:00:32 ERROR]: #!#! at com.github.tukenuke.tuske.TuSKe.onEnable(TuSKe.java:100) [08:00:32 ERROR]: #!#! at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [08:00:32 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [08:00:32 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [08:00:32 ERROR]: #!#! at org.bukkit.craftbukkit.v1_9_R2.CraftServer.loadPlugin(CraftServer.java:361) [08:00:32 ERROR]: #!#! at org.bukkit.craftbukkit.v1_9_R2.CraftServer.enablePlugins(CraftServer.java:321) [08:00:32 ERROR]: #!#! at net.minecraft.server.v1_9_R2.MinecraftServer.t(MinecraftServer.java:416) [08:00:32 ERROR]: #!#! at net.minecraft.server.v1_9_R2.MinecraftServer.l(MinecraftServer.java:381) [08:00:32 ERROR]: #!#! at net.minecraft.server.v1_9_R2.MinecraftServer.a(MinecraftServer.java:336) [08:00:32 ERROR]: #!#! at net.minecraft.server.v1_9_R2.DedicatedServer.init(DedicatedServer.java:268) [08:00:32 ERROR]: #!#! at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:532) [08:00:32 ERROR]: #!#! at java.lang.Thread.run(Unknown Source) [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Version Information: [08:00:32 ERROR]: #!#! Skript: 2.5.1 (latest) [08:00:32 ERROR]: #!#! Flavor: skriptlang-github [08:00:32 ERROR]: #!#! Date: 2020-10-22 [08:00:32 ERROR]: #!#! Bukkit: 1.9.4-R0.1-SNAPSHOT [08:00:32 ERROR]: #!#! Minecraft: 1.9.4 [08:00:32 ERROR]: #!#! Java: 1.8.0_271 (Java HotSpot(TM) 64-Bit Server VM 25.271-b09) [08:00:32 ERROR]: #!#! OS: Windows 10 amd64 10.0 [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Server platform: Spigot [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Current node: null [08:00:32 ERROR]: #!#! Current item: null [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Thread: Server thread [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! Language: english [08:00:32 ERROR]: #!#! Link parse mode: DISABLED [08:00:32 ERROR]: #!#! [08:00:32 ERROR]: #!#! End of Error. [08:00:32 ERROR]: #!#!
  20. shodak

    résolu ✔ Fichier log

    ok merci je vais essayer
  21. shodak

    résolu ✔ Fichier log

    Version de Minecraft : 1.9.X Version de Skript : 2.5.1 Addons utilisés: n'importe Type du skript : fichier log Description du script : Bonjour, je souhaite faire un fichier log sur mon serveur mais tous les skript que je trouve ne fonctionnent pas, faut il un addons specifique ? Merci de votre aide ! voici le skript: on load: If folder "plugins/SKLogs" doesn't exists: create folder "plugins/SKLogs" send "&4Dossier créer" to console If file "plugins/SKLogs/logs.log" doesn't exists: create file "plugins/SKLogs/logs.log" send "&4Fichier créer!" To console on break: wf "[%now%] [%player%] [%location of player%] : à cassé le block %event-block%" to "plugins/SKLogs/logs.log" on place: wf "[%now%] [%player%] [%location of player%] : a posé le block %event-block%" to "plugins/SKLogs/logs.log" on chat: wf "[%now%] [%player%] [%location of player%] : a marqué ""%message%"" dans le chat" to "plugins/SKLogs/logs.log" on command: wf "[%now%] [%player%] [%location of player%] : a execute la commande ""%command%"" " to "plugins/SKLogs/logs.log" on join: wf "[%now%] [%player%] : a rejoint le serveur " to "plugins/SKLogs/logs.log" on quit: wf "[%now%] [%player%] : a quitter le serveur " to "plugins/SKLogs/logs.log"
  22. Si tu veux remplace le "cancel event" par make console execute command "/effect %player% minecraft:slonesse [durée] [level] [masquer les particules]", avec true pour masquer les particule et false/ rien pour les garder un petit exemple: make console execute command "/effect %player% minecraft:slowness 20 2 true"
  23. ah ok... normalement ça marche aussi mais c cool
  24. salut tu peux essayer ça: on any move: if health of player < 1: cancel event
×
×
  • 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.