Aller au contenu

Catatomik

Membre
  • Compteur de contenus

    168
  • Inscription

  • Dernière visite

  • Jours gagnés

    1

Tout ce qui a été posté par Catatomik

  1. La même chose en plus complet :) (extrait du Skript partie ressource MOD.SK !) [spoiler=code] command /verif <player>: aliases: invsee permission: moder permission message: &fMauvaise commande. trigger: wait 1 tick if {target.hide.%arg 1%} is true: message "&2[invView]&4 Ce joueur ne peux pas être visionné!" else: set {target.%player%} to arg 1 open chest with 6 rows named "&a&lVérif &7> &b%arg 1%" to player set {_playerinv} to arg 1 set {_slot} to 0 loop 36 times: set {invview.%arg 1%.%{_slot}%} to slot {_slot} of arg 1's inventory add 1 to {_slot} set {_slot} to 0 set {_slotmenu} to 18 wait 1 tick loop 36 times: format slot {_slotmenu} of player with {invview.%arg 1%.%{_slot}%} to close add 1 to {_slot} add 1 to {_slotmenu} set {_health.%arg 1%} to arg 1's health set {hunger.%arg 1%} to arg 1's hunger set {armorview.helmet.%arg 1%} to arg 1's helmet set {armorview.chestplate.%arg 1%} to arg 1's chestplate set {armorview.leggings.%arg 1%} to arg 1's leggings set {armorview.boots.%arg 1%} to arg 1's boots if arg 1's gamemode is survival: format slot 4 of player with arg 1's skull named "&a&l%arg 1% &7> &ben surive" to close else: format slot 4 of player with arg 1's skull named "&a&l%arg 1% &7> &ben créatif" to close if arg 1's gamemode is survival: if {hunger.%arg 1%} = 10: format slot 14 of player with 10 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 9.5: format slot 14 of player with 10 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 9: format slot 14 of player with 9 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 8.5: format slot 14 of player with 9 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 8: format slot 14 of player with 8 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 7.5: format slot 14 of player with 8 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 7: format slot 14 of player with 7 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 6.5: format slot 14 of player with 7 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 6: format slot 14 of player with 6 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 5.5: format slot 14 of player with 6 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 5: format slot 14 of player with 5 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 4.5: format slot 14 of player with 5 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 4: format slot 14 of player with 4 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 3.5: format slot 14 of player with 4 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 3: format slot 14 of player with 3 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 2.5: format slot 14 of player with 3 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 2: format slot 14 of player with 2 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 1.5: format slot 14 of player with 2 steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 1: format slot 14 of player with steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 0.5: format slot 14 of player with steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close if {hunger.%arg 1%} = 0: format slot 14 of player with steak named "&a&lNourriture &7:&r &6%{hunger.%arg 1%}%" to close else: format slot 14 of player with steak named "&a&lNourriture &7:&r &6Illimitée !" to close if arg 1's gamemode is survival: format slot 12 of player with iron chestplate named "&a&lArmure" with lore "&6%{armorview.helmet.%arg 1%}%||&6%{armorview.chestplate.%arg 1%}%||&6%{armorview.leggings.%arg 1%}%||&6%{armorview.boots.%arg 1%}%" to close else: format slot 12 of player with iron chestplate named "&a&lArmure" with lore "&6Joueur en créatif !" to close format slot 8 of player with sunflower named "&4&lActualiser" to close then run [make player execute command "invreload"] format slot 0 of player with torch named "&a&lInformations &7:" with lore "&cMax CPS: %{maxclicks.%arg 1%}% ||&cCPS: %{clicks.%arg 1%}%||&cAlertes: %{alerts.%arg 1%}% " to be unstealable format slot 13 of player with apple named "&a&lVie &7: &4%{_health.%arg 1%}%&4 ❤" to close while inventory name of player's current inventory is "&a&lVérif &7> &b%arg 1%": wait 0.5 second format slot 0 of player with torch named "&a&lInformations &7:" with lore "&cMax CPS: %{maxclicks.%arg 1%}% ||&cCPS: %{clicks.%arg 1%}%||&cAlertes: %{alerts.%arg 1%}% " to be unstealable set {_slot} to 0 loop 36 times: delete {invview.%arg 1%.%{_slot}%} add 1 to {_slot} delete {_slotmenu} delete {_slot} delete {_health.%arg 1%} delete {hunger.%arg 1%} delete {armorview.helmet.%arg 1%} delete {armorview.chestplate.%arg 1%} delete {armorview.leggings.%arg 1%} delete {armorview.boots.%arg 1%} delete {target.%player%} delete {_playerinv} delete {_slot}
  2. Euh expliquée ta réponse signifie ? x) Car c'est bien clair: "Called when a player enters a command (not necessarily a Skript command). " Donc toutes les commandes, skript et autres plugins !
  3. Pas de code précis ! N'importe quel code comme un simple on command: send "%complete command%" Ne renvoie aucune skript :/ C'est pourtant bien censé le faire, car avant ça marchait chez moi !
  4. Possible, à voir avec @MGamer91 Et aussi, évite les doubles post ! :c Également, il faudrait que tu remplace ta version de skript 2.1.2 par la 2.2 @MGamer91 !
  5. Je crois bien qu'il faut qu'il gère le display de ses grades via essentials, perso j'avais les addons de base avec GroupManager et essentials, et ça fonctionnait à merveille, et encore maintenant en gérant le display de grade via GroupManager.. Au passage ça marche chez moi :c
  6. Sans préciser la commande, l'event est censé marcher, et c'est dans le cas d'un logger, donc impossible de mettre la commande :/ Quelqu'un d'autre aurait une idée ?! Je suis en PLS, les addons de MrForoche n'ayants pas marchés x)
  7. Quel double post ? :c
  8. Oui, mais le résultat du chrono est donc irrécupérable :/ Mais je peux le modifier pour récupérer le résultat, donc merci bien ! Donc voilà, au cas ou quelqu'un voudrait un timer/chronomètre en skript qui est précis à 1 dixième de secondes, le voici ! (sans conversion en minutes, je n'en ai pas besoin) function Chrono(state: text): if {_state} is "start": set {chronostate} to "on" while {chronostate} is set: add 0.1 to {chrono} wait 2 ticks else if {_state} is "stop": delete {chronostate} {chrono} = temps final
  9. Pouvoir la démarrer avec Chrono("start") et l'arrêter avec Chrono("stop") :/ Le problème était que quand je faisais Chrono("stop"), le chrono ne s'arrêtait pas !
  10. Catatomik

    [FileAttente] Erreur :c

    Je n'ai aucune erreur personnellement..
  11. Non, le while s'arrête immédiatement
  12. Bonjour, J'ai actuellement un gros problème, quand je veux stop un while démarré dans un function, il ne se stope pas ! function Chrono(state: text): if {_state} is "stop": set {_state} to false if {_state} is "start": set {_state} to true while {_state} is true: add 0.1 to {chrono} wait 2 ticks stop Merci d'avance..
  13. Aucune erreur, les commandes ne sont juste pas prises en compte par le "on command" :/ Pour les logs, tu veux les quels ? Embêtant hein ? x) Je le fais de suite :)
  14. Bonsoir, J'ai depuis quelques temps un problème plutôt embêtant: le "on command" ne détecte pas les commandes créées via skript.. Version de Skript 2.2 Liste d'addons: -ExtrasSk -MundoSk -RandomSk2.7.1 -Skellett -SkQuery -SkRayFall1.9.5 -Skripto -SkUtilities0.9 -TuSKe1.8 -WildSkript -WolvSk J'ai essayé d'en désactiver certains et de voir si ça marchait mais rien. Toute aide la bienvenue ! Merci d'avance.
  15. YES ! Merci à vous deux, je n'ai plus d'erreurs :)
  16. Ah si si https://www.skunity.com/search?search=split#Split Characters
  17. Non plus, même erreur.. :/ Je comprends pas pourquoi
  18. Same error :/
  19. Catatomik

    Création d'une liste

    Normal, la variable {X::*} n'a pas été créé, il faut que tu add à chaque fois l'id du block dans {X::*}, si j'ai bien compris.
  20. Même erreur :/ Je ne comprends pas pourquoi, l'exemple donné sur skunity ne fonctionne même pas, peut être ma version de TuSKe? EDIT: dernière version installée, ça ne change rien
  21. Ok, j'essaye ça, c'était mon idée de base mais mal interprétée par moi-même ^^ Problème : "{test::*} can't be set to "/%complete command%" split by 15 characters because the latter is not an object"
  22. Ok, mais j'ai besoin de récupérer la suite de "/%complete command% de façon à afficher la fin de la commande sur une autre pancarte"
  23. Bonjour, Je suis actuellement bloqué sur un skript qui ne sert pas à grand chose mais qui est plutot fun/stylé: une console en jeu sur des pancartes qui logs les commandes des joueurs. Problème : des fois ça ne rentre pas sur 1 pancarte (la commande du joueur) et du coup je cherche à splitter "%complete command%", mais il me retourne l'erreur "{blablabla} can't be set to 'split "/%complete command%" split by 15 characters because the latter is not an object".. Je cherche donc une solution pour cela, que ce soit pour le problème de rentrer dans la pancarte ou l'erreur. [spoiler=Pour mieux comprendre, le skript entier] options: p: &7[&c&lConsole&7] &7 on command: set {test} to "/%complete command%" split by 15 characters parsed as text if player is not "Catatomik" or "Lethalic": set {csl.display.8} to "%{csl.display.7}%" wait 2 ticks set {csl.display.7} to "%{csl.display.6}%" wait 2 ticks set {csl.display.6} to "%{csl.display.5}%" wait 2 ticks set {csl.display.5} to "%{csl.display.4}%" wait 2 ticks set {csl.display.4} to "%{csl.display.3}%" wait 2 ticks set {csl.display.3} to "%{csl.display.2}%" wait 2 ticks set {csl.display.2} to "%{csl.display.1}%" wait 2 ticks set {csl.display.1} to "&7&l%hour%:%minutes% &8»" wait 2 ticks set {csl.display.8.1} to "%{csl.display.7.1}%" wait 2 ticks set {csl.display.7.1} to "%{csl.display.6.1}%" wait 2 ticks set {csl.display.6.1} to "%{csl.display.5.1}%" wait 2 ticks set {csl.display.5.1} to "%{csl.display.4.1}%" wait 2 ticks set {csl.display.4.1} to "%{csl.display.3.1}%" wait 2 ticks set {csl.display.3.1} to "%{csl.display.2.1}%" wait 2 ticks set {csl.display.2.1} to "%{csl.display.1.1}%" wait 2 ticks set {csl.display.1.1} to "&a&l%player% &8»" wait 2 ticks set {csl.display.8.2} to "%{csl.display.7.2}%" wait 2 ticks set {csl.display.7.2} to "%{csl.display.6.2}%" wait 2 ticks set {csl.display.6.2} to "%{csl.display.5.2}%" wait 2 ticks set {csl.display.5.2} to "%{csl.display.4.2}%" wait 2 ticks set {csl.display.4.2} to "%{csl.display.3.2}%" wait 2 ticks set {csl.display.3.2} to "%{csl.display.2.2}%" wait 2 ticks set {csl.display.2.2} to "%{csl.display.1.2}%" wait 2 ticks if length of "/%complete command%" is greater than "15" parsed as integer: set {csl.command1::*} to split "/%complete command%" by 15 characters set {csl.display.1.2} to "&c/%complete command%" wait 2 ticks set {csl.display.8.3} to "%{csl.display.7.3}%" wait 2 ticks set {csl.display.7.3} to "%{csl.display.6.3}%" wait 2 ticks set {csl.display.6.3} to "%{csl.display.5.3}%" wait 2 ticks set {csl.display.5.3} to "%{csl.display.4.3}%" wait 2 ticks set {csl.display.4.3} to "%{csl.display.3.3}%" wait 2 ticks set {csl.display.3.3} to "%{csl.display.2.3}%" wait 2 ticks set {csl.display.2.3} to "%{csl.display.1.3}%" wait 2 ticks set {csl.display.1.3} to "&c/%complete command%" wait 2 ticks set line 1 of block at {csl.1} to "%{csl.display.8}%" set line 2 of block at {csl.1} to "%{csl.display.7}%" set line 3 of block at {csl.1} to "%{csl.display.6}%" set line 4 of block at {csl.1} to "%{csl.display.5}%" set line 1 of block at {csl.5} to "%{csl.display.4}%" set line 2 of block at {csl.5} to "%{csl.display.3}%" set line 3 of block at {csl.5} to "%{csl.display.2}%" set line 4 of block at {csl.5} to "%{csl.display.1}%" set line 1 of block at {csl.2} to "%{csl.display.8.1}%" set line 2 of block at {csl.2} to "%{csl.display.7.1}%" set line 3 of block at {csl.2} to "%{csl.display.6.1}%" set line 4 of block at {csl.2} to "%{csl.display.5.1}%" set line 1 of block at {csl.6} to "%{csl.display.4.1}%" set line 2 of block at {csl.6} to "%{csl.display.3.1}%" set line 3 of block at {csl.6} to "%{csl.display.2.1}%" set line 4 of block at {csl.6} to "%{csl.display.1.1}%" set line 1 of block at {csl.3} to "%{csl.display.8.2}%" set line 2 of block at {csl.3} to "%{csl.display.7.2}%" set line 3 of block at {csl.3} to "%{csl.display.6.2}%" set line 4 of block at {csl.3} to "%{csl.display.5.2}%" set line 1 of block at {csl.7} to "%{csl.display.4.2}%" set line 2 of block at {csl.7} to "%{csl.display.3.2}%" set line 3 of block at {csl.7} to "%{csl.display.2.2}%" set line 4 of block at {csl.7} to "%{csl.display.1.2}%" set line 1 of block at {csl.4} to "%{csl.display.8.3}%" set line 2 of block at {csl.4} to "%{csl.display.7.3}%" set line 3 of block at {csl.4} to "%{csl.display.6.3}%" set line 4 of block at {csl.4} to "%{csl.display.5.3}%" set line 1 of block at {csl.8} to "%{csl.display.4.3}%" set line 2 of block at {csl.8} to "%{csl.display.3.3}%" set line 3 of block at {csl.8} to "%{csl.display.2.3}%" set line 4 of block at {csl.8} to "%{csl.display.1.3}%" command /csl [<text>] [<text>]: trigger: if arg 1 is not set: give 1 torch named "{@p}&b&lClique" to player stop trigger if arg 1 is "add": set {cslnumber} to arg 2 if arg 1 is "send": set line 3 of block at {csl.9} to "&7&l%hour%:%minutes% &8»" set line 3 of block at {csl.10} to "&a&l%player% &8»" set line 3 of block at {csl.11} to "&c%arg 2%" set {csl.commande.last} to arg 2 on rightclick holding torch: if name of player's tool is "{@p}&b&lClique": set {csl.%{cslnumber}%} to location of clicked block send "&aOK ! &f%{csl.%{cslnumber}%}%" on rightclick on sign: if line 1 is "&c&lEnvoyer une": if line 2 is "&c&lcommande via": if line 4 is "&b&lClique": if player have permission "essentials.ban": set {cslcommande.%player%} to true send "{@p}Écris la commande dans le chat" if line 1 is "&9&lValider pour": if line 2 is "&9&ll'envoi de la": if line 3 is "&9&lcommande": if player have permission "essentials.ban": if {csl.commande.last} is set: make console execute "%{csl.commande.last}%" set line 3 of block at {csl.9} to "&7" set line 3 of block at {csl.10} to "&d&lEnvoyé !" set line 3 of block at {csl.11} to "&7" delete {csl.commande.last} send "{@p}Commande &d&lenvoyée &7!" else: send "{@p}&4Tu dois définir une commmande" on chat: if {cslcommande.%player%} is true: make player execute "csl send %colored message%" delete {cslcommande.%player%} send "{@p}Commande &a&ldéfinie" on break of sign: if x-coord of player is between -180.5 and -167.5: if y-coord of player is between 235 and 250: if z-coord of player is between -242.5 and -238.5: cancel event send "{@p}&4&lNe détruis pas la &c&lconsole &4&l!" Merci d'avance :/
  24. Catatomik

    Sorte de "setwarp"

    Pas le bon emplacement ! Sinon j'essaye de faire ça demain ;) (section demande de skript) ^^
  25. Catatomik

    [Gui] Soucis de rightclick !

    Euh bizarre, peut être un bug graphique ou ajoute un wait, aucune idée.. :/
×
×
  • 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.