Advertisement
Gominhas

GDorgas Skript

Oct 16th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. Options:
  2.  
  3. #Permissões do Skript
  4.  
  5. #Abrir/Usar o GUI das Dorgas
  6. Usar o GUI: gdorgas.usar
  7. Perm Usar o GUI: &c&l» &7Você não pode usar esse comando!
  8.  
  9. #Comando de verificar Update
  10. Ver Updates: gdorgas.update
  11. Perm Ver Updates: &c&l» &7Você não pode verificar updates!
  12.  
  13. #Usar a Droga "Cigarro"
  14. Usar Cigarro: gdorgas.cigarro
  15. Perm Usar Cigarro: &c&l» &7Você não pode usar a droga Cigarro
  16.  
  17. #Usar a Droga "Maconha"
  18. Usar Maconha: gdorgas.maconha
  19. Perm Usar Maconha: &c&l» &7Você não pode usar a droga Maconha
  20.  
  21. #Usar a Droga "Crack"
  22. Usar Crack: gdorgas.crack
  23. Perm Usar Crack: &c&l» &7Você não pode usar a droga Crack
  24.  
  25. #Mundos em que pode ser usado (Use "or" para adicionar mais mundos)
  26. # #! Obrigatório definir !##
  27. Mundos Disponiveis: "world" or "world2"
  28.  
  29. #Ainda a usar a Dorga
  30. Usando Dorga: &c&l» &7A tua Dorga ainda não acabou
  31.  
  32. #Nome do Menu
  33. Nome do Menu: &4Menu das Dorgas
  34.  
  35. # #! Cigarro !##
  36.  
  37. #Item que aparece no GUI (EM INGLES)
  38. ItemC: stick
  39. #Nome que aparece no GUI
  40. NomeC: &f&nCigarro
  41. #Tempo que a droga irá durar (Em Segundos)
  42. TempoC: 30
  43. #Mensagem de quando aplicado
  44. MensagemC: &c&l» &7Efeito &aFumar &7Ativado por &c30&7 segundos
  45.  
  46. # #! Maconha !##
  47.  
  48. #Item que aparece no GUI (EM INGLES)
  49. ItemM: green dye
  50. #Nome que aparece no GUI
  51. NomeM: &2&nMaconha&7 (VIP)
  52. #Tempo que a droga irá durar (Em Segundos)
  53. TempoM: 30
  54. #Mensagem de quando aplicado
  55. MensagemM: &c&l» &7Efeito &aMaconha &7Ativado por &c30&7 segundos
  56.  
  57. # #! Crack !##
  58.  
  59. #Item que aparece no GUI (EM INGLES)
  60. ItemCr: sugar
  61. #Nome que aparece no GUI
  62. NomeCr: &f&nCrack&7 (VIP)
  63. #Mensagem de quando aplicado
  64. MensagemCr: &c&l» &7Efeito &aCrack &7Ativado por &c30&7 segundos
  65.  
  66. variables:
  67. {droga.%player%} = false
  68.  
  69. command /dorgas [<text>]:
  70. aliases: drogas, droga, dorga
  71. trigger:
  72. if world is {@Mundos Disponiveis}:
  73. if arg 1 is not set:
  74. if player has permission "{@Usar o GUI}":
  75. if {droga.%player%} is true:
  76. send "{@Usando Dorga}"
  77. else:
  78. open chest with 3 rows named "{@Nome do Menu}" to player
  79. format slot 11 of player with a {@ItemC} named "{@NomeC}" to close then run [make player execute command "dorgas cigarro"]
  80. format slot 13 of player with a {@ItemM} named "{@NomeM}" to close then run [make player execute command "dorgas maconha"]
  81. format slot 15 of player with a {@ItemCr} named "{@NomeCr}" to close then run [make player execute command "dorgas crack"]
  82. else:
  83. send "{@Perm Usar o GUI}"
  84. #Tipo de Droga: Maconha
  85. if arg 1 is "maconha":
  86. if player has permission "{@Usar Maconha}":
  87. wait 2 ticks
  88. set {droga.%player%} to true
  89. remove slowness from the player
  90. remove mining fatigue from the player
  91. remove nausea from the player
  92. remove weakness from the player
  93. remove speed from the player
  94. apply potion of slowness to the player for {@TempoM} seconds
  95. apply potion of mining fatigue to the player for {@TempoM} seconds
  96. apply potion of nausea to the player for {@TempoM} seconds
  97. apply potion of weakness to the player for {@TempoM} seconds
  98. send "{@MensagemM}"
  99. wait {@TempoM} seconds
  100. set {droga.%player%} to false
  101. else:
  102. send "{@Perm Usar Maconha}"
  103. #Tipo de Droga: Crack
  104. if arg 1 is "crack":
  105. if player has permission "{@Usar Crack}":
  106. wait 2 ticks
  107. set {droga.%player%} to true
  108. remove slowness from the player
  109. remove mining fatigue from the player
  110. remove nausea from the player
  111. remove weakness from the player
  112. remove speed from the player
  113. send "{@MensagemCr}"
  114. apply potion of nausea to the player for 20 seconds
  115. loop 10 times:
  116. apply speed 10 to the player
  117. wait 1 second
  118. remove speed from the player
  119. wait 1 second
  120. wait 24 seconds
  121. set {droga.%player%} to false
  122. else:
  123. send "{@Perm Usar Crack}"
  124.  
  125. #Tipo de Droga: Cigarro
  126. if arg 1 is "cigarro":
  127. if player has permission "{@Usar Cigarro}":
  128. wait 2 ticks
  129. set {droga.%player%} to true
  130. remove slowness from the player
  131. remove mining fatigue from the player
  132. remove nausea from the player
  133. remove weakness from the player
  134. remove speed from the player
  135. apply potion of slowness 5 to the player for {@TempoC} seconds
  136. play raw sound "fire.ignite" at player with pitch 1 volume 50
  137. send "{@MensagemC}"
  138. wait {@TempoC} seconds
  139. set {droga.%player%} to false
  140. else:
  141. send "{@Perm Usar Cigarro}"
  142.  
  143. if arg 1 is not "crack" or "maconha" or "cigarro":
  144. send "&cUse /dorgas"
  145.  
  146. command /gupdate:
  147. trigger:
  148. if text from url "http://pastebin.com/raw.php?i=56HmcCm2" is not "1.0":
  149. send "&aExiste um Update disponivel!"
  150. wait 1 second
  151. send "&6Instale o update em:"
  152. send "&7&nhttp://bit.ly/GDorgas"
  153. else:
  154. send "&cSem updates disponiveis!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement