Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ____ __.__.__ .__ ___________.__ ____ __.__
- # | |/ _|__| | | | \__ ___/| |__ ____ | |/ _|__| ____ ____
- # | < | | | | | | | | | \_/ __ \ | < | |/ \ / ___\
- # | | \| | |_| |__ | | | Y \ ___/ | | \| | | \/ /_/ >
- # |____|__ \__|____/____/ |____| |___| /\___ > |____|__ \__|___| /\___ /
- # \/ \/ \/ \/ \//_____/
- # ########################################
- # # Kill The King by NelGossem_ #
- # #GoldenGames : pvp.goldengames.fr:27470#
- # ########################################
- options:
- {ktk.minplayer}: 4 #Nombre de joueur requit pour débuter la partie
- {ktk.maxplayer}: 20 #Le nombre maximum de joueur
- variables: #NE PAS CHANGER
- {ktk.%player%.join} = false
- {ktk.start} = false
- {ktk.slots} = 0
- {coins.%player%} = 0
- # COMMANDES
- command /ktkadmin <text> [<text>]:
- permission: ktkadmin.perm
- trigger:
- if arg 1 is equal to "help":
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- message "&4> &e/ktk help &6- &eVoir la liste des commandes joueurs" to command sender
- message "&4> &e/ktkadmin help &6- &eVoir la liste des commandes administrateurs" to command sender
- message "&4> &e/ktkadmin setlobbyspawn &6-&e Définir le point de spawn de la salle d attente" to command sender
- message "&4> &e/ktkadmin setfinspawn &6-&e Définir le point de spawn ou le joueur spawnera quand il aura perdue/quiter" to command sender
- message "&4> &e/ktkadmin setpointspawn1 &6-&e Définir le point de spawn de l équipe 1" to command sender
- message "&4> &e/ktkadmin setpointspawn2 &6-&e Définir le point de spawn de l équipe 2" to command sender
- message "&4> &e/ktkadmin setsign join/leave &6- &eSet la pancarte" to command sender
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- if arg 1 is not set:
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- message "&4> &e/ktk help &6- &eVoir la liste des commandes joueurs" to command sender
- message "&4> &e/ktkadmin help &6- &eVoir la liste des commandes administrateurs" to command sender
- message "&4> &e/ktkadmin setlobbyspawn &6-&e Définir le point de spawn de la salle d attente" to command sender
- message "&4> &e/ktkadmin setfinspawn &6-&e Définir le point de spawn ou le joueur spawnera quand il aura perdue/quiter" to command sender
- message "&4> &e/ktkadmin setpointspawn1 &6-&e Définir le point de spawn de l équipe 1" to command sender
- message "&4> &e/ktkadmin setpointspawn2 &6-&e Définir le point de spawn de l équipe 2" to command sender
- message "&4> &e/ktkadmin setsign join/leave &6- &eSet la pancarte" to command sender
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- if arg 1 is equal to "setpointspawn1":
- set {ktk.spawn1} to location of player
- message "&6Kill The King &4&l> &7Le point de spawn de l équipe numéro 1 a été définit en : %location of player%"
- if arg 1 is equal to "setpointspawn2":
- set {ktk.spawn2} to location of player
- message "&6Kill The King &4&l> &7Le point de spawn de l équipe numéro 2 a été définit en : %location of player%"
- if arg 1 is equal to "setlobbyspawn":
- set {ktk.wait} to location of player
- message "&6Kill The King &4&l> &7Le point de spawn de la salle d attente a été définit en : %location of player%"
- if arg 1 is equal to "setfinspawn":
- set {ktk.finspawn} to location of player
- message "&6Kill The King &4&l> &7Le point de spawn ou le joueur spawnera en quittant ou en perdant a été définit en : %location of player%"
- if arg 1 is equal to "setsign":
- arg 2 is "join":
- if {ktk.configure_sign.leave} is true:
- send "&eVous configurez déjà le panneau de Leave"
- stop
- set {ktk.configure_sign.join} to true
- send "&eFaites un clic droit sur le panneau de Join"
- arg 2 is "leave":
- if {ktk.configure_sign.join} is true:
- send "&eVous configurez déjà le panneau de Join"
- stop
- set {ktk.configure_sign.leave} to true
- send "&eFaites un clic droit sur le panneau de Leave"
- command /ktk [<text=help>]:
- trigger:
- if arg 1 is equal to "help":
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- message "&4> &e/ktk help &6- &eVoir la liste des commandes joueurs" to command sender
- message "&4> &e/ktkadmin help &6- &eVoir la liste des commandes administrateurs" to command sender
- message "&4> &e/ktk join/enter/play &6- &eRejoindre la partie" to command sender
- message "&4> &e/ktk leave/quit/exit &6- &eQuitter la partie" to command sender
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- if arg 1 is not set:
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- message "&4> &e/ktk help &6- &eVoir la liste des commandes joueurs" to command sender
- message "&4> &e/ktkadmin help &6- &eVoir la liste des commandes administrateurs" to command sender
- message "&4> &e/ktk join/enter/play &6- &eRejoindre la partie" to command sender
- message "&4> &e/ktk leave/quit/exit &6- &eQuitter la partie" to command sender
- message "&6========= &4Kill The King by NelGossem_ &6=========" to command sender
- if arg 1 is equal to "join":
- if {ktk.%player%.join} is true:
- send "&cVous êtes déja en jeu !"
- stop
- if {ktk.start} is true:
- send "&cLa partie a déja commencé !"
- stop
- if {ktk.slots} is {ktk.maxplayer}:
- send "&cLa partie est complète"
- stop
- set {ktk.%player%.join} to true
- wait 1 tick
- clear the player's inventory
- wait 1 tick
- message "&6Kill The King &4&l> &7Vous avez rejoint la partie"
- add 1 to {ktk.slots}
- teleport player to {ktk.wait}
- set {ktk.invincible.%player%} to true
- give a emerald named "&6Shop" to slot 4 of player's inventory
- give an bed named "&cQuitter" with lore "&cVeux-tu quitter ?" to slot 8 of player's inventory
- give an blue wool named "&6Rejoin l équipe bleue" to slot 0 of player's inventory
- give an red wool named "&6Rejoin l équipe rouge" to slot 1 of player's inventory
- {ktk.slots} is equal to {ktk.minplayer}:
- execute console command "/ktkstartcommande"
- if arg 1 is equal to "leave" or "quit" or "exit":
- if {ktk.%player%.join} is false:
- send "&cVous n'êtes pas en jeu !"
- stop
- message "&6Kill The King &4&l> &7Vous avez quitté la partie"
- set {ktk.%player%.join} to false
- teleport player to {ktk.finspawn}
- remove 1 from {game.slots}
- set {ktk.invincible.%player%} to false
- set {ktk.enjeu.%player%} to false
- clear the player's inventory
- set {ktk.red.%player%} to false
- set {ktk.bleue.%player%} to false
- command /ktkstartcommande:
- trigger:
- set {ktk.start} to true
- clear the player's inventory
- loop all players:
- if {ktk.%loop-player%.join} is true:
- message "&a5" to loop-player
- wait 1 second
- message "&a4" to loop-player
- wait 1 second
- message "&a3" to loop-player
- wait 1 second
- message "&a2" to loop-player
- wait 1 second
- message "&a1" to loop-player
- wait 1 second
- message "&aQue le dernier roi survive !" to loop-player
- wait 0.5 tick
- give loop-player a stone sword named "&bL épée"
- give loop-player a bow named "&bL arc"
- give loop-player 12 arrow named "&bLa fleche"
- clear {ktk.bleue.king.%player%}
- clear {ktk.red.king.%player%}
- add a random player out of {ktk.bleue.%loop-player%} to {ktk.bleue.king.%player%}
- add a random player out of {ktk.red.%loop-player%} to {ktk.red.king.%player%}
- if {ktk.bleue.%loop-player%} is true:
- equip loop-player with all leather armour
- teleport loop-player to {ktk.spawn1}
- if {ktk.red.%loop-player%} is true:
- equip loop-player with all leather armour
- teleport loop-player to {ktk.spawn2}
- if {ktk.buy1.%loop-player%} is true:
- delete player's chestplate
- equip loop-player with leather Chestplate of protection 1
- if {ktk.buy2.%loop-player%} is true:
- delete player's chestplate
- equip loop-player with iron Chestplate
- set {ktk.invincible.%loop-player%} to false
- set {ktk.enjeu.%loop-player%} to true
- On rightclick with bed:
- if {ktk.invincible.%player%} is true:
- make player execute "ktk leave"
- On join:
- if {ktk.invincible.%player%} is true:
- teleport player to {ktk.finspawn}
- set {ktk.invincible.%player%} to false
- clear the player's inventory
- set {ktk.%player%.join} to false
- if {ktk.enjeu.%player%} is true:
- teleport player to {ktk.finspawn}
- set {ktk.enjeu.%player%} to false
- execute console command "clear %player%"
- set {ktk.%player%.join} to false
- On rightclick with blue wool:
- if {ktk.invincible.%player%} is true:
- set {ktk.bleue.%player%} to true
- set {ktk.red.%player%} to false
- message "&6Kill The King &4&l> &7Vous avez rejoint l équipe &3Bleue"
- On rightclick with red wool:
- if {ktk.invincible.%player%} is true:
- set {ktk.red.%player%} to true
- set {ktk.bleue.%player%} to false
- message "&6Kill The King &4&l> &7Vous avez rejoint l équipe &4Rouge"
- On rightclick with emerald:
- open chest with 1 row named "&9Shop" to player
- wait 4 ticks
- format slot 0 of player with Black Stained Glass Pane named " " with lore " " to close
- format slot 1 of player with diamond helmet named "&4Stuff" with lore "&2Améliorez votre stuff !" to close then run [make player execute command "/ktkguistuffshop"]
- format slot 2 of player with Black Stained Glass Pane named " " with lore " " to close
- format slot 3 of player with Black Stained Glass Pane named " " with lore " " to close
- format slot 4 of player with iron sword named "&4épée" with lore "&2Améliorez votre épée !" to close then run [make player execute command "/ktkguiepeeshop"]
- format slot 5 of player with Black Stained Glass Pane named " " with lore " " to close
- format slot 6 of player with Black Stained Glass Pane named " " with lore " " to close
- format slot 7 of player with stick named "&4Les batons magics !" with lore "&2Achetez votre baton !" to close then run [make player execute command "/ktkguibatonshop"]
- format slot 8 of player with Black Stained Glass Pane named " " with lore " " to close
- command /ktkguistuffshop:
- trigger:
- wait 3 ticks
- open chest with 1 row named "&9Shop - Stuff" to player
- format slot 0 of player with leather Chestplate of protection 1 named "&bNiveau 1" with lore "&bPrix : 10 coins" to close then run [make player execute command "/ktkbuy1"]
- format slot 1 of player with Iron Chestplate named "&bNiveau 2" with lore "&bPrix : 20 coins" to close then run [make player execute command "/ktkbuy2"]
- format slot 2 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 3 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 4 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 5 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 6 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 7 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 8 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- command /ktkguiepeeshop:
- trigger:
- wait 3 ticks
- open chest with 1 row named "&9Shop - épée" to player
- format slot 0 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 1 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 2 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 3 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 4 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 5 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 6 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 7 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 8 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- command /ktkguibatonshop:
- trigger:
- wait 3 ticks
- open chest with 1 row named "&9Shop - Baton" to player
- format slot 0 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 1 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 2 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 3 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 4 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 5 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 6 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 7 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- format slot 8 of player with Black Stained Glass Pane named "&4Bientot" with lore " " to close
- Command /ktkbuy1:
- trigger:
- if {coins.%player%} > 9:
- remove 10 from {coins.%player%}
- set {ktk.buy1.%player%} to true
- set {achat.%player%} to true
- send "&aAchat effectué ! Tu auras ta récompense dès que la partie commencera !"
- else:
- send "&cTu n'as pas assez de coins"
- stop
- Command /ktkbuy2:
- trigger:
- if {coins.%player%} > 19:
- remove 20 from {coins.%player%}
- set {ktk.buy2.%player%} to true
- set {achat.%player%} to true
- send "&aAchat effectué ! Tu auras ta récompense dès que la partie commencera !"
- else:
- send "&cTu n'as pas assez de coins"
- stop
- on respawn:
- if {ktk.red.%player%} is true:
- wait 1 tick
- teleport player to {ktk.spawn2}
- if {ktk.bleue.%player%} is true:
- wait 1 tick
- teleport player to {ktk.spawn1}
- on chat:
- if {ktk.red.%player%} is true:
- loop all players:
- if {ktk.%loop-player%.join} is true:
- cancel event
- message "&6[&4Rouge&6] &2%player% &4&l> &7%message%" to loop-player
- if {ktk.bleue.%player%} is true:
- loop all players:
- if {ktk.%loop-player%.join} is true:
- cancel event
- message "&6[&3Bleue&6] &2%player% &4&l> &7%message%" to loop-player
- on damage:
- if {ktk.red.%attacker%} is true:
- if {ktk.red.%victim%} is true:
- cancel event
- if {ktk.bleue.%attacker%} is true:
- if {ktk.bleue.%victim%} is true:
- cancel event
- On right click on sign:
- player is op
- {ktk.configure_sign.join} is true:
- set {ktk.sign_location} to location of clicked block
- set first line of clicked block to "&a[&bKill The King&a]"
- set second line of clicked block to "&aRejoindre la partie"
- set {ktk.configure_sign.join} to false
- {ktk.configure_sign.leave} is true:
- set {ktk.sign_location} to location of clicked block
- set first line of clicked block to "&a[&bKill The King&a]"
- set second line of clicked block to "&aQuitter la partie"
- set {ktk.configure_sign.leave} to false
- On right click on sign:
- if first line of clicked block is "&a[&bKill The King&a]":
- if second line of clicked block is "&aRejoindre la partie":
- make player execute command "/ktk join"
- stop
- if first line of clicked block is "&a[&bKill The King&a]":
- if second line of clicked block is "&aQuitter la partie":
- make player execute command "/ktk leave"
- stop
- on drop:
- if {ktk.invincible.%player%} is true:
- cancel event
- if {ktk.enjeu.%player%} is true:
- cancel event
- On Hunger Meter Change:
- if {ktk.invincible.%player%} is true:
- cancel event
- set the player's food level to 10
- if {ktk.enjeu.%player%} is true:
- cancel event
- set the player's food level to 10
- on place:
- if {ktk.invincible.%player%} is true:
- cancel event
- if {ktk.enjeu.%player%} is true:
- cancel event
- on break:
- if {ktk.invincible.%player%} is true:
- cancel event
- if {ktk.enjeu.%player%} is true:
- cancel event
- On Heal:
- if player is "{ktk.bleue.king.%player%}":
- cancel event
- if player is "{ktk.red.king.%player%}":
- cancel event
- On death:
- if player is "{ktk.bleue.king.%victim%}":
- loop all players:
- if {ktk.%loop-player%.join} is true:
- message "&4Le roi de l équipe BLEUE a été tué par %attacker%" to loop-player
- message "&4Félicitation à l équipe ROUGE qui remporte la partie !" to loop-player
- teleport loop-player to {ktk.finspawn}
- set {ktk.start} to false
- set {ktk.%loop-player%.join} to false
- set {ktk.slots} to 0
- if {ktk.red.%loop-player%} is true:
- add 2 to {coins.%loop-player%}
- if player is "{ktk.red.king.%victim%}":
- loop all players:
- if {ktk.%loop-player%.join} is true:
- message "&4Le roi de l équipe ROUGE a été tué par %attacker%" to loop-player
- message "&4Félicitation à l équipe BLEUE qui remporte la partie !" to loop-player
- teleport loop-player to {ktk.finspawn}
- set {ktk.start} to false
- set {ktk.%loop-player%.join} to false
- set {ktk.slots} to 0
- if {ktk.bleue.%loop-player%} is true:
- add 2 to {coins.%loop-player%}
- # ########################################
- # # Kill The King by NelGossem_ #
- # #GoldenGames : pvp.goldengames.fr:27470#
- # ########################################
- # ____ __.__.__ .__ ___________.__ ____ __.__
- # | |/ _|__| | | | \__ ___/| |__ ____ | |/ _|__| ____ ____
- # | < | | | | | | | | | \_/ __ \ | < | |/ \ / ___\
- # | | \| | |_| |__ | | | Y \ ___/ | | \| | | \/ /_/ >
- # |____|__ \__|____/____/ |____| |___| /\___ > |____|__ \__|___| /\___ /
- # \/ \/ \/ \/ \//_____/
Advertisement
Add Comment
Please, Sign In to add comment