Aller au contenu

Classement

Contenu populaire

Affichage du contenu avec la meilleure réputation le 09/01/2019 dans Messages

  1. Salut ! je suis pas la pour vous apprendre comment cette fonction fonctionne mais juste pour vous la partager parce que c'est assez utile. Ce n'est pas moi qui l'ai faite, je l'ai trouvé il y a super longtemps, sous forme de commande. Voila la bête : function inventoryManager(action: text, p: player): if {_action} is "save": loop 36 times: add slot (loop-number - 1) of {_p}'s inventory to {inv.%{_p}%::items::*} set {inv.%{_p}%::maingauche} to slot 40 of {_p}'s inventory set {inv.%{_p}%::casque} to helmet of {_p} set {inv.%{_p}%::plastron} to chestplate of {_p} set {inv.%{_p}%::pantalon} to leggings of {_p} set {inv.%{_p}%::bottes} to boots of {_p} if {_action} is "give": set {_s} to 0 loop {inv.%{_p}%::items::*}: set slot {_s} of {_p}'s inventory to loop-value add 1 to {_s} set slot 40 of {_p}'s inventory to {inv.%{_p}%::maingauche} set helmet of {_p} to {inv.%{_p}%::casque} set chestplate of {_p} to {inv.%{_p}%::plastron} set leggings of {_p} to {inv.%{_p}%::pantalon} set boots of {_p} to {inv.%{_p}%::bottes} Et ensuite vous pouvez l'utiliser comme cela : (ca peut être pratique pour les systèmes de login avec skript, ou pour les inventaires par mondes) on quit: inventoryManager("save", player) on join: clear player inventoryManager("give", player) Enjoy ! ?
    1 point
  2. Non justement, tu vérifie la permission supérieur! Du type if player has (perm la plus haute) else if player has (perm du dessous) etc...
    1 point
  3. Hésite pas à mettre un like sur les messages qui t'on aidé et n'oublie pas de passer le sujet en résolu! ? Bonne continuation!
    1 point
  4. 9 times veut dire 9 fois, ce qui correspond à une ligne ( 9 slots ) Pour changer le temps entre chaque changement de vitre verte tu dois changer le wait 5 second ?
    1 point
  5. Je test ça et je te dis ! Merci !
    1 point
  6. Et voilà ❤️ command /chargement: trigger: open chest with 1 row named "&6Chargement" to player set {_c} to 0 loop 9 times: if inventory name of current inventory of player is "&6Chargement": format slot {_c} of player with 160:14 to be unstealable wait 0.005 second add 1 to {_c} else: stop wait 1 tick set {_c} to 0 loop 9 times: if inventory name of current inventory of player is "&6Chargement": format slot {_c} of player with 160:5 to be unstealable wait 0.005 second add 1 to {_c} wait 5 second else: stop
    1 point
  7. 1 point
  8. skquery j'aurais pu le faire pour ça, pas opti en plus ? J'en refait un meilleur ?
    1 point
  9. Re! J'ai fini le code, et je l'ais testé, il fonctionne! command /chargement: trigger: open chest with 1 row named "Chargement" to player format slot 0 of player with 160:14 to be unstealable format slot 1 of player with 160:14 to be unstealable format slot 2 of player with 160:14 to be unstealable format slot 3 of player with 160:14 to be unstealable format slot 4 of player with 160:14 to be unstealable format slot 5 of player with 160:14 to be unstealable format slot 6 of player with 160:14 to be unstealable format slot 7 of player with 160:14 to be unstealable format slot 8 of player with 160:14 to be unstealable wait 5 seconds format slot 0 of player with 160:13 to be unstealable wait 5 seconds format slot 1 of player with 160:13 to be unstealable wait 5 seconds format slot 2 of player with 160:13 to be unstealable wait 5 seconds format slot 3 of player with 160:13 to be unstealable wait 5 seconds format slot 4 of player with 160:13 to be unstealable wait 5 seconds format slot 5 of player with 160:13 to be unstealable wait 5 seconds format slot 6 of player with 160:13 to be unstealable wait 5 seconds format slot 7 of player with 160:13 to be unstealable wait 5 seconds format slot 8 of player with 160:13 to be unstealable Tien moi au courant ?
    1 point
  10. Salut! je tente de te faire ça!
    1 point
  11. 1 point
  12. Ah! Je crois avoir trouvé quelque chose: Cet addon à l'air de fonctionner en coordination avec Askyblock, essaye de l'installer et tente avec ton code de base (le premier) https://forums.skunity.com/resources/wolvsk-1-8-1-13-1.66/
    1 point
  13. Les 2 premières erreurs sont dues aux tabs, sur skript-mc c'est pas trop possible, mais tiens, logiquement ça ça passer : on join: if {record} isn't set: set {record} to 0 set {_c} to 0 loop all players: add 1 to {_c} if {record} < {_c}: set {record} to {_c}
    1 point
  14. Merci à toi aussi, merci de ton aide aussi ?
    1 point
  15. Okay, tant mieux! Bonne continuation alors ?
    1 point
  16. Skript-mirror n'a aucun rapport avec les nbt. Skript-mirror est conçu pour utiliser du java dans skript. Comme alternative à skstuff tu as: - Jnbt pour les versions 1.12.x - Sk-nbee pour les versions 1.13 Autrement tu n'as pas d'alternative (peut être que j'en ai oublié, c'est à vérifier)
    1 point
  17. Okay, je te laisse te pencher la dessus! Je te rappel qu'il y a une documentation: ^^ https://skript-mirror.gitbook.io/docs/ Tien moi au courant !
    1 point
  18. Salut! J'ai repris le code de @> NoaGamingFR et j'ai rajouté la fonction "on/off" que tu voulais (qu'il avait sans doute oublié): on command: loop all players: if {ss.%loop-player%} is true : if loop-player is not player: set {_arguments} to arguments if {_arguments} is set: send "&bSocialSpy -> %player% : /%command% %{_arguments}%" to loop-players else: send "&bSocialSpy -> %player% : /%command%" to loop-players command /ss <text>: usage: &cTu dois faire &6/ss on &cou &6/ss off trigger: if player is op: if arg 1 is "on": set {ss.%player%} to true send "&aTon SocialSpy est maintenant activé!" else: if arg 1 is "off": set {ss.%player%} to false send "&cTon SocialSpy est maintenant désactivé!" else: send "&cTu dois faire &6/ss on &cou &6/ss off" Voilà! Tien nous au courant si ça fonctionne ?
    1 point
  19. Salut, pourquoi ne pas set une variable temporaire à chaque choses voulue ta BDD, name tool, lore,... tu les envoies sur ta BDD dans une catégorie et après tu rècupèré ?
    1 point
  20. Une variable en général stocke une chaîne de caractères si tu regardes sa valeur. Après je n'ai plus l'addon mais il y a un moyen de faire une belle table dans ta BDD avec Skript sans utiliser les variables.
    1 point
  21. Si je puis me permettre, il faut aussi sauvegarder la main gauche ^^ Et donc ça donnerai : function inventoryManager(action: text, p: player): if {_action} is "save": loop 36 times: add slot (loop-number - 1) of {_p}'s inventory to {inv.%{_p}%::items::*} set {inv.%{_p}%::maingauche} to slot 40 of {_p}'s inventory set {inv.%{_p}%::casque} to helmet of player set {inv.%{_p}%::plastron} to chestplate of player set {inv.%{_p}%::pantalon} to leggings of player set {inv.%{_p}%::bottes} to boots of player if {_action} is "give": set {_s} to 0 loop {inv.%{_p}%::items::*}: set slot {_s} of {_p}'s inventory to loop-value add 1 to {_s} set slot 40 of {_p}'s inventory to {inv.%{_p}%::maingauche} set helmet of player to {inv.%{_p}%::casque} set chestplate of player to {inv.%{_p}%::plastron} set leggings of player to {inv.%{_p}%::pantalon} set boots of player to {inv.%{_p}%::bottes}
    1 point
  22. Le problème que j'ai avec ça c'est qu'on peut pas faire ça pour des gui ou manipuler l'inventaire après (drop l'inventaire) donc je conseil plus : function inventoryManager(action: text, p: player): if {_action} is "save": loop 36 times: add slot (loop-number - 1) of {_p}'s inventory to {inv.%{_p}%::items::*} set {inv.%{_p}%::casque} to helmet of player set {inv.%{_p}%::plastron} to chestplate of player set {inv.%{_p}%::pantalon} to leggings of player set {inv.%{_p}%::bottes} to boots of player if {_action} is "give": set {_s} to 0 loop {inv.%{_p}%::items::*}: set slot {_s} of {_p}'s inventory to loop-value add 1 to {_s} set helmet of player to {inv.%{_p}%::casque} set chestplate of player to {inv.%{_p}%::plastron} set leggings of player to {inv.%{_p}%::pantalon} set boots of player to {inv.%{_p}%::bottes}
    1 point
×
×
  • 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.