SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /koth [<text>] [<text>]:
  2.     permission: essentials.fonda
  3.     trigger:
  4.         if arg 1 is "start":
  5.             if arg 2 is not set:
  6.                 send "&8[&cOasiaMc&8] &aLe koth vien de demarrer"
  7.                 BroadCast "&8&l[&c&lKoth&8&l] &e&lLe koth pharaon vien de commencer &6&l(x:216 , z:96)"
  8.                 set {Koth} to true
  9.                 set {koth.temp} to 60
  10.                 set {koth.%player%} to false
  11.                 set {koth.zone} to false
  12.                 stop
  13.         if arg 1 is "stop":
  14.             if arg 2 is not set:
  15.                 send "&8[&cOasiaMc&8] &cLe koth s'est arreté"
  16.                 set {Koth} to false
  17.                 set {koth.temp} to 0
  18.                 set {koth.%player%} to false
  19.                 set {koth.zone} to true
  20.                 wipe player's sidebar
  21.                 stop
  22.         if arg 1 is set:
  23.             if arg 2 is not set:
  24.                 set {kothloc} to the player's location
  25.                 send "&8[&cOasiaMc&8] &eTu vien de SET le koth"
  26.                 stop
  27.         if arg 1 is not set:
  28.             if arg 2 is not set:
  29.                 send "&8[&cOasiaMc&8] &eEssaie la command /koth [text] [text]"
  30.                 stop
  31.         if arg 1 is set:
  32.             if arg 2 is not set:
  33.                 send "&8[&cOasiaMc&8] &eEssaie la command /koth [text] [text]"
  34.                 stop
  35.  
  36. every 1 seconds:
  37.     loop all players:
  38.         if {Koth} is true:
  39.             if {koth.temp} < 1:
  40.                 BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %loop-player% viens de &6&lGagner le Koth!"
  41.                 set {Koth} to false
  42.                 set {koth.temp} to 0
  43.                 set {koth.%loop-player%} to false
  44.                 set {koth.zone} to true
  45.                 set {koth.%loop-player%} to false
  46.                 loop all players:
  47.                     edit score id "temp.%loop-player%" to "&6♦ &eTemp(s): &7%{koth.temp}%" and 6
  48.                 stop
  49.             if {Koth} is false:
  50.                 stop
  51.             if {Koth} is true:
  52.                 make loop-player execute command "/scoreboard"
  53.                 if {koth.%loop-player%} is true:
  54.                     if {koth.zone} is true:
  55.                         remove 1 from {koth.temp}
  56.  
  57.  
  58. command /scoreboard:
  59.     trigger:
  60.         wipe player's sidebar
  61.         wait 3 ticks
  62.         set name of sidebar of player to "&c-&6-&e- &e&lKOTH &e-&6-&c-"
  63.         set score "&f " in sidebar of player to 7
  64.         set id based score "&6♦ &eTemp(s): &7%{koth.temp}%" in sidebar of player to 6 with id "temp.%player%"
  65.         set id based score "&6♦ &eJoueur(s): &7%player%" in sidebar of player to 5 with id "kothplayer.%player%"
  66.         set score "&2 " in sidebar of player to 4
  67.         set score "&c⚠ Récompense: &eClé Koth" in sidebar of player to 3
  68.         set score "&1 " in sidebar of player to 2
  69.         set score "&a          &c-&6-&e- &e&lKOTH &e-&6-&c-" in sidebar of player to 1
  70.  
  71. on any move:
  72.     if distance between player and {kothloc} is less than 4:
  73.         if {koth} is true:
  74.             if {koth.%player%} is false:
  75.                 if {koth.zone} is false:
  76.                     BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %player% vien de rentrer dans le Koth"
  77.                     loop all players:
  78.                         edit score id "kothplayer.%loop-player%" to "&6♦ &eJoueur(s): &7%player%" and 5
  79.                     set {koth.%player%} to true
  80.                     set {koth.zone} to true
  81.     if distance between player and {kothloc} is bigger than 4:
  82.         if {koth} is true:
  83.             if {koth.zone} is true:
  84.                 if {koth.%player%} is true:
  85.                     BroadCast "&8&l[&c&lKoth&8&l] &e&lLe joueur %player% vien de &c&lquitter &e&lle Koth"
  86.                     loop all players:
  87.                         edit score id "kothplayer.%loop-player%" to "&6♦ &eJoueur(s): &7Aucun" and 5
  88.                     set {koth.temp} to 60
  89.                     set {koth.%player%} to false
  90.                     set {koth.zone} to false
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top