NIiZoW Posté(e) le 20 février 2017 Posté(e) le 20 février 2017 Titre du sujet : [scoreBoard] Skript de scoreboard pour un practice. Sujet : Version du Spigot: 1.7.10 / skript : 1.7.10 Type du skript : Skript d'un ScoreBoard Description du script : Bonjour je souhaiterais un skript qui permettrait aux joueurs sur mon Serveur de se connecter et un scoreboard apparait ! Je voudrais que le scoreboard ne soit disponible que dans le monde WORLD est non dans les autre monde. En effet, je voudrais un scoreboard qui affiche dans le monde principal: every 3 seconds: make all players execute command "/scoreboard" (pour raffrachir le scorboard au WORLD) &3 &l Le Nom Du Serveur &f &n-------------------------------------------- &3 Online: tous les joueur sur le serveur &b ping: le ping du joueur &f &n--------------------------------------------- &3 www.LeDomaine.eu Ensuite quand on change de monde (world2), Le scorboard change totalment, &3 &l Le Nom Du Serveur &f &n-------------------------------------------- &3 Opponent: Le joueur enface (si cela est possible) &b Time: Le temps du match &f &n--------------------------------------------- &3 www.LeDomaine.eu ps: (il ne faut pas actualiser le scorboard in-game Dans le World2) EXEMPLE: every 3 seconds: make all players execute command "/scoreboard" il faut Que le temps défile sans exécuter la commande /scoreboard Dès qu'on meure on respawn dans le monde 1/ Donc le scoreboard du monde 1 se remet en jeux ainsi de suite ! Autres précisions : Si il faut télécharger tous les addons pour faire marcher se skript je le ferais! Je Crois avoir tous dit est avoir tous décrit d'une manière Simple est Original ! Cordialement: NIiZoW (Adrien)
GhostKiller76 Posté(e) le 20 février 2017 Posté(e) le 20 février 2017 salut , j'ai commencer ton skript mais je n'ai pas le temps de finir , je laisse la communauté ou toi pour le finir ;) on join: add player to {playerlist::*} On quit: remove player from {playerlist::*} command /scoreboard: trigger: if player is in world "world": wipe player's sidebar set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set score "&3&lOnline &f&l: &e&l%{playerlist::*}%" in sidebar of player to 3 set score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0
NIiZoW Posté(e) le 20 février 2017 Auteur Posté(e) le 20 février 2017 Salut Merci D'avoir poster un skript ! j'ai trouvé des petites erreures et le ping ne marche pas :/ [06:03:48 ERROR]: 'wipe player's sidebar' is not a boolean (yes/no) (stat.sk, line 85: wipe player's sidebar') [06:03:48 ERROR]: A command with the name /scoreboard is already defined in stat.sk (stat.sk, line 93: command /scoreboard:') [06:03:48 INFO]: Loaded 7 scripts with a total of 20 triggers and 21 commands in 0.49 seconds
Joriis Posté(e) le 21 février 2017 Posté(e) le 21 février 2017 Bonsoir, Voici le code: Détails: Le ping et le nombre de connecté s'actualise toute les 10 secondes, tu modifies comme tu veux. Information: Il te faut la version SKRayFall 1.7.4 : https://dev.bukkit.org/projects/skrayfall/files/907996 Version de Skript: 2.2 que tu peux trouver ici: http://www.mediafire.com/file/24y9uwg8nwj551x/skript2.2.jar Ensuite, tu dois supprimer ta commande /scoreboard dans ton Stat.sk et supprimer s'il te plaît ton every 3 seconds , make player execute command /scoreboard. on join: wait 3 seconds make player execute command "/scoreboard" function titleAnim(p: player): wait 10 seconds if {_p} is online: edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: stop wait 10 seconds if {_p} is online: edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: stop wait 1 tick if {_p} is online: titleAnim({_p}) else: stop command /scoreboard: trigger: if player is in world "world": if {sb.%player%} is not set: set {sb.%player%} to 1 set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) else: wipe player's sidebar wait 1 tick clear {sb.%player%} set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) Information: Si tu changes quelques choses (à l'endroit du ping ou du online) tu dois aussi modifier dans la function. Si tu as des questions, n'hésite pas :) Cordialement, Acenox 1
NIiZoW Posté(e) le 21 février 2017 Auteur Posté(e) le 21 février 2017 Bonsoir, Voici le code: Détails: Le ping et le nombre de connecté s'actualise toute les 10 secondes, tu modifies comme tu veux. Information: Il te faut la version SKRayFall 1.7.4 : https://dev.bukkit.org/projects/skrayfall/files/907996 Version de Skript: 2.2 que tu peux trouver ici: http://www.mediafire.com/file/24y9uwg8nwj551x/skript2.2.jar Ensuite, tu dois supprimer ta commande /scoreboard dans ton Stat.sk et supprimer s'il te plaît ton every 3 seconds , make player execute command /scoreboard. on join: wait 3 seconds make player execute command "/scoreboard" function titleAnim(p: player): wait 10 seconds if {_p} is online: edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: stop wait 10 seconds if {_p} is online: edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: stop wait 1 tick if {_p} is online: titleAnim({_p}) else: stop command /scoreboard: trigger: if player is in world "world": if {sb.%player%} is not set: set {sb.%player%} to 1 set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) else: wipe player's sidebar wait 1 tick clear {sb.%player%} set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) Information: Si tu changes quelques choses (à l'endroit du ping ou du online) tu dois aussi modifier dans la function. Si tu as des questions, n'hésite pas :) Cordialement, Acenox Merci bien , Mais ce que je veux aussi c'est un scoreboard qui soit disponnible quand dans un monde est pas un autre
Joriis Posté(e) le 22 février 2017 Posté(e) le 22 février 2017 Merci bien , Mais ce que je veux aussi c'est un scoreboard qui soit disponnible quand dans un monde est pas un autre Ah oui, petit fail, je corrige :) on join: wait 3 seconds make player execute command "/scoreboard" function titleAnim(p: player): wait 10 seconds if {_p} is online: if {_p} is in world "world": edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: wipe {_p}'s sidebar else: stop wait 10 seconds if {_p} is online: if {_p} is in world "world": edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: wipe {_p}'s sidebar else: stop wait 1 tick if {_p} is online: titleAnim({_p}) else: stop command /scoreboard: trigger: if player is in world "world": if {sb.%player%} is not set: set {sb.%player%} to 1 set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) else: wipe player's sidebar wait 1 tick clear {sb.%player%} set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) Cordialement, Acenox
NIiZoW Posté(e) le 22 février 2017 Auteur Posté(e) le 22 février 2017 Le Skript est fais pour 1.8 et non l'1.7 Ah oui, petit fail, je corrige :) on join: wait 3 seconds make player execute command "/scoreboard" function titleAnim(p: player): wait 10 seconds if {_p} is online: if {_p} is in world "world": edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: wipe {_p}'s sidebar else: stop wait 10 seconds if {_p} is online: if {_p} is in world "world": edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: wipe {_p}'s sidebar else: stop wait 1 tick if {_p} is online: titleAnim({_p}) else: stop command /scoreboard: trigger: if player is in world "world": if {sb.%player%} is not set: set {sb.%player%} to 1 set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) else: wipe player's sidebar wait 1 tick clear {sb.%player%} set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) Cordialement, Acenox Ah oui, petit fail, je corrige :) on join: wait 3 seconds make player execute command "/scoreboard" function titleAnim(p: player): wait 10 seconds if {_p} is online: if {_p} is in world "world": edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: wipe {_p}'s sidebar else: stop wait 10 seconds if {_p} is online: if {_p} is in world "world": edit score id "online.%{_p}%" to "&3&lOnline &f&l: &e&l%number of all players%" and 3 edit score id "ping.%{_p}%" to "&b&lPing &f&l: &a&l%{_p}'s ping%" and 2 else: wipe {_p}'s sidebar else: stop wait 1 tick if {_p} is online: titleAnim({_p}) else: stop command /scoreboard: trigger: if player is in world "world": if {sb.%player%} is not set: set {sb.%player%} to 1 set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) else: wipe player's sidebar wait 1 tick clear {sb.%player%} set name of sidebar of player to "&f&l> &6&lTon&b&lServeur &f&l<" set score "&f&m----------------------------" in sidebar of player to 4 set id based score "&3&lOnline &f&l: &e&l%number of all players%" in sidebar of player to 3 with id "online.%player%" set id based score "&b&lPing &f&l: &a&l%player's ping%" in sidebar of player to 2 with id "ping.%player%" set score "&f&m----------------------------" in sidebar of player to 1 set score "&3&lwww.monsiteweb.eu" in sidebar of player to 0 titleAnim(player) Cordialement, Acenox Le skript et fais pour l'1.8 et non l'1.7 donc ne fonctionne pas
Joriis Posté(e) le 22 février 2017 Posté(e) le 22 février 2017 Le Skript est fais pour 1.8 et non l'1.7 Le skript et fais pour l'1.8 et non l'1.7 donc ne fonctionne pas Le skript fonctionne en 1.7 normalement.
Messages recommandés