Aller au contenu

Skripting

Ancien
  • Compteur de contenus

    2 087
  • Inscription

  • Dernière visite

  • Jours gagnés

    70

Tout ce qui a été posté par Skripting

  1. Code ?
  2. Skripting

    [Upload] Envoyez du texte

    C'est impossible sry :c
  3. Skripting

    Variable - Retirer

    Ah mince j'avais pas vu. C'est pas "to" mais "from".
  4. Skripting

    Variable - Retirer

    http://pastebin.com/raw/ip1C4XHN
  5. Malheureusement Skript & MassiveCore ne sont pas compatibles entre eux deux.
  6. Skripting

    chance of...

    Bah oui c'est normal parce que c'est de la chance xD !
  7. Skripting

    Timespan en francais

    Tu ne peux pas faire de replace, car les replace ne se font que des variables de type string. Or la, tu as une variable de type timespan. Donc faut faire : set {_variable.temp} to "%{variable.timespan}%"
  8. Skripting

    Help sur location of event-block

    L'événement on walk est bugué.
  9. Skripting

    Help sur location of event-block

    on walk on stone pressure plate: world of event-location is "Hub" x-pos of event-location is {x} y-pos of event-location is {y} z-pos of event-location is {z} send "Test" command /setpos: trigger: set {x} to player's x-pos set {y} to player's y-pos set {z} to player's z-pos
  10. Non c'est un pote qui me l'a fait.
  11. Oui effectivement j'avais mal lu sa demande. Merci.
  12. Précise !
  13. on place: event-block is a red wool block under event-location is a glowstone cancel event
  14. Skripting

    Si le joueur est dans une liste!

    if {your.list::*} contain player:
  15. Je viens de tester ton code chez moi et il marche parfaitement. Es-tu sûr d'avoir entré les bons arguments ? /sellfarm carrot UnTexte LeJoueur
  16. Code ?
  17. Testé et marche ! Pour utiliser la fonction, tu fais : set {_ta.variable} to itemsInInventory(leJoueur, l'itemDemandé) Exemple, je veux calculer le nombre de steaks dans mon inventaire, je vais faire : set {_num} to itemsInInventory(player, steak) broadcast "Dans mon inventaire, j'ai %{_num}% steaks !" Fonction : function itemsInInventory(p: player, item: material) :: number: loop all items in {_p}'s inventory: "%loop-item%" contain "%{_item}%" set {_num::*} to ("%loop-item%") split at " " "%{_num::1}%" parsed as a number is a number: add {_num::1} parsed as a number to {_result} else: add 1 to {_result} {_result} is set: return {_result} stop return 0 command /testitem <player>: trigger: set {_num} to itemsInInventory(arg 1, carrot) broadcast "%{_num}%"
  18. Il te faut Skript 2.2. Après, tu veux récupérer le nombre d'items sous forme de nombre (exemple : 128 carottes), ou par stacks (exemple : 2 stacks de carrotes) ?
  19. function itemsInInventory(p: player, item: material) :: number: loop all items in {_p}'s inventory: loop-item is {_item} add 1 to {_result} return {_result} command /testitem <player>: trigger: set {_num} to itemsInInventory(player-arg, carrot) broadcast "%{_num}%"
  20. Skripting

    If player is in...

    http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHNhttp://pastebin.com/raw/ip1C4XHN
  21. Skripting

    Anti-Insultes comme lifecraft !

    Il te faut SkQuery 3.5.1. Prends les ADD-ONS de ma signature.
  22. http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHN http://pastebin.com/raw/ip1C4XHN
  23. Skripting

    Anti-Insultes comme lifecraft !

    options: Insultes: fdp|ntm|ez # Les insultes, à séparer avec un | ! on chat: if "%groups 0 of message matched to ""(\b({@Insultes})\b)""%" is not "<none>": cancel event send "&cInsultes interdites !"
  24. Skripting

    "Location" dans un fichier YML

    Oui. Sinon, j'ai déjà fait un tutoriel sur les Locations dans les fichiers YML : https://skript-mc.fr/forum/threads/z-tutoriel-2-enregistrer-des-locations-dans-un-fichier-yml.7890/
  25. Skripting

    "Location" dans un fichier YML

    command /setloc: trigger: set yml value "Loc.X" of file "plugins/Skript/scripts/Villes.yml" to x-pos of player set yml value "Loc.Y" of file "plugins/Skript/scripts/Villes.yml" to y-pos of player set yml value "Loc.Z" of file "plugins/Skript/scripts/Villes.yml" to z-pos of player set yml value "Loc.World" of file "plugins/Skript/scripts/Villes.yml" to "%player's world%" send "Location définie !" command /loc: trigger: set {_x} to yml value "Loc.X" of file "plugins/Skript/scripts/Villes.yml" set {_y} to yml value "Loc.Y" of file "plugins/Skript/scripts/Villes.yml" set {_z} to yml value "Loc.Z" of file "plugins/Skript/scripts/Villes.yml" set {_world} to yml value "Loc.World" of file "plugins/Skript/scripts/Villes.yml" set {_loc} to position {_x}, {_y}, {_z} of the world {_world} parsed as a world teleport player to {_loc}
×
×
  • 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.