Aller au contenu

Random

Ancien
  • Compteur de contenus

    1 100
  • Inscription

  • Dernière visite

  • Jours gagnés

    25

Tout ce qui a été posté par Random

  1. Random

    Problème Chat Staff

    Merci, j'avais déjà vu ce code mais je ne l'ai pas retrouvé >< Je l'ai donc adapté à mon skript: Problème: Le joueur qui RECOIT le message le voit bien, mais celui qui l'envoie ne le voit pas toujours. J'ai testé avec deux comptes différents, le premier voit tout (son message et celui de l'autre), et le deuxieme ne voit pas son propre message. La variable indique <none> dans le message. on chat: player has permission "staff.chat": first character of message is "@": loop all players: loop-player has permission "staff.see": cancel event replace first character of message in message with "" send "" to loop-player send "&8[&7StaffChat&8] &f%player% &8: &f&o%subtext of message from characters 1 to (the length of message)%" to loop-player send "" to loop-player play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10
  2. Random

    Problème Chat Staff

    C'est voulu que je n'ai pas mis de else: cancel event, sinon les joueurs n'ayant pas la permission ne pourront pas envoyer de message. Le @<message> pour les joueurs n'ayant pas la permission "staff.chat" doit s'afficher dans le chat comme un message normal Mais là, seul le joueur qui envoie le message avec la permission, et commençant par @ ne le voit pas. (son propre message) Et encore, cela change selon le compte du joueur qui l'envoie... on chat: player has permission "staff.chat": first character of message is "@": loop all players: loop-player has permission "staff.see": cancel event replace first character of message in message with "" send "" to loop-player send "&8[&7StaffChat&8] &f%player% &8: &f&o%message%" to loop-player send "" to loop-player play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10
  3. Random

    AutoRéop

    Random submitted a new resource: [plain]AutoRéop[/plain] - [plain]Skript de réop automatique avec permission[/plain] Read more about this resource...
  4. Random

    Problème Chat Staff

    Bonjour, mon code semble bon, mais lorsque j'envoie un message avec @<mon message>, un 3 s'affiche avant le message, mais seulement pour moi. Les autres voient bien le message. Et quand quelqu'un d'autre envoie un message, je vois soit un 9 avant le message, soit le message ne s'affiche pas... (Les sons se jouent néanmoins) Je ne sais pas ce que je n'ai pas bien fait, merci pour toute aide on chat: player has permission "staff.chat": first character of message is "@": loop all players: loop-player has permission "staff.see": cancel event replace first character of message in message with "" send "" to loop-player send "&8[&7StaffChat&8] &f%player% &8: &f&o%message%" to loop-player send "" to loop-player play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10 wait 1 tick play "ORB_PICKUP" to loop-player at volume 10
  5. Random

    Mod Mode

    command /mod: trigger: player has permission "mod.use": {modmode.%player%} is not set: set {modmode.%player%} to true send "&6Tu as activé ton mod mode !" stop {modmode.%player%} is true: clear {modmode.%player%} send "&6Tu as désactivé ton mod mode !" stop
  6. Random

    on rightclick book = Commande ??

    Si je dis pas de bétises, là ça marchera avec n'importe quel book, sans tenir compte du nom
  7. Random

    on rightclick book = Commande ??

    tu n'as pas mis le name of tool is "&6BuildUHC" exprimé comme une condition.. Rajoute le : et le tab
  8. Random

    Clear effet et inventaire

    Y'a pas les effets dans ton code
  9. Random

    on rightclick book = Commande ??

    ^^ Etant donné que le skript de base ne comporte pas de variables, l'optimiser ne change rien pour un skript de cette taille
  10. (Il m'en veut car j'ai galéré sur un skript qu'il voulait que je lui fasse donc j'ai mis du temps) :$
  11. ^^' Esperons que ton pote ait pensé à limiter l'achat d'une porte à une seule et unique personne
  12. Random

    on rightclick book = Commande ??

    Et le mien a l'avantage de give le book rename :D Nah !
  13. Random

    on rightclick book = Commande ??

    Tien (j'ai testé, fonctionne) : command /uhc-kit: trigger: clear player's inventory set chestplate of player to diamond chestplate of protection 1 set helmet of player to diamond helmet of protection 1 set leggings of player to diamond leggings of protection 1 set boots of player to diamond boots of protection 1 set slot 0 of player to diamond sword of sharpness 1 set slot 1 of player to fishing rod set slot 2 of player to lava bucket set slot 3 of player to water bucket set slot 4 of player to 7 golden apple set slot 5 of player to 3 golden apple named "&6Golden Head" set slot 30 of player to water bucket set slot 34 of player to 64 birch wood planks set slot 6 of player to bow of power 1 set slot 9 of player to 64 arrow set slot 8 of player to 64 steak set slot 33 of player to diamond pickaxe set slot 7 of player to 64 cobblestone set slot 29 of player to lava bucket on right click with book: name of player's tool is "&aKit Build UHC": make player execute command "/uhc-kit" command /givebook: trigger: give 1 book named "&aKit Build UHC" to player
  14. Random

    Clear effet et inventaire

    le S à player's
  15. Mouais. J'ai même pas envie de chercher à finir le skript, je te laisse avec ça
  16. Random

    Rules

    Tu as trouvé ? Comme tu es passé en Résolu ?
  17. Random

    erreur conve grade

    Dans ton send à la dernière ligne, tu n'as pas mis de guillemets ("")
  18. Random

    CPS

    Voili voilou
  19. Si tu as essentials, le /invsee permet ça ^^
  20. Random

    Chat mod

    Poste ton problème sur un nouveau topic Aide
  21. Là ta version de skript est 2.1.2, et non pas 2.2. https://gyazo.com/9803a3023123afb9e4f32b1d3c790331
  22. Random

    Chat mod

    Remplace le %player-loop% par %loop-player% et retente
  23. Random

    Chat mod

    Un screen ?
  24. Random

    Permissions et GUI

    De rien, content de t'avoir aidé :p
  25. Pour les anglophones: (https://dev.bukkit.org/bukkit-plugins/skript/forum/help/79623-how-can-i-do-this/) on place of stone slab: #check if the name of the stone slab is Printer if "%name of player's tool%" contains "Printer": #Adds the location of the placed stone slab to a list variable add location of event-block to {printers::*} #Metadata is basically another type of varable, #like {printers::*} or {printer} #The value Exists is just a way to store infomation, #it is what the {printer} contains set metadata value "Printer" of event-block to "Exists" send "You placed a Printer" on right click on stone slab: set {_metadata} to metadata value "Printer" of event-block #Here we check if the block has a metadata value. #Basically we just read what the variable contains. if "%{_metadata}%" is "Exists": message "Code goes here" #I read though the skript again and found out that you #can put the loop directly inside the event "on skript load" on skript load: #The server loops all the locations where there is a placed #a stone slab named printer loop {printers::*}: #we apply the metadata back to where it was before the restart, #if there still is a stone slab there block at loop-value is stone slab set metadata value "Printer" of block at loop-value to "Exists" #This must be done whenever the server is started because #the metadata is deleted after each restart
×
×
  • 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.