Aller au contenu

Messages recommandés

Posté(e)

Skript: 2.2

mc: 1.9

Description:

Bonjours je souhaiterai un regen de block automatique !

En gros j'aimerai que a chaque block que l'on pose ce block s'enleve au bout de 10 secondes dans le monde NyoFFA ! Et aussi ajouté un système de killstreak !

Exemple de message : &3Nyo&fFFA &6» &eB3nZyh est en KillStreak de 5 kills ! (apres 10 kills, 15 kills...)

Et que les msg se vois que dans le monde NyoFFA !

Les block a regen (cobble et planche de chêne)

Merci ! :D

 

options:
   PrefixFreeForAll: &3Nyo&fFFA &6»
   FreeForAllCarte: NyoFFA

command /ffaadm [<text>] [<text>]:
   trigger:
       if player is op:
           if arg 1 is "set":
               if arg 2 is "ffalobby":
                   set {zone.ffalobby} to player's location
                   send "{@PrefixFreeForAll} &7Tu as set le lobby FreeForAll" to player
                   stop

command /ffa:
   aliases: freeforall
   trigger:
       if player is in world "NyoLobby":
           teleport player to {zone.ffalobby}
           clear the player's inventory
           set player's max health to 10
           heal the player by 10 hearts
           set slot 4 of player to bed named "&c&lRetour au Lobby"
           set player's gamemode to adventure
           send "{@PrefixFreeForAll} &7Tu viens de rejoindre le FFA !" to player
           send player title "&3Nyo&fFFA" with subtitle "&eBonne chance !" for 3 seconds
           stop

on click with bed:
   if name of tool is "&c&lRetour au Lobby":
       if player is in world "{@FreeForAllCarte}":
           execute player command "/lobby"
           clear the player's inventory
           stop

on region enter:
   wait 1 tick
   if "%region at player%" contains "FFAPVP":
       set {damage.ffa.%player%} to true
       heal the player
       wait 2 ticks
       set player's gamemode to survival
       clear the player's inventory
       equip player with an diamond chestplate
       equip player with an diamond leggings
       equip player with an diamond boots
       equip player with an diamond helmet
       set slot 0 of player to diamond sword
       set slot 1 of player to Fishing Rod
       set slot 2 of player to Bow
       set slot 3 of player to 64 oak wood planks
       set slot 4 of player to 64 cobblestone
       set slot 7 of player to 32 steak
       set slot 8 of player to 1 golden apple named "&fFait un kill pour en avoir une autre !"
       set slot 9 of player to 32 arrow
       stop

on damage:
   if victim is in world "{@FreeForAllCarte}":
       if {damage.ffa.%victim%} is true:
           if damage cause is fall:
               cancel event
               set {damage.ffa.%victim%} to false

on rightclick with crafting table:
   if player is in world "{@FreeForAllCarte}":
       if player's gamemode is survival:
           cancel event
           open crafting to player
       else:
           stop

on break:
   if player is in world "{@FreeForAllCarte}":
       if player's gamemode is survival:
           cancel event 
       else:
           stop

on drop:
   if player is in world "{@FreeForAllCarte}":
       wait 1 tick
       clear dropped items       

on pickup:
   if player is in world "{@FreeForAllCarte}":
       if player's gamemode is spectator:
           cancel event

on death:
   if victim is in world "{@FreeForAllCarte}":
       if victim is a player:
           add 1 to {nyocoins.%uuid of attacker%}
           heal victim
           clear drops
           clear the victim's inventory
           set slot 4 of player to bed named "&c&lRetour au Lobby"
           set victim's max health to 10
           set hunger bar to 10
           strike lightning effect at victim
           drop golden apple at location of victim
           drop victim's skull at location of victim
           set victim's gamemode to survival
           wait 5 ticks
           teleport victim to {zone.ffalobby}
           if attacker is a player:
               if victim is a player:
                   send "{@PrefixFreeForAll} &7Vous avez été tué par %attacker% &7!" to victim
                   send "{@PrefixFreeForAll} &7Vous avez tué %victim% &7!" to attacker
                   send "{@PrefixFreeForAll} &7Vous avez gagner 1 &3Nyo&fCoins &7!" to attacker
                   broadcast "{@PrefixFreeForAll} &e%victim% &7à été tué par &6%attacker% &7(&b%attacker's health% &4❤&7)"
           heal attacker

           else:
               broadcast "{@PrefixFreeForAll} &e%victim% &7est mort"

Posté(e)
Pas testé :

 

on place of cobblestone or wood planks:
   wait 10 seconds
   set air to event-block

merci ! Je test ca demain matin ! ^^

Et le reste c'est possible ou pas ? Stp

 

[Edit]

Sa ne marche pas :'c

Posté(e)

Pas testé

on death:
   if damage cause is a player:
       add 1 to {killstreak::%attacker%}
       clear {killstreak::%victim%}
       clear {objectives::%victim%}
       if {killstreak::%attacker%} is 3:
           set {objectives::%attacker%} to 5
           broadcast "&3Nyo&fFFA &6» &eB3nZyh est en KillStreak de 3 kills !"
           stop
       if {killstreak::%attacker%} is equal to {objectives::%attacker%}:
           broadcast "&3Nyo&fFFA &6» &eB3nZyh est en KillStreak de {killstreak::%attacker%} !"
           add 5 to {objectives::%attacker%}
           stop

Posté(e)

Sa ne marche pas :c

En gros j'aimerai que au bout de 5 killstreak, 10 killstreak.. (5, 10, 15, 20, 25, 30)

sa met un msg pour tout le monde dans le monde "NyoFFA"

<le joueur> a fait 5 de killstreak.. (exemple de msg)

Merci ^^

Posté(e)
on death:
   world of victim is "NyoFFA"
   damage cause is a player
   add 1 to {kill.%attacker%}
   if {kill.%victim%} is 5 or 10 or 15 or 20 or 25 or 30 or 35 or 40 or 45 or 50:
       broadcast "&6Le joueur &2%attacker% &6à gacher la serie de &2%victim%&6."
       clear {kill.%victim%}
   if {kill.%attacker%} is 5 or 10 or 15 or 20 or 25 or 30 or 35 or 40 or 45 or 50:
       broadcast "&6Le joueur &2%attacker% &6à fait une série de &2%{kill.%attacker%}%&6 Kills."

Pas tester les textes sont modifiable :)

Posté(e)

options:
   premier_nombre: 3
   intervalle:

on death of player:
   if damage cause is attack:
       if {killstreak::%attacker%} is not set:
           set {killstreak::%attacker%} to 1
       else:
           add 1 to {killstreak::%attacker%}
       clear {killstreak::%victim%}
       clear {objectives::%victim%}
       if {killstreak::%attacker%} is {@premier_nombre}:
           set {objectives::%attacker%} to {@intervalle}
           loop all players:
               if world of loop-player is "NyoFFA":
                   send "&3Nyo&fFFA &6» &e%attacker% est en KillStreak de %{killstreak::%attacker%}% kills !" to loop-player
       if {killstreak::%attacker%} is equal to {objectives::%attacker%}:
           loop all players:
               if world of loop-player is "NyoFFA":
                   send "&3Nyo&fFFA &6» &e%attacker% est en KillStreak de %{killstreak::%attacker%}% kills !" to loop-player
           add {@intervalle} to {objectives::%attacker%}

on quit:
   clear {objectives::%player%}
   clear {killstreak::%player%}

le code est re-vu et marche très bien

Posté(e)
options:
   premier_nombre: 3
   intervalle:

on death of player:
   if damage cause is attack:
       if {killstreak::%attacker%} is not set:
           set {killstreak::%attacker%} to 1
       else:
           add 1 to {killstreak::%attacker%}
       clear {killstreak::%victim%}
       clear {objectives::%victim%}
       if {killstreak::%attacker%} is {@premier_nombre}:
           set {objectives::%attacker%} to {@intervalle}
           loop all players:
               if world of loop-player is "NyoFFA":
                   send "&3Nyo&fFFA &6» &e%attacker% est en KillStreak de %{killstreak::%attacker%}% kills !" to loop-player
       if {killstreak::%attacker%} is equal to {objectives::%attacker%}:
           loop all players:
               if world of loop-player is "NyoFFA":
                   send "&3Nyo&fFFA &6» &e%attacker% est en KillStreak de %{killstreak::%attacker%}% kills !" to loop-player
           add {@intervalle} to {objectives::%attacker%}

on quit:
   clear {objectives::%player%}
   clear {killstreak::%player%}

le code est re-vu et marche très bien

Merci pour le code ! Il marche bien ! par contre tu peut ajouté au code ca: (add 5 to {nyocoins.%uuid of player%})

En gros donné 5 nyocoins quand il a fait 5 killstreak, 10 nyocoins quand il a fait 10 killstreak etc ^^

Merci !

Posté(e)
options:
   premier_nombre: 3
   intervalle:

on death of player:
   if damage cause is attack:
       if {killstreak::%attacker%} is not set:
           set {killstreak::%attacker%} to 1
       else:
           add 1 to {killstreak::%attacker%}
       clear {killstreak::%victim%}
       clear {objectives::%victim%}
       if {killstreak::%attacker%} is {@premier_nombre}:
           set {objectives::%attacker%} to {@intervalle}
           loop all players:
               if world of loop-player is "NyoFFA":
                   send "&3Nyo&fFFA &6» &e%attacker% est en KillStreak de %{killstreak::%attacker%}% kills !" to loop-player
                   add 3 to {nyocoins.%uuid of player%}
       if {killstreak::%attacker%} is equal to {objectives::%attacker%}:
           loop all players:
               if world of loop-player is "NyoFFA":
                   send "&3Nyo&fFFA &6» &e%attacker% est en KillStreak de %{killstreak::%attacker%}% kills !" to loop-player
                   add {killstreak::%attacker%} to {nyocoins.%uuid of player%}
           add {@intervalle} to {objectives::%attacker%}

on quit:
   clear {objectives::%player%}

  • 1 mois après...
×
×
  • 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.