Aller au contenu

Messages recommandés

Posté(e)

Je mett en public mon skript de statistique, avec plusieur solutions pour configurer

#
# Config
#
options:
   stats: map #map / menu / chat
   couleur: §3
#
# Fin Config
#
On join:
   teleport player to {lobby}
   if {kill.%player%} is not set:
       set {kill.%player%} to 0
   if {death.%player%} is not set:
       set {death.%player%} to 0
   if {streak.%player%} is not set:
       set {streak.%player%} to 0
On death:
   add 1 to {death.%victim%}
   add 1 to {kill.%attacker%}
   add 1 to {streak.%attacker%}
   set {streak.%victim%} to 0   
command /stats [<text>]:
   trigger:
       if argument is not set:
           if {@stats} is "menu":
               play raw sound "random.click" at player with pitch 1 volume 10
               open chest with 6 row named "%{@couleur}%Vos Stats"  to player
               wait 1 ticks
               format slot 10 of player with iron sword named "%{@couleur}%Kill:&7 %{kill.%player%}%" to be unstealable
               format slot 16 of player with wither skeleton head named "%{@couleur}%Death:&7 %{death.%player%}%" to be unstealable
               format slot 22 of player with nether star named "%{@couleur}%KillStreak:&7 %{streak.%player%}%" to be unstealable
               format slot 31 of player with paper named "%{@couleur}%Ratio:&7 %{kill.%player%} / {death.%player%}%" to be unstealable
           if {@stats} is "chat":
               send "&8------[ %{@couleur}%Vos Stats &8]------"
               send "%{@couleur}%Kill:&7 %{kill.%player%}%"
               send "%{@couleur}%Death:&7 %{death.%player%}%"
               send "%{@couleur}%KillStreak:&7 %{streak.%player%}%"
               send "%{@couleur}%Ratio:&7 %{kill.%player%} / {death.%player%}%"
           if {@stats} is "map":
               overwrite map 0
               wait 1 ticks
               set {_img} to image from "http://icons.iconarchive.com/icons/chrisl21/minecraft/128/Diamond-Sword-icon.png"
               draw image {_img} on map 0
               draw "Vos stats" on map 0 starting from 20, 2
               draw "-Kill: %{kill.%player%}%" on map 0 starting from 2, 12
               draw "-Death: %{death.%player%}%" on map 0 starting from 2, 22
               draw "-KillStreak: %{streak.%player%}%" on map 0 starting from 2, 32
               draw "-Ratio: %{kill.%player%} / {death.%player%}%" on map 0 starting from 2, 42
               set {_map} to map:0
               wait 1 ticks
               add {_map} to player
       else:
           if {kill.%arg%} is set:
               if {@stats} is "menu":
                   play raw sound "random.click" at player with pitch 1 volume 10
                   open chest with 6 row named "%{@couleur}%Stats de %arg%"  to player
                   wait 1 ticks
                   format slot 10 of player with iron sword named "%{@couleur}%Kill:&7 %{kill.%player%}%" to be unstealable
                   format slot 16 of player with wither skeleton head named "%{@couleur}%Death:&7 %{death.%player%}%" to be unstealable
                   format slot 22 of player with nether star named "%{@couleur}%KillStreak:&7 %{streak.%player%}%" to be unstealable
                   format slot 31 of player with paper named "%{@couleur}%Ratio:&7 %{kill.%player%} / {death.%player%}%" to be unstealable
               if {@stats} is "chat":
                   send "&8------[ %{@couleur}%Stats de %arg% &8]------"
                   send "%{@couleur}%Kill:&7 %{kill.%arg%}%"
                   send "%{@couleur}%Death:&7 %{death.%arg%}%"
                   send "%{@couleur}%KillStreak:&7 %{streak.%arg%}%"
                   send "%{@couleur}%Ratio:&7 %{kill.%arg%} / {death.%arg%}%"
               if {@stats} is "map":
                   overwrite map 0
                   wait 1 ticks
                   set {_img} to image from "http://icons.iconarchive.com/icons/chrisl21/minecraft/128/Diamond-Sword-icon.png"
                   draw image {_img} on map 0
                   draw "Stats %arg%" on map 0 starting from 20, 2
                   draw "-Kill: %{kill.%arg%}%" on map 0 starting from 2, 12
                   draw "-Death: %{death.%arg%}%" on map 0 starting from 2, 22
                   draw "-KillStreak: %{streak.%arg%}%" on map 0 starting from 2, 32
                   draw "-Ratio: %{kill.%arg%} / {death.%arg%}%" on map 0 starting from 2, 42
                   set {_map} to map:0
                   add {_map} to player
           else:
               send "{@prefix} &cCe joueur n'existe pas"

 

stats33.png

stats1.png

stats2.png

  • J'aime 3
Posté(e)

heu pour la map,

tu édit toujours la map " 0 (zero) "

du coup chaque joueur a sa propre map ?

ou sa génère une map différente a chaque joueur ?

 

je serais tenter de dire que chaque joueur possède la même map si il la pose dans un item frame non ?

Posté(e)

sinon ont est bien d'accord sur le fait que tous le monde génère la même map ?

et sue si pnt veut une map pour chaque joueur, il fait incrémenter l'id de la map ?

 

je te demande pas de le faire ;) mais c'est pour que ce soit claire pour ceux qui voudrais utiliser ton script et qu'il ce rendent compte de quelque problème si c'est dans un item frame ;)

Posté(e)

Salut pourrais tu faire une versions avec juste les stats affiché sur la map stp ? et l'image de la map et t'elle customisable si oui qu'elle sont les critères .

Posté(e)
Salut pourrais tu faire une versions avec juste les stats affiché sur la map stp ? et l'image de la map et t'elle customisable si oui qu'elle sont les critères .

Il suffi de trouver une umage 128x128 pour le background et changer l''url

Posté(e)
Il suffi de trouver une umage 128x128 pour le background et changer l''url

Très bien et pour qu'il n'y ais que l'affichage des stats par une map comment fait-ont ?

×
×
  • 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.