Catatomik Posté(e) le 10 décembre 2016 Posté(e) le 10 décembre 2016 Bonsoir, Je viens ici demander un skript (ATTENTION: je sais qu'il en existe déjà (des skripts de report) mais j'en voudrais un avec les particularités qui suivent !). Version de minecraft: 1.8 Skript : 2.2 Pour les addons: j'en ai déjà pas mal, mais signalez si possible lesquels sont utilisés pour le skript. Type de skript : Un skript de report pour la modération (pour le Cheat et le chat (insultes, etc..)) Description du skript: Skript pour report, utilisable par les joueurs (commande /report <joueur>, avec un GUI qui s'ouvre pour demander le motif, etc..) et aussi pas le staff (commande /reportlist, avec un GUI qui s'ouvre et qui affiche la liste des joueurs qui ont étés report, et quand on clique sur leur tête on peut décider de traiter le report ou ban, mute.. quand un joueur est report, une notification (message) est envoyée aux membres du staff connectés, et lors de la connexion d'un membre du staff une notification est envoyée avec le nombre de reports à traiter. Voilà bien sûr si vous trouvez des ajouts intéressants à faire je suis d'accord, mais demandez avant :) Merci d'avance !
Catatomik Posté(e) le 10 décembre 2016 Auteur Posté(e) le 10 décembre 2016 Je te fait ca. Merci bien ! J'ai hâte de voir ça :)
iLaZz Posté(e) le 10 décembre 2016 Posté(e) le 10 décembre 2016 Je peux ajouter dans le menu gui pour le /report le nombre de report que le joueur a fais ? Pourquoi pas. J'ai quelques idées aurais-tu un ts pour t'expliquer car à l'écrit je ne suis pas très bon..
Catatomik Posté(e) le 10 décembre 2016 Auteur Posté(e) le 10 décembre 2016 Je peux ajouter dans le menu gui pour le /report le nombre de report que le joueur a fais ? Pourquoi pas. Euh non je ne vois pas trop l'utilité :/ Go regarder tes MP :)
iLaZz Posté(e) le 10 décembre 2016 Posté(e) le 10 décembre 2016 Euh non je ne vois pas trop l'utilité :/ Go regarder tes MP :) Regardes aussi tes mps.
iLaZz Posté(e) le 10 décembre 2016 Posté(e) le 10 décembre 2016 #ADDON: SkQuery, SkRayfall #Comme tu l'as demandé un '/report' ainsi qu'un gui avec toutes les reports. options: delay: 30 # en secondes, tu peux le changer à ta guise # supprimer le delay 'delay: 0' perm: report.see command /report [<player>]: trigger: if {cooldown.%player%} is not set: if arg 1 is not set: send "&c[Report] Vous devez mettre un joueur tel que '/report <player>' afin que la commande s'éxécute." to player else: set {cooldown.%player%} to true open chest with 5 rows named "&bReport menu" to player format slot 10 of player with paper named "&cAutoclick" to close then run [make console execute command "/§reportsend %arg 1% Autoclick"] format slot 11 of player with paper named "&cKillAura" to close then run [make console execute command "/§reportsend %arg 1% KillAura"] format slot 12 of player with paper named "&cForceField" to close then run [make console execute command "/§reportsend %arg 1% ForceField"] format slot 13 of player with paper named "&cFly" to close then run [make console execute command "/§reportsend %arg 1% Fly"] format slot 14 of player with paper named "&cClicAimbot" to close then run [make console execute command "/§reportsend %arg 1% ClicAimbot"] format slot 15 of player with paper named "&cBowAimbot" to close then run [make console execute command "/§reportsend %arg 1% BowAimbot"] wait {@delay} seconds clear {cooldown.%player%} else: stop command /§reportsend <player> <text>: executable by: players and console trigger: set {raison.%arg 1%} to arg 2 add arg 1 to {reportlist::*} loop all players: loop-player has permission "{@perm}": send "&cReport) &7Le joueur %arg 1% a été report pour %arg 2%" to loop-player command /reports: permission: mod trigger: wait 3 ticks open chest with 6 rows named "Repertoire de report" to player wait 3 ticks set {_slot} to 0 set {_size} to size of {reportlist::*} loop {reportlist::*}: set {_l} to loop-value evaluate "format slot {_slot} of player with skull of {_l} named ""&6%{_l}%"" with lore ""&7%{raison.%{_l}%}%"" to close then run [make player execute command ""/reportoptions %{_l}%""]" add 1 to {_slot} command /reportreset: permission: admin trigger: clear {reportlist::*} command /reportoptions <player>: permission: mod trigger: wait 3 ticks open chest with 5 rows named "&6Menu des taches" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 9 loop 3 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 9 to {g} set {g} to 17 loop 3 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 9 to {g} set {g} to 36 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with skull of arg 1 named "&3%arg 1%" with lore "&7%{raison.%arg 1%}%" to be unstealable format slot 12 of player with 101 named "&cBan" to close then run [make player execute command "/menuban %arg 1%"] format slot 13 of player with 166 named "&cWarn" to close then run [make player execute command "/warn %arg 1% %{raison.%arg 1%}%"] format slot 14 of player with cobweb named "&cMute" to close then run [make player execute command "/menumute %arg 1%"] format slot 19 of player with sugar named "&cRetirer ce report" to close then run [make player execute command "/reportdelete %arg 1%"] format slot 34 of player with arrow named "&cRetour" to close then run [make player execute command "/reports"] command /reportdelete <player>: permission: mod trigger: remove arg 1 from {reportlist::*} command /menuban <player>: permission: mod trigger: wait 3 ticks open chest with 3 rows named "&cChoix du temps de ban" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 8 format slot 9 of player with 160:8 named "&a" to be unstealable format slot 17 of player with 160:8 named "&a" to be unstealable set {g} to 18 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with 101 named "&cBan ->" to close then run [make player execute command "/reports"] format slot 12 of player with 38:6 named "&c15 jours" to close then run [make player execute command "/tempban %arg 1% 15 days"] format slot 13 of player with 37:0 named "&c30 jours" to close then run [make player execute command "/tempban %arg 1% 30 days"] format slot 14 of player with 38:5 named "&c90 jours" to close then run [make player execute command "/tempban %arg 1% 90 days"] format slot 15 of player with 38:4 named "&c180 jours" to close then run [make player execute command "/tempban %arg 1% 180 days"] format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/ban %arg 1%"] command /menumute <player>: permission: mod trigger: wait 3 ticks open chest with 3 rows named "&cChoix du temps de mute" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 8 format slot 9 of player with 160:8 named "&a" to be unstealable format slot 17 of player with 160:8 named "&a" to be unstealable set {g} to 18 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with cobweb named "&cMute ->" to close then run [make player execute command "/reports"] format slot 12 of player with 38:6 named "&c1 heures" to close then run [make player execute command "/mute %arg 1% 1h %{raison.%arg 1%}%"] format slot 13 of player with 37:0 named "&c6 heures" to close then run [make player execute command "/mute %arg 1% 6h days %{raison.%arg 1%}%"] format slot 14 of player with 38:5 named "&c1 jour" to close then run [make player execute command "/mute %arg 1% 1d %{raison.%arg 1%}%"] format slot 15 of player with 38:4 named "&c1 semaine" to close then run [make player execute command "/mute %arg 1% 1w %{raison.%arg 1%}%"] format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/mute %arg 1%"] on inventory close: inventory name of current inventory of player is "&bReport menu": send "&6Merci de votre report, le staff a recue une alerte et va s'occuper de cela." to player
Catatomik Posté(e) le 10 décembre 2016 Auteur Posté(e) le 10 décembre 2016 #ADDON: SkQuery, SkRayfall #Comme tu l'as demandé un '/report' ainsi qu'un gui avec toutes les reports. options: delay: 30 # en secondes, tu peux le changer à ta guise # supprimer le delay 'delay: 0' perm: report.see command /report [<player>]: trigger: if {cooldown.%player%} is not set: if arg 1 is not set: send "&c[Report] Vous devez mettre un joueur tel que '/report <player>' afin que la commande s'éxécute." to player else: set {cooldown.%player%} to true open chest with 5 rows named "&bReport menu" to player format slot 10 of player with paper named "&cAutoclick" to close then run [make console execute command "/§reportsend %arg 1% Autoclick"] format slot 11 of player with paper named "&cKillAura" to close then run [make console execute command "/§reportsend %arg 1% KillAura"] format slot 12 of player with paper named "&cForceField" to close then run [make console execute command "/§reportsend %arg 1% ForceField"] format slot 13 of player with paper named "&cFly" to close then run [make console execute command "/§reportsend %arg 1% Fly"] format slot 14 of player with paper named "&cClicAimbot" to close then run [make console execute command "/§reportsend %arg 1% ClicAimbot"] format slot 15 of player with paper named "&cBowAimbot" to close then run [make console execute command "/§reportsend %arg 1% BowAimbot"] wait {@delay} seconds clear {cooldown.%player%} else: stop command /§reportsend <player> <text>: executable by: players and console trigger: set {raison.%arg 1%} to arg 2 add arg 1 to {reportlist::*} loop all players: loop-player has permission "{@perm}": send "&cReport) &7Le joueur %arg 1% a été report pour %arg 2%" to loop-player command /reports: permission: mod trigger: wait 3 ticks open chest with 6 rows named "Repertoire de report" to player wait 3 ticks set {_slot} to 0 set {_size} to size of {reportlist::*} loop {reportlist::*}: set {_l} to loop-value evaluate "format slot {_slot} of player with skull of {_l} named ""&6%{_l}%"" with lore ""&7%{raison.%{_l}%}%"" to close then run [make player execute command ""/reportoptions %{_l}%""]" add 1 to {_slot} command /reportreset: permission: admin trigger: clear {reportlist::*} command /reportoptions <player>: permission: mod trigger: wait 3 ticks open chest with 5 rows named "&6Menu des taches" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 9 loop 3 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 9 to {g} set {g} to 17 loop 3 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 9 to {g} set {g} to 36 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with skull of arg 1 named "&3%arg 1%" with lore "&7%{raison.%arg 1%}%" to be unstealable format slot 12 of player with 101 named "&cBan" to close then run [make player execute command "/menuban %arg 1%"] format slot 13 of player with 166 named "&cWarn" to close then run [make player execute command "/warn %arg 1% %{raison.%arg 1%}%"] format slot 14 of player with cobweb named "&cMute" to close then run [make player execute command "/menumute %arg 1%"] format slot 19 of player with sugar named "&cRetirer ce report" to close then run [make player execute command "/reportdelete %arg 1%"] format slot 34 of player with arrow named "&cRetour" to close then run [make player execute command "/reports"] command /reportdelete <player>: permission: mod trigger: remove arg 1 from {reportlist::*} command /menuban <player>: permission: mod trigger: wait 3 ticks open chest with 3 rows named "&cChoix du temps de ban" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 8 format slot 9 of player with 160:8 named "&a" to be unstealable format slot 17 of player with 160:8 named "&a" to be unstealable set {g} to 18 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with 101 named "&cBan ->" to close then run [make player execute command "/reports"] format slot 12 of player with 38:6 named "&c15 jours" to close then run [make player execute command "/tempban %arg 1% 15 days"] format slot 13 of player with 37:0 named "&c30 jours" to close then run [make player execute command "/tempban %arg 1% 30 days"] format slot 14 of player with 38:5 named "&c90 jours" to close then run [make player execute command "/tempban %arg 1% 90 days"] format slot 15 of player with 38:4 named "&c180 jours" to close then run [make player execute command "/tempban %arg 1% 180 days"] format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/ban %arg 1%"] command /menumute <player>: permission: mod trigger: wait 3 ticks open chest with 3 rows named "&cChoix du temps de mute" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 8 format slot 9 of player with 160:8 named "&a" to be unstealable format slot 17 of player with 160:8 named "&a" to be unstealable set {g} to 18 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with cobweb named "&cMute ->" to close then run [make player execute command "/reports"] format slot 12 of player with 38:6 named "&c1 heures" to close then run [make player execute command "/mute %arg 1% 1h %{raison.%arg 1%}%"] format slot 13 of player with 37:0 named "&c6 heures" to close then run [make player execute command "/mute %arg 1% 6h days %{raison.%arg 1%}%"] format slot 14 of player with 38:5 named "&c1 jour" to close then run [make player execute command "/mute %arg 1% 1d %{raison.%arg 1%}%"] format slot 15 of player with 38:4 named "&c1 semaine" to close then run [make player execute command "/mute %arg 1% 1w %{raison.%arg 1%}%"] format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/mute %arg 1%"] on inventory close: inventory name of current inventory of player is "&bReport menu": send "&6Merci de votre report, le staff a recue une alerte et va s'occuper de cela." to player Merci beaucoup, je regarde ça en détail demain ! EDIT: Je fais des corrections et quelques ajouts, je mets ça en dessous. PS: Des fois je fais des trucs qui ne fonctionnent pas, je mets à jour le code régulièrement ! Actuellement, j'essaye d'ajouter le fait que l'on voit qui a report le joueur dans le menu /reports et ailleurs. [spoiler=Code] #Skript de REPORT vers 0.5 options: delay: 30 perm: report.see p: &7[&cREPORT&7] &f #Menu pour choisir la raison du report command /report [<player>]: trigger: if {cooldown.%player%} is not set: if arg 1 is not set: send "&7[&cREPORT&7] &f/report [player]" to player else: set {cooldown.%player%} to true open chest with 5 rows named "{@p}" to player format slot 10 of player with paper named "&cAutoclick" to close then run [make player execute command "/reportsend %arg 1% Autoclick"] format slot 11 of player with paper named "&cKillAura" to close then run [make player execute command "/reportsend %arg 1% KillAura"] format slot 12 of player with paper named "&cForceField" to close then run [make player execute command "/reportsend %arg 1% ForceField"] format slot 13 of player with paper named "&cFly" to close then run [make player execute command "/reportsend %arg 1% Fly"] format slot 14 of player with paper named "&cClicAimbot" to close then run [make player execute command "/reportsend %arg 1% ClicAimbot"] format slot 15 of player with paper named "&cBowAimbot" to close then run [make player execute command "/reportsend %arg 1% BowAimbot"] wait {@delay} seconds clear {cooldown.%player%} else: stop #Commande de report command /reportsend <player> <text>: executable by: players and player trigger: set {raison.%arg 1%} to arg 2 set {reporter.%arg 1%} to player add arg 1 to {reportlist::*} send "&6Le report a bien été enregistré, le staff va traiter ta demande !" loop all players: loop-player has permission "{@perm}": send "{@p}&fLe joueur &c%arg 1% &fa été report pour &c%arg 2% &fpar &c%player%" to loop-player #Voir les reports command /reports: permission: mod trigger: wait 3 ticks open chest with 6 rows named "{@p}Admin list" to player wait 3 ticks set {_slot} to 0 set {_size} to size of {reportlist::*} loop {reportlist::*}: set {_l} to loop-value evaluate "format slot {_slot} of player with skull of {_l} named ""&6%{_l}%"" with lore ""&c&l%{raison.%{_l}%}% &7report par &c&o%{reporter.%{_1}%}%"" to close then run [make player execute command ""/reportoptions %{_l}%""]" add 1 to {_slot} #Commande de reset des reports command /reportreset: permission: report.admin trigger: clear {reportlist::*} send "{@p}&fLes reports ont bien étés reset" #Menu du choix de la sentence command /reportoptions <player>: permission: mod trigger: wait 3 ticks open chest with 5 rows named "{@p}Choisir peine" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 9 loop 3 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 9 to {g} set {g} to 17 loop 3 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 9 to {g} set {g} to 36 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with skull of arg 1 named "&6%arg 1%" with lore "&c&l%{raison.%arg 1%}%" to be unstealable format slot 12 of player with 101 named "&cBan" to close then run [make player execute command "/menuban %arg 1%"] format slot 13 of player with 166 named "&eWarn" to close then run [make player execute command "/warn %arg 1% %{raison.%arg 1%}%"] format slot 14 of player with cobweb named "&aMute" to close then run [make player execute command "/menumute %arg 1%"] format slot 19 of player with sugar named "&fRetirer ce report" to close then run [make player execute command "/reportdelete %arg 1%"] format slot 34 of player with arrow named "&9Retour" to close then run [make player execute command "/reports"] #Commande de suppression du report command /reportdelete <player>: permission: mod trigger: remove arg 1 from {reportlist::*} #Menu choix du temps de ban command /menuban <player>: permission: mod trigger: wait 3 ticks open chest with 3 rows named "&cChoix du temps de ban" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 8 format slot 9 of player with 160:8 named "&a" to be unstealable format slot 17 of player with 160:8 named "&a" to be unstealable set {g} to 18 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with 101 named "&cBan ->" to be unstealable format slot 12 of player with 38:6 named "&c15 jours" to close then run [make player execute command "/tempban %arg 1% 15days"] format slot 13 of player with 37:0 named "&c30 jours" to close then run [make player execute command "/tempban %arg 1% 30days"] format slot 14 of player with 38:5 named "&c90 jours" to close then run [make player execute command "/tempban %arg 1% 90days"] format slot 15 of player with 38:4 named "&c180 jours" to close then run [make player execute command "/tempban %arg 1% 180days"] format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/ban %arg 1%"] #Menu choix du temps de mute command /menumute <player>: permission: mod trigger: wait 3 ticks open chest with 3 rows named "&cChoix du temps de mute" to player wait 3 ticks set {g} to 0 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} set {g} to 8 format slot 9 of player with 160:8 named "&a" to be unstealable format slot 17 of player with 160:8 named "&a" to be unstealable set {g} to 18 loop 9 times: format slot {g} of player with 160:8 named "&a" to be unstealable add 1 to {g} format slot 10 of player with cobweb named "&cMute ->" to be unstealable format slot 12 of player with 38:6 named "&c1 heures" to close then run [make player execute command "/mute %arg 1% 1h %{raison.%arg 1%}%"] format slot 13 of player with 37:0 named "&c6 heures" to close then run [make player execute command "/mute %arg 1% 6h days %{raison.%arg 1%}%"] format slot 14 of player with 38:5 named "&c1 jour" to close then run [make player execute command "/mute %arg 1% 1d %{raison.%arg 1%}%"] format slot 15 of player with 38:4 named "&c1 semaine" to close then run [make player execute command "/mute %arg 1% 1w %{raison.%arg 1%}%"] format slot 16 of player with 38:0 named "&cA vie" to close then run [make player execute command "/mute %arg 1%"]
Catatomik Posté(e) le 15 décembre 2016 Auteur Posté(e) le 15 décembre 2016 Tu a skype ? Oui, mais c'est bon depuis un petit moment j'avais oublié de passer en résolu ^^ Merci quand même.
Messages recommandés