Aller au contenu

[Level Kill] Skript de level kill pour mon serveur PvpBox


Messages recommandés

Posté(e)

Version minecraft: 1.8.

 

Bonsoir,j'aimerais quand les joueurs font 1 kill sa leurs donnent entre 1 et 3 xp.

Puis quand on atteint 100 d'xp ont atteint le niveau 1 et sa nous remet l'xp a 0 quand on atteint 200 sa nous met level 2

et quand on fais /stats

sa nous met une barre comme sa : -----------

et elle progresse selon notre xp et quand ont est au bout on passe de niveau, j'aimerais également que le level du joueur sois afficher juste avant sont grade exemple:

[Level:43] [VIP] BiMoS :

 

J'ai déjà vu cela dans plusieur serveur.

Pour information ceci est destinée à mon serveur pvp-box.

 

Merci d'avance si vous avez besoin de plus d'explication demander moi :p

Posté(e)

on death of player:
   if attacker is a player:
       set level progress of the attacker to 1
       if attacker's level is egual or greater than 100:
           send "Level up !" to attacker
           add 1 to {level.%attacker%}
           reduce the attacker's level by 100





command /stats:
   trigger:
       message "-----------------------------------"
       message "Vous étes level: %{level.%player%}%"
       message "-----------------------------------"

 

Pas test sa devrait marcher

pour le chat sa risque de pas étre compatible avec groupmanager si tu utilise

Posté(e)

Ont ne peux pas faire une variable que je mais ensuite dans essentials chat ?

Comme celle du Skyblock qui est {ISLAND_LEVEL} et qui afiche le level de l'île du joueur

 

Merci à toi :)

Posté(e)
Ont ne peux pas faire une variable que je mais ensuite dans essentials chat ?

Comme celle du Skyblock qui est {ISLAND_LEVEL} et qui afiche le level de l'île du joueur

 

Merci à toi :)

Expression :

 

island level of player

 

Avec WolvSK.

Posté(e)

Voilà mon système hyper complexe mais sûr pour avoir un vrai système de niveau intelligent.

 

Du niveau 0 à 1: Il faut 20 kills.

Entre le niveau 0 et 10 il faut 20 kills pour passer un niveau.

Entre le niveau 10 et 20 il faut 30 kills pour passer un niveau.

Entre le niveau 20 et 30 il faut 40 kills pour passer un niveau.

Ect ...

 

J'ai ajouté un système de killstreak avec des bonus.

 

Tu auras besoin de l'addon SkQuery et SkRayFall.

 

Voici le skript badass:

[spoiler=Le skript]

on death of player:
   clear drops
   attacker is a player:
       victim is a player:
           set {killstreak.%uuid of victim%} to 0
           if {level.%uuid of attacker%} is 0:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 1:
                   set {level.%uuid of attacker%} to 1
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 1&7."
                   send attacker title "&8[&eNiveau 1&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 1:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 2:
                   set {level.%uuid of attacker%} to 2
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 2&7."
                   send attacker title "&8[&eNiveau 2&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 2:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 3:
                   set {level.%uuid of attacker%} to 3
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 3&7."
                   send attacker title "&8[&eNiveau 3&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 3:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 4:
                   set {level.%uuid of attacker%} to 4
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 4&7."
                   send attacker title "&8[&eNiveau 4&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 4:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 5:
                   set {level.%uuid of attacker%} to 5
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 5&7."
                   send attacker title "&8[&eNiveau 5&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 5:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 6:
                   set {level.%uuid of attacker%} to 6
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 6&7."
                   send attacker title "&8[&eNiveau 6&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 6:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 7:
                   set {level.%uuid of attacker%} to 7
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 7&7."
                   send attacker title "&8[&eNiveau 7&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 7:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 8:
                   set {level.%uuid of attacker%} to 8
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 8&7."
                   send attacker title "&8[&eNiveau 8&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 8:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 9:
                   set {level.%uuid of attacker%} to 9
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 9&7."
                   send attacker title "&8[&eNiveau 9&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 9:
               add 0.05 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.05
               if attacker's level is 10:
                   set {level.%uuid of attacker%} to 10
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 10&7."
                   send attacker title "&8[&eNiveau 10&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 10:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 11:
                   set {level.%uuid of attacker%} to 11
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 11&7."
                   send attacker title "&8[&eNiveau 11&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 11:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 12:
                   set {level.%uuid of attacker%} to 12
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 12&7."
                   send attacker title "&8[&eNiveau 12&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 12:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 13:
                   set {level.%uuid of attacker%} to 13
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 13&7."
                   send attacker title "&8[&eNiveau 13&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 13:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 14:
                   set {level.%uuid of attacker%} to 14
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 14&7."
                   send attacker title "&8[&eNiveau 14&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 14:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 15:
                   set {level.%uuid of attacker%} to 15
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 15&7."
                   send attacker title "&8[&eNiveau 15&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 15:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 16:
                   set {level.%uuid of attacker%} to 16
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 16&7."
                   send attacker title "&8[&eNiveau 16&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 16:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 17:
                   set {level.%uuid of attacker%} to 17
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 17&7."
                   send attacker title "&8[&eNiveau 17&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 17:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 18:
                   set {level.%uuid of attacker%} to 18
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 18&7."
                   send attacker title "&8[&eNiveau 18&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 18:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 19:
                   set {level.%uuid of attacker%} to 19
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 19&7."
                   send attacker title "&8[&eNiveau 19&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 19:
               add 0.033 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.033
               if attacker's level is 20:
                   set {level.%uuid of attacker%} to 20
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 20&7."
                   send attacker title "&8[&eNiveau 20&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 20:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 21:
                   set {level.%uuid of attacker%} to 21
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 21&7."
                   send attacker title "&8[&eNiveau 21&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 21:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 22:
                   set {level.%uuid of attacker%} to 22
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 22&7."
                   send attacker title "&8[&eNiveau 22&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 22:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 23:
                   set {level.%uuid of attacker%} to 23
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 23&7."
                   send attacker title "&8[&eNiveau 23&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 23:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 24:
                   set {level.%uuid of attacker%} to 24
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 24&7."
                   send attacker title "&8[&eNiveau 24&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 24:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 25:
                   set {level.%uuid of attacker%} to 25
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 25&7."
                   send attacker title "&8[&eNiveau 25&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 25:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 26:
                   set {level.%uuid of attacker%} to 26
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 26&7."
                   send attacker title "&8[&eNiveau 26&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 26:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 27:
                   set {level.%uuid of attacker%} to 27
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 27&7."
                   send attacker title "&8[&eNiveau 27&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 27:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 28:
                   set {level.%uuid of attacker%} to 28
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 28&7."
                   send attacker title "&8[&eNiveau 28&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 28:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 29:
                   set {level.%uuid of attacker%} to 29
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 29&7."
                   send attacker title "&8[&eNiveau 29&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 29:
               add 0.028 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.028
               if attacker's level is 30:
                   set {level.%uuid of attacker%} to 30
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 30&7."
                   send attacker title "&8[&eNiveau 30&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 30:
               add 0.020 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.020
               if attacker's level is 31:
                   set {level.%uuid of attacker%} to 31
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 31&7."
                   send attacker title "&8[&eNiveau 31&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 31:
               add 0.020 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.020
               if attacker's level is 32:
                   set {level.%uuid of attacker%} to 32
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 32&7."
                   send attacker title "&8[&eNiveau 32&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 32:
               add 0.020 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.020
               if attacker's level is 33:
                   set {level.%uuid of attacker%} to 33
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 33&7."
                   send attacker title "&8[&eNiveau 33&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 33:
               add 0.020 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.020
               if attacker's level is 34:
                   set {level.%uuid of attacker%} to 34
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 34&7."
                   send attacker title "&8[&eNiveau 34&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 34:
               add 0.020 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.020
               if attacker's level is 35:
                   set {level.%uuid of attacker%} to 35
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 35&7."
                   send attacker title "&8[&eNiveau 35&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   play level up at player with pitch 1
                   stop
           if {level.%uuid of attacker%} is 35:
               add 0.020 to {xp.%uuid of attacker%}
               increase the attacker's level progress by 0.020
               if attacker's level is 36:
                   set {level.%uuid of attacker%} to 36
                   set {xp.%uuid of attacker%} to 0
                   broadcast "&8» &f%attacker% &7vient d'être promu &aniveau 36&7."
                   send attacker title "&8[&eNiveau 36&8]" with subtitle "&7Félicitations %attacker% !" for 2 seconds
                   stop
           if {killstreak.%uuid of attacker%} is equal to 3:
               apply potion of speed of tier 2 to the attacker for 30 seconds
               broadcast "&8» &c%attacker% &7à un killstreak de 3."
               play raw sound "note.pling" at player with pitch 1 volume 10
               wait 2 seconds
               send attacker title "&8[&eKillstreak&8]" with subtitle "&7[&e+Speed II&7] &a(30s)" for 2 seconds
           if {killstreak.%uuid of attacker%} is equal to 5:
               apply potion of speed of tier 2 to the attacker for 30 seconds
               broadcast "&8» &c%attacker% &7à un killstreak de 5."
               wait 2 seconds
               send attacker title "&8[&eKillstreak&8]" with subtitle "&7[&e+Speed II&7] &a(30s) &7[&e+ Missiles&7]" for 2 seconds
               heal the attacker
               play raw sound "note.pling" at player with pitch 1 volume 10
           if {killstreak.%uuid of attacker%} is equal to 7:
               apply potion of regeneration of tier 2 to the attacker for 15 seconds
               broadcast "&8» &c%attacker% &7à un killstreak de 7."
               wait 2 seconds
               send attacker title "&8[&eKillstreak&8]" with subtitle "&7[&e+Regen II&7] &a(15s) &7[&e+ Missiles&7]" for 2 seconds
               play raw sound "note.pling" at player with pitch 1 volume 10
           if {killstreak.%uuid of attacker%} is equal to 10:
               apply potion of regeneration of tier 2 to the attacker for 15 seconds
               send attacker title "&8[&eKillstreak&8]" with subtitle "&7[&e+Regen II&7] &a(15s) &7[&e+ Missiles&7]" for 2 seconds
               broadcast "&8» &c%attacker% &7à un killstreak de 10, c'est un carnage !"
               play raw sound "note.pling" at player with pitch 1 volume 10
               wait 2 seconds
               send attacker title "&8[&eKillstreak&8]" with subtitle "&7[&e+Regen II&7] &a(15s)  &7[&e+ Missiles&7]" for 2 seconds
           set death message to "&8» &f%attacker% &6[&c%health of attacker%❤&6] &7a tué &f%victim%"
           send attacker title "&9" with subtitle "&7[&e+10&7]" for 1 second

 

 

 

PS: Si quelqu'un peut me faire une fonction pour pas répeter 30 milles fois le même trucs est prier de se manifester.

Posté(e)

J'ai bien mis les addons mais le skript me met 39 erreurs 'at player with pitch 1' is not abn entity type (level.sk, line 244:play level up at player with pitch 1')

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