Aller au contenu

Classement

Contenu populaire

Affichage du contenu avec la meilleure réputation le 03/09/2018 dans Messages

  1. loop {_tavar::*}: set {_index} to (amount of {_tavar::*}) - (loop-index parsed as integer) add {_tavar::%{_index}%} to {_recent::*} #Ta var récente: {_recent::*}
    1 point
  2. C'était adressé à Weber, c'est pour ça que j'ai cité la ligne à laquelle je répondais. C'est pour éviter ce genre de confusion qu'on utilise la fonction Citer d'ailleurs ^^"
    1 point
  3. Trois choses : - Ne dis jamais "j'y arrive pas" ou "ça marche pas", sur un forum de développement. Tu dois toujours dire ce qui va pas, si il y a une erreur ou si juste il se passe rien. - type of, ça désigne le type de la variable. Donc type of the attacker's tool, c'est de type item ou quelque chose comme ça, pas bow. - Si le joueur change d'arme avant que la flèche ne touche, ça va pas marcher, parce que c'est au moment de l'impact qu'on regarde ce que le joueur a dans la main. Sinon, si tu veux quand même faire comme ça, y'a une chance que ça marche mieux : on damage: if the attacker's tool is a bow named "&aBow": set damage to 10 on damage: if the name of the attacker's tool is "&aBow": set damage to 10
    1 point
  4. Sans enchantement, cela va être dur en Skript ? Si non voici un code qui donne une pioche efficacité 10 et qui ne peut casser que l'obsi. Command /piocheobsi: permission: <Permission> trigger: give a diamond pickaxe of efficiency 10 named "&cPioche à obsi" to the player On break: if block is not obsidian: if name of tool of player is "&cPioche à obsi": cancel event send "&cCette pioche ne peut casser que les blocks" to player
    1 point
  5. a 100% tu n'as pas mis à jour ta version de skript: https://github.com/SkriptLang/Skript/releases
    1 point
  6. Ok je vais essayer EDIT: Yes parfait ça fonctionne ? Merci infiniment ?
    1 point
  7. Problème résolu ! Merci à vous pour votre aide. Every 10 seconds: loop all players: if loop-player's ping >= 400: kick loop-player due to " &cTon ping est trop élevé !" stop
    1 point
  8. Merci de ta réponse rapide ! Aucunes erreurs dans le skript mais par contre ça ne me kick pas quand j'ai plus de 700 ms ?
    1 point
  9. Voivi un code queje vient de faire il faut test pour la 1.7.10 car je les test que pour la 1.12 on join: if {fpc.%uuid of player%} is not set: set {fpc.%uuid of player%} to 0 command /fpcpay [<player>] [<number>]: trigger: if arg 1 is set: if arg 2 is set: if {fpc.%uuid of player%} is less than number arg: message "&cErreur, tu n'as pas assez de FPC !" stop else: add arg 2 to {fpc.%uuid of arg 1%} send "&6Tu a recu &3%arg 2% &6de &c%player%" to arg 1 send "&6Tu a envoyer &3%arg 2% &6a &c%arg 1%" to player command /fpc: trigger: send "[&cFPC&f]&6Montant du compte de &3%{fpc.%uuid of player%}% FPC" to player command /fpcgive [<player>] [<number>]: permission: give.sk trigger: if arg 1 is set: if arg 2 is set: add arg 2 to {fpc.%uuid of arg 1%} send "Ton compte a ete crediter de &c%arg 2% FPC &fpar &c%player%" to arg 1 send "Tu a crediter le compte de &c%arg 1% &f de &c %arg 2% FPC" to player
    1 point
  10. Voivi un code que je vien de codder vite fait command /grade: trigger: wait 2 ticks open chest with 3 rows named "&cGrades" to player wait 2 tick format slot 0 of player with blue stained glass named " " to close format slot 1 of player with blue stained glass named " " to close format slot 2 of player with blue stained glass named " " to close format slot 3 of player with blue stained glass named " " to close format slot 4 of player with blue stained glass named " " to close format slot 5 of player with blue stained glass named " " to close format slot 6 of player with blue stained glass named " " to close format slot 7 of player with blue stained glass named " " to close format slot 8 of player with blue stained glass named " " to close format slot 9 of player with blue stained glass named " " to close format slot 17 of player with blue stained glass named " " to close format slot 18 of player with blue stained glass named " " to close format slot 19 of player with blue stained glass named " " to close format slot 20 of player with blue stained glass named " " to close format slot 21 of player with blue stained glass named " " to close format slot 22 of player with blue stained glass named " " to close format slot 23 of player with blue stained glass named " " to close format slot 24 of player with blue stained glass named " " to close format slot 25 of player with blue stained glass named " " to close format slot 26 of player with blue stained glass named " " to close format slot 12 of player with gold ingot named "&6V.I.P" with lore "&5 Coûte 1500 LoxiCoins" to close then run [make player execute command "/vip"] format slot 14 of player with diamond named "&6V.I.P+" with lore "&5Coûte 2250 LoxiCoins" to close then run [make player execute command "/vip+ "] command /vip: trigger: execute console command "/manuadd %player% vip" execute console command "/money take %player% 1500" send "&3Felicitation tu est désormais &6V.I.P" to player command /vip+: trigger: execute console command "/manuadd %player% vip+" execute console command "/money take %player% 2250" send "&3Felicitation tu est désormais &6V.I.P+" to player
    1 point
  11. Hum, je n'ai pas testé mais il n'y a pas d'erreur et je pense pas qu'il y ait besoin d'add-on : options: max_players: 8 minimum_players: 4 first_timer: 30 second_timer: 10 on join: if {game.start} is true: kick player due to "Partie commencée" stop if {game::*} is set: if size of {game::*} is equal to {@max_players}: kick player due to "Partie pleine" stop if number of all players is 1: delete {game::*} add player to {game::*} send "%player% a rejoint la partie (%size of {game::*}%/{@max_players}" to all players else: add player to {game::*} send "%player% a rejoint la partie (%size of {game::*}%/{@max_players}" to all players if size of {game::*} is equal to {@minimum_players}: if {game.timer} is not set: send "La partie va commencer dans {@first_timer} secondes." to all players set {game.timer} to {@first_timer} else if size of {game::*} is equal to {@max_players}: if {game.timer} > {@second_timer}: set {game.timer} to {@second_timer} send "La partie va commencer dans {@second_timer} secondes." on quit: remove player from {game::*} if {game.start} is true: send "%player% a quitté le jeu." to all players else if size of {game::*} is not equal to 0: send "%player% a quitté la partie (%size of {game::*}%/{@max_players}" to all players every 1 second: if size of {game::*} >= {@minimum_players}: if {game.timer} is set: if {game.timer} > 10: remove 1 from {game.timer} else if {game.timer} >= 1: remove 1 from {game.timer} send "La partie va commencer dans %{game.timer}% secondes !" to all players else if {game.timer} = 0: send "La partie commence !" to all players delete {game.timer} set {game.start} to true # loop {game::*}: # teleport loop-value to #endroit où le jeu commence else: delete {game.timer} J'ai ajouté quelques options : - quand un joueur rejoint quand le jeu a commencé il se fait kick - quand un joueur rejoint quand la partie est pleine il se fait kick - l'option first_timer en haut c'est le temps en secondes avant que le jeu commence quand le nombre minimum de joueurs est atteint, et second_timer c'est le temps en secondes avant que le jeu commence quand le nombre maximum de joueur est atteint Faudra delete {game.start} quand la partie sera terminée Si tu veux des précisions ou autres dis moi
    1 point
  12. GG mec: (Tu n'avais juste à changer deux ou trois choses) 1 - https://skript-mc.fr/forum/resources/zeymod.1249/ 2 - https://skript-mc.fr/forum/resources/b-a-c-modération.1577/ 3 - https://skript-mc.fr/forum/resources/veriftool-1-0.1027/
    1 point
  13. Voilà ton code (Libre à toi de changer les messages, j'ai seulement pris mon modèle de syntaxe personnalisé), avant de l'utiliser télécharge le plugin Vault (https://www.spigotmc.org/resources/vault.34315/) selon la version de ton serveur. Sinon ce skript sera useless (sauf pour les menus). En espérant avoir répond à tes attentes ! :3 [spoiler=Code] command /boutique [<text>]: aliases: /shop trigger: if arg 1 is not set: wait 2 ticks open chest with 3 rows named "&bBoutique" to player wait 2 ticks format slot 10 of player with diamond helmet named "&bGrade Eclaireur" with lore "||&8&nAvantages:||&7- Accès au kit Eclaireur||&7- Accès à un home||||&7Prix: &b25 000 000$||||&8» &bCliquez pour acheter." to close then run [make console execute command "/achat Eclaireur"] format slot 12 of player with diamond chestplate named "&bGrade Chasseur" with lore "||&8&nAvantages:||&7- Accès au kit Chasseur||&7- Accès au kit Eclaireur||&7- Accès à un home||||&7Prix: &b50 000 000$||||&8» &bCliquez pour acheter." to close then run [make console execute command "/achat Chasseur"] format slot 14 of player with diamond leggings named "&bGrade Artisan" with lore "||&8&nAvantages:||&7- Accès au kit Artisan||&7- Accès au kit Chasseur||&7- Accès au kit Eclaireur||&7- Accès à un home||||&7Prix: &b75 000 000$||||&8» &bCliquez pour acheter." to close then run [make console execute command "/achat Artisan"] format slot 16 of player with diamond boots named "&bGrade Explorateur" with lore "||&8&nAvantages:||&7- Accès au kit Explorateur||&7- Accès au kit Artisan||&7- Accès au kit Chasseur||&7- Accès au kit Eclaireur||&7- Accès à un home||||&7Prix: &b100 000 000$||||&8» &bCliquez pour acheter." to close then run [make console execute command "/achat Explorateur"] command /achat [<text>]: trigger: if arg 1 is "Eclaireur": if player's balance is greater than 24999999: remove 25000000 from player's balance broadcast "&7[&a&nAskyblock&7] &b%player% &7a acheté le grade &bEclaireur &7!" make console execute command "/pex user %player% group set Eclaireur" else: send "&7[&a&nAskyblock&7] &cVous n'avez pas assez de monnaie !" to player if arg 1 is "Chasseur": if player's balance is greater than 44999999: remove 50000000 from player's balance broadcast "&7[&a&nAskyblock&7] &b%player% &7a acheté le grade &bChasseur &7!" make console execute command "/pex user %player% group set Chasseur" else: send "&7[&a&nAskyblock&7] &cVous n'avez pas assez de monnaie !" to player if arg 1 is "Artisan": if player's balance is greater than 74999999: remove 75000000 from player's balance broadcast "&7[&a&nAskyblock&7] &b%player% &7a acheté le grade &bArtisan&7!" make console execute command "/pex user %player% group set Artisan" else: send "&7[&a&nAskyblock&7] &cVous n'avez pas assez de monnaie !" to player if arg 1 is "Explorateur": if player's balance is greater than 99999999: remove 10000000 from player's balance broadcast "&7[&a&nAskyblock&7] &b%player% &7a acheté le grade &bExplorateur&7!" make console execute command "/pex user %player% group set Explorateur" else: send "&7[&a&nAskyblock&7] &cVous n'avez pas assez de monnaie !" to player command /menu: trigger: wait 2 ticks open chest with 4 rows named "&8Menu principal" to player wait 2 ticks format slot 10 of player with bed item named "&bSpawn" to close then run [make player execute command "/spawn"] format slot 13 of player with grass named "&bIle" to close then run [make player execute command "/is"] format slot 16 of player with gold ingot named "&bBoutique" to close then run [make player execute command "/boutique"] format slot 31 of player with bedrock named "&bUpGrade" to close then run [make player execute command "/upgrade"] command /upgrade [<text>]: trigger: if arg 1 is not set: set player's balance to 25 wait 2 ticks open chest with 3 rows named "&8UpGrade" to player wait 2 ticks format slot 10 of player with grass named "&b+50 blocs" with lore "&7Prix: &b50 000 000$||||&8» &bCliquez pour acheter." to close then run [make player execute command "/upgrade 50"] format slot 13 of player with grass named "&b+100 blocs" with lore "&7Prix: &b100 000 000$||||&8» &bCliquez pour acheter." to close then run [make player execute command "/upgrade 100"] format slot 16 of player with grass named "&b+150 blocs" with lore "&7Prix: &b150 000 000$||||&8» &bCliquez pour acheter." to close then run [make player execute command "/upgrade 150"] if arg 1 is "50": if player's balance is greater than 44999999: remove 50000000 from player's balance make console execute command "/asadmin addrange +50 %player%" broadcast "&7[&a&nAskyblock&7]&a %player% a acheté +50 blocs dans /upgrade" if arg 1 is "100": if player's balance is greater than 99999999: remove 100000000 from player's balance make console execute command "/asadmin addrange +100 %player%" broadcast "&7[&a&nAskyblock&7]&a %player% a acheté +100 blocs dans /upgrade" if arg 1 is "150": if player's balance is greater than 144999999: remove 150000000 from player's balance make console execute command "/asadmin addrange +150 %player%" broadcast "&7[&a&nAskyblock&7]&a %player% a acheté +150 blocs dans /upgrade"
    1 point
  14. https://skript-mc.fr/forum/resources/abansecurity-menugui-de-modération.1226/ https://skript-mc.fr/forum/resources/playerslogs.1208/ https://skript-mc.fr/forum/resources/skript-de-sanction.1551/ Le reste tu chercheras. Pas de recherches effectuées ! + double posts (ne t’inquiète pas je te surveille)
    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.