Guest User

Easy Parkour

a guest
Aug 7th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Parkour! Skript criado por @Theluksabm ...
  2. #   Versão 0.1 - Sem Dependencias!
  3.  
  4. options:
  5.     Server: &7[Server] #Nome do Servidor
  6.     CheckpointBlock: light blue wool #Bloco de Checkpoint
  7.     WinBlock: diamond block #O Bloco em que o player pisa e ganha
  8.     DeathBlock: gold block #O Bloco em que o player pisa e morre
  9.  
  10.     #JOIN E LEAVE
  11. on sign change:
  12.     if player has permission "builder.minigame.placa.parkour":
  13.         if line 1 is "jparkour":
  14.             set line 1 to "&0&l====="
  15.             set line 2 to "&4&l&oParkour!"
  16.             set line 4 to "&0&l====="
  17.         else if line 1 is "lparkour":
  18.             set line 1 to "&0&l====="
  19.             set line 2 to "&4&l&oParkour Leave!"
  20.             set line 4 to "&0&l====="
  21.            
  22. on rightclick on sign:
  23.     if line 2 is "&4&l&oParkour!":
  24.         teleport player to {lobby.parkour}
  25.         send "{@Server} &cVocê foi teletransportado ao Lobby de Parkour!"
  26.         set {minigames.parkour.%player%} to true
  27.         wait 20 tick
  28.         set {parkour.checkpoint.%player%} to player's location
  29.        
  30.     else if line 2 is "&4&l&oParkour Leave!":
  31.         if {minigames.parkour.%player%} is true:
  32.             set {minigames.parkour.%player%} to false
  33.             send "{@Server} &cVocê saiu do Parkour!"
  34.         else:
  35.             send "{@Server} &cVocê não está no Parkour e portanto não pode sair!"
  36.            
  37. command /parkour:
  38.     trigger:
  39.         teleport player to {lobby.parkour}
  40.         set {minigames.parkour.%player%} to true
  41.         send "{@Server} &cVocê foi teletransportado ao Lobby de Parkour!"
  42.         set {parkour.checkpoint.%player%} to player's location
  43.        
  44. command /sair:
  45.     trigger:
  46.         if {minigames.parkour.%player%} is true:
  47.             set {minigames.parkour.%player%} to false
  48.             send "{@Server} &cVocê saiu do Parkour!"
  49.         else:
  50.             send "{@Server} &cVocê não está no Parkour e portanto não pode sair!"
  51.  
  52. #Placa de Checkpoint
  53. on sign change:
  54.     if line 1 is "jpcheck":
  55.         set line 1 to "&0&l====="
  56.         set line 2 to "&4&l&oCheckpoint!"
  57.         set line 4 to "&0&l====="
  58.        
  59. on rightclick on sign:
  60.     if line 2 is "&4&l&oCheckpoint!":
  61.         if {minigames.parkour.%player%} is true:
  62.             if {parkour.checkpoint.%player%} is "~ ~ ~":
  63.                 send "{@Server} &4&lRoubar é feio!"
  64.             else:
  65.                 teleport player to {parkour.checkpoint.%player%}
  66.                 send "{@Server} &3Você foi ao Checkpoint!"
  67.         else:
  68.             send "{@Server} &cVocê não está no Parkour e portanto não pode ir ao Checkpoint!"
  69.            
  70. #Configurações
  71.        
  72. command /setparkour:
  73.     permission: builder.lobby.parkour
  74.     trigger:
  75.         set {lobby.parkour} to player's location
  76.         send "{@Server} &cLobby de Parkour Setado!"
  77.    
  78. #Eventos
  79.        
  80. on quit:
  81.     set {minigames.parkour.%player%} to false      
  82.    
  83. on walk on {@DeathBlock}:
  84.     if {minigames.parkour.%player%} is true:
  85.         teleport player to {parkour.checkpoint.%player%}
  86.  
  87. on walk on {@WinBlock}:
  88.     if {minigames.parkour.%player%} is true:
  89.         send "&7[Server]&6&l VOCÊ TERMINOU O PARKOUR!"
  90.         set {minigames.parkour.%player%} to false
  91.         set {parkour.checkpoint.%player%} to "~ ~ ~"
  92.         wait 3 seconds
  93.         send "{@Server} &cVocê saiu do Parkour!"
  94.  
  95. on walk on {@CheckpointBlock}:
  96.     if {minigames.parkour.%player%} is true:
  97.         set {parkour.checkpoint.%player%} to player's location
  98.         send "{@Server} &6&l-=-Checkpoint-=="
Advertisement
Add Comment
Please, Sign In to add comment