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. Skripting

    Skript DTC

    Ça se voit que tu es nouveau ici toi non ?
  2. Skripting

    Skript et Hologram Display

    Oui, tu es en 1.7.10, et ça ne fonctionne pas en cette version. P.S : Je ne suis pas là pour juger, mais après faudrait p't'être monter en version, car si tu continues à rester en 1.7 dans 5 mois. Nous on sera la 1.16^^ !
  3. Quel est ton plugin d'économie ?
  4. Skripting

    Désigner plusieurs "noms"

    on region enter: wait 1 second set {_check::*} to groups 0 of "%region at player%" matched "(\b(NonDeTaPremiereRegion|NomDeTaSecondeRegion|Etc...)\b)" if {_check::*} is set: # Si le joueur est dans une de ces régions. # La suite...
  5. Skripting

    Give potion de lingering

    Skript est Update pour la 1.9 mais pas pour la 1.10 attention x) !
  6. Skripting

    Problème skript spawn

    Tu as mis 3 s à message regarde bien x) !
  7. Eh bah voilà ! Il te manque SkQuery, punaise ça fait 1000 fois que je vous dis qu'il marche je l'ai testé moi même ne me contredisez pas ! Telecharge SkQuery dans ma signature. Nan sérieux vous m'avez mis au bout de mes nerfs, c'est la première et dernière fois que je t'aide @therocrapha !
  8. Arrêtez bordel, il marche parfaitement, je l'ai testé. Vous commencez sérieusement à dépasser les limites là...
  9. Skripting

    Problème skript spawn

    Tu oublies les points après les "command /spawn:" + une petite faute. #=====[by TobiBiotex]=====# command /spawn: trigger: if {spawn.location} is set: teleport player to {spawn.location} else: message "&aLe spawn n'a pas été défini, veuillez contacter un admin" command /setspawn: permission: spawn.admin permission messsage: Vous n'avez pas la permission pour faire cette commande trigger: set {spawn.location} to location of the player message "&aLe spawn à bien été défini !" command /delspawn: permission: spawn.admin permission messsage: Vous n'avez pas la permission pour faire cette commande trigger: delete {spawn.location} message "&aLe spawn à bien été supprimer !"
  10. Il n'y a absolument pas besoin la définir. Je vais t'expliquer, chauffe bien ton cerveau (pour les problèmes de tabulations, c'est juste le forum qui ne supporte pas, c'est pas ma faute :confused:). Alors d'abord, dans la command /mod, à la ligne où on dit "if {mod.%player%} is true:". On vérifie si la condition est sur True. Mais plus bas, se trouve un "Else". Grâce à ce "Else", ça va définir la variable automatiquement, car cela peut exécuter n'importe quelles actions. Si j'aurais pas exemple mis "else if {mod.%player%} is false:" ça n'aurait pas marché. Donc grâce au "else", cela va automatiquement définir la variable directement, et celle-ci pourra être ré-utilisée dans toutes les prochaines utilisations. J'espère ne pas avoir été trop complexe x) ! Je sais très bien ce que je dis, le script a été testé et est 100 % fonctionnel :p EDIT : Je suis en train de mettre une vidéo en ligne, pour vous prouver qu'il est fonctionnel. Vous êtes vraiment casse-pieds x) !
  11. Skripting

    Désigner plusieurs "noms"

    set {_check::*} to groups 0 of "%region at player%" matched to "(\b(TaPremièreRégion|TaDeuxièmeRégion|TaTroisièmeRégion)\b)" if {_check::*} is set: # Là on vérifie si la région du joueur correspond bien aux tiennes. # La suite...
  12. Tu es sûr de ne pas avoir mis les '*' pour toutes les permissions ? Car ce signe ne marche pas.
  13. J'ai fini ton script ! Pour utiliser la commande /Mod, il faudra la permission "Mod.Use". [spoiler=Code] Options: Prefix : &8[&aMod&8] Permission: Mod.Use command /mod: permission: {@Permission} permission message: &cErreur : Vous n'avez pas la permission ! trigger: if {mod.%player%} is true: set {mod.%player%} to false teleport player to {last.location.%player%} set player's inventory's serialized contents to {last.inventory.%player%} set {vanish.%player%} to false wait 1 tick remove invisibility from player disallow fly for player wait 1 tick send "{@Prefix} &aVous avez quitté le mode &6Modérateur &a!" else: set {mod.%player%} to true set {last.location.%player%} to player's location set {last.inventory.%player%} to serialized contents of player's inventory set {vanish.%player%} to true wait 1 tick apply invisibility 250 to player for 999 days allow fly for player set player's gamemode to survival wait 1 tick set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]" set slot 1 of player to 1 101 named "&bFreeze" set slot 2 of player to 1 chest named "&6Inventaire" set slot 3 of player to 1 book named "&5CPS" set slot 4 of player to 1 wooden sword named "&cKB Test" enchant the slot 4 of player with knockback 3 set slot 5 of player to 1 compass set slot 7 of player to 1 stick named "&2Random TP" set slot 8 of player to 1 arrow named "&dQuitter" wait 1 tick send "{@Prefix} &aVous avez activé le mode &6Modérateur &a!" on rightclick with blaze rod: if {mod.%player%} is true: cancel event wait 1 tick if name of player's tool is "&aVanish &7[&aON&7]": set {vanish.%player%} to false remove invisibility from player set slot 0 of player to 1 blaze rod named "&aVanish &7[&cOFF&7]" wait 1 tick send "{@Prefix} &dVanish &cOFF &d!" else if name of player's tool is "&aVanish &7[&cOFF&7]": set {vanish.%player%} to true apply invisibility 250 to player for 999 days set slot 0 of player to 1 blaze rod named "&aVanish &7[&aON&7]" wait 1 tick send "{@Prefix} &dVanish &aON &d!" on rightclick with 101: if {mod.%player%} is true: cancel event wait 1 tick if name of player's tool is "&bFreeze": if targeted entity is player: if {freeze.%targeted entity%} is true: set {freeze.%targeted entity%} to false wait 1 tick remove jump boost from targeted entity remove slowness from targeted entity remove blindness from targeted entity wait 1 tick send "{@Prefix} &aLe joueur &b%targeted entity% &an'est plus Freeze !" else: set {freeze.%targeted entity%} to true wait 1 tick apply jump boost 250 to targeted entity for 999 days apply slowness 250 to targeted entity for 999 days apply blindness 250 to targeted entity for 999 days wait 1 tick send "{@Prefix} &aLe joueur &b%targeted entity% &aa été Freeze !" else: send "{@Prefix} &cErreur : Vous devez viser un joueur !" on rightclick with chest: if {mod.%player%} is true: cancel event wait 1 tick if name of player's tool is "&6Inventaire": if targeted entity is a player: open the targeted entity's inventory for the player else: send "{@Prefix} &cErreur : Vous devez viser un joueur !" on rightclick with book: if {mod.%player%} is true: cancel event wait 1 tick if name of player's tool is "&5CPS": if targeted entity is a player: make player execute command "/verif %targeted entity%" else: send "{@Prefix} &cErreur : Vous devez viser un joueur !" on rightclick with stick: if {mod.%player%} is true: cancel event wait 1 tick if name of player's tool is "&2Random TP": loop all players: if name of loop-player is not "%player%": add loop-player to {_players::*} wait 1 tick if size of {_players::*} <= 1: send "{@Prefix} &cErreur : Vous êtes seul sur le serveur !" else: set {_random} to a random element out of {_players::*} wait 1 tick teleport player to {_random}'s location send "{@Prefix} &aVous avez bien été TP !" on rightclick with arrow: if {mod.%player%} is true: cancel event wait 1 tick make player execute command "/mod" on damage: if {mod.%victim%} is true: cancel event on drop: if {mod.%player%} is true: cancel event on place: if {freeze.%player%} is true: cancel event on break: if {freeze.%player%} is true: cancel event on command: if {freeze.%player%} is true: if player does not have permission "{@Permission}": cancel event on damage: if {freeze.%victim%} is true: cancel event on drop: if {freeze.%player%} is true: cancel event
  14. Salut, Dans ton message, tu as dit "Slot 6 : Boussole", pourrais-tu donner plus d'infos car je n'ai pas compris pour le slot 6.
  15. Bien sûr, je teste le script avant^^ !
  16. J'adore les scripts de modération, je fais ta demande tout de suite ;) !
  17. La partie la plus importante quand il y a un bug c'est le code; réfléchissez...
  18. Skripting

    Créer une condition...?

    command /Objets: trigger: close player's inventory # On doit fermer l'inventaire du joueur wait 2 ticks open chest with 3 rows named "&2&lObjets" to player # Et le réouvrir par la suite wait 2 ticks format slot 12 of player with 1 sand named "sand" to be unstealable format slot 0 of player with bucket of water named "&e&lSeau d'eau" with lore "&225 $" to close then run [make player execute command "/eco take %player% 25"] format slot 1 of player with bucket of lava named "&e&lSeau de lave" with lore "&250 $" to close then run [make player execute command "/eco take %player% 50"]=>[make player execute command "/give %player% 327 1"] format slot 2 of player with bucket of water named "&e&lSeau d'eau" with lore "25 €" to close then run [invoke "TonSub" from player] Sub "TonSub": set {_p} to parameter 1 wait 1 tick if {_p}'s balance is less than 25: send "&cPas assez d'argent !" to {_p} else: execute console command "/eco take %{_p}% 25" execute console command "/give %{_p}% 326 1"
  19. Si tu veux qu'on t'aide il nous plus d'informations, on ne comprend rien...
  20. Skripting

    Tp alleatoire :D

    function xyz(x: number, y: number, z: number, w: text) :: location: set {_w} to "%{_w}%" parsed as world set {_loc} to position {_x}, {_y}, {_z} of the world {_w} return {_loc} command /wild: trigger: teleport player to xyz (random number between -4000 and 4000, random number between 64 and 90, random number between -4000 and 4000, "%world of player%")
  21. Skripting

    Téléporter un joueur

    function xyz(x: number, y: number, z: number, w: text) :: location: set {_w} to "%{_w}%" parsed as world set {_loc} to position {_x}, {_y}, {_z} of the world {_world} return {_loc} # Pour TP à des coordonnées précises : teleport player to xyz(746, 64, 923, "Nom_Du_Monde")
  22. Utilise un Sub, ça fait moins lag, c'est plus efficace, et contrairement à la méthode de Aligator, tu peux en mettre une infinité. format slot 0 of player with bucket of water named "&e&lSeau d'eau" with lore "25 €" to close then run [invoke "TonSub" from player] Sub "TonSub": set {_p} to parameter 1 wait 0.5 tick make {_p} execute command "/command 1" make {_p} execute command "/command 2" make {_p} execute command "/command 3" make {_p} execute command "/command 4"
  23. on place: if event-block is a red wool: if block under the event-block is not a TonBloc: cancel event
  24. Skripting

    Shop

    Plugin d'économie ?
  25. command /test <player>: # Vérifie que ton argument est de type player ça vient de là trigger: if name of arg 1 is "%player%": send "Vous êtes l'argument 1 !" else: send "Vous n'êtes pas l'argument 1 !"
×
×
  • 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.