-
Compteur de contenus
2 087 -
Inscription
-
Dernière visite
-
Jours gagnés
70
Type de contenu
Profils
Forums
Téléchargements
Tout ce qui a été posté par Skripting
-
Ça se voit que tu es nouveau ici toi non ?
-
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^^ !
-
Quel est ton plugin d'économie ?
-
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...
-
Skript est Update pour la 1.9 mais pas pour la 1.10 attention x) !
-
Tu as mis 3 s à message regarde bien x) !
-
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 !
-
Arrêtez bordel, il marche parfaitement, je l'ai testé. Vous commencez sérieusement à dépasser les limites là...
-
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 !"
-
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) !
-
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...
-
Tu es sûr de ne pas avoir mis les '*' pour toutes les permissions ? Car ce signe ne marche pas.
-
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
-
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.
-
Bien sûr, je teste le script avant^^ !
-
J'adore les scripts de modération, je fais ta demande tout de suite ;) !
-
La partie la plus importante quand il y a un bug c'est le code; réfléchissez...
-
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"
-
Si tu veux qu'on t'aide il nous plus d'informations, on ne comprend rien...
-
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%")
-
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")
-
Executer plusieurs commandes à la suite.
Skripting a répondu à un(e) question de VolScor dans Résolus
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" -
on place: if event-block is a red wool: if block under the event-block is not a TonBloc: cancel event
-
Une condition pour vérifier si l'on est pas soit même ?
Skripting a répondu à un(e) question de PastequeBuild dans Inactifs
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 !"
