Advertisement
Guest User

Untitled

a guest
Feb 28th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 KB | None | 0 0
  1. options:
  2. # #! # ━━━━━━━━━━ Inicio Da Config ━━━━━━━━━━━━ #
  3.  
  4. # ━━━━━━ Permissao STAFF ━━━━━━ #
  5. Permissao: WinkDrop.usar
  6.  
  7. # ━━━━━━ Permissao Mensagem ━━━━━━ #
  8. PermMSG: &0[&4Wink&cGamer&0] &3Sem Permissão!
  9.  
  10. # ━━━━━━ Prefixo ━━━━━━ #
  11. P: &e[&3DROP&e] &c
  12.  
  13.  
  14. variables:
  15. {WinkDROP.Evento} = false
  16. {WinkDROP.Counter} = 0
  17. {WinkDROP.Config.%player%} = 0
  18. {WinkDROP.EntradaBlock} = false
  19. command /AdminDrop [<text>] [<text>]:
  20. trigger:
  21. If arg 1 is "Iniciar":
  22. If {WinkDROP.Evento} is false:
  23. set {WinkDROP.Evento} to true
  24. broadcast " "
  25. broadcast "{@P} Evento &6DROP &3Iniciado!"
  26. broadcast "{@P} Entre Usando &b/DROP&3!"
  27. broadcast "{@P} Iniciando em 1 minuto&3!"
  28. broadcast " "
  29. wait 10 Seconds
  30. If {WinkDROP.Evento} is false:
  31. stop
  32. broadcast " "
  33. broadcast "{@P} Evento &6DROP &3Iniciado!"
  34. broadcast "{@P} Entre Usando &b/DROP&3!"
  35. broadcast "{@P} Iniciando em 50 segundos&3!"
  36. broadcast " "
  37. wait 10 Seconds
  38. If {WinkDROP.Evento} is false:
  39. stop
  40. broadcast " "
  41. broadcast "{@P} Evento &6DROP &3Iniciado!"
  42. broadcast "{@P} Entre Usando &b/DROP&3!"
  43. broadcast "{@P} Iniciando em 40 segundos&3!"
  44. broadcast " "
  45. wait 10 Seconds
  46. If {WinkDROP.Evento} is false:
  47. stop
  48. broadcast " "
  49. broadcast "{@P} Evento &6DROP &3Iniciado!"
  50. broadcast "{@P} Entre Usando &b/DROP&3!"
  51. broadcast "{@P} Iniciando em 30 segundos&3!"
  52. broadcast " "
  53. wait 10 Seconds
  54. If {WinkDROP.Evento} is false:
  55. stop
  56. broadcast " "
  57. broadcast "{@P} Evento &6DROP &3Iniciado!"
  58. broadcast "{@P} Entre Usando &b/DROP&3!"
  59. broadcast "{@P} Iniciando em 20 segundos&3!"
  60. broadcast " "
  61. wait 10 Seconds
  62. If {WinkDROP.Evento} is false:
  63. stop
  64. broadcast " "
  65. broadcast "{@P} Evento &6DROP &3Iniciado!"
  66. broadcast "{@P} Entre Usando &b/DROP&3!"
  67. broadcast "{@P} Iniciando em 10 segundos&3!"
  68. broadcast " "
  69. wait 10 Seconds
  70. If {WinkDROP.Evento} is false:
  71. stop
  72. set {WinkDROP.EntradaBlock} to true
  73. broadcast "{@P} Evento INICIADO!"
  74. broadcast "{@P} Evento terminará em 3 minutos!"
  75. loop 180 times:
  76. wait 1 second
  77. If {WinkDROP.Evento} is false:
  78. stop
  79. make console execute command "/AdminDrop dropar"
  80. add 1 to {WinkDROP.Counter}
  81. if {WinkDROP.Counter} is equal to 180:
  82. set {WinkDrop.Terminar} to true
  83. broadcast "{@P} Evento terminado!"
  84. broadcast "{@P} Parabéns aos jogadores!"
  85. loop {PlayerListDROP::*}:
  86. make console execute command "/spawn %loop-value%"
  87. loop all players:
  88. set {WinkDROP.Config.%loop-player%} to false
  89. set {WinkDROP.Counter} to 0
  90. set {WinkDROP.Evento} to false
  91. set {WinkDROP.EntradaBlock} to false
  92. clear {PlayerListDROP::*}
  93. wait 2 seconds
  94. else:
  95. send "&c Evento já ligado!"
  96. If arg 1 is "SetSpawn":
  97. set {SpawnDROP} to Player's Location
  98. send "{@P} Spawn Do Evento Setado!"
  99. stop
  100. If arg 1 is "Terminar":
  101. If {WinkDROP.Evento} is false:
  102. send "{@} Evento já desligado!"
  103. stop
  104. broadcast "{@P} Evento terminado!"
  105. broadcast "{@P} Parabéns aos jogadores!"
  106. loop {PlayerListDROP::*}:
  107. teleport {PlayerListDROP::*} to spawn
  108. wait 1 second
  109. set {WinkDROP.Config.%loop-value%} to false
  110. make console execute command "/AdminDrop resetar"
  111. If arg 1 is "Desligar":
  112. If {WinkDROP.Evento} is false:
  113. stop
  114. make player execute command "/admindrop Terminar"
  115. if arg 1 is "setar":
  116. clear player's inventory
  117. give 1 bone named "&aSetar area 1" to player
  118. give 1 bone named "&aSetar area 2" to player
  119. give 1 bone named "&aSetar area 3" to player
  120. give 1 bone named "&aSetar area 4" to player
  121. give 1 bone named "&aSetar area 5" to player
  122. if arg 1 is "AddItem":
  123. if arg 2 is not set:
  124. send "&cErro!"
  125. send "&cUse /admindrop additem 1-5"
  126. stop
  127. if arg 2 is "1":
  128. clear {Drop.Inv1::*}
  129. loop items in player's inventory:
  130. add loop-item to {Drop.Inv1::*}
  131. send "{@P} INV 1: &b%loop-item%!"
  132. if arg 2 is "2":
  133. clear {Drop.Inv2::*}
  134. loop items in player's inventory:
  135. add loop-item to {Drop.Inv2::*}
  136. send "{@P} INV 2: &b%loop-item%!"
  137. if arg 2 is "3":
  138. clear {Drop.Inv3::*}
  139. loop items in player's inventory:
  140. add loop-item to {Drop.Inv3::*}
  141. send "{@P} INV 3: &b%loop-item%!"
  142. if arg 2 is "4":
  143. clear {Drop.Inv4::*}
  144. loop items in player's inventory:
  145. add loop-item to {Drop.Inv4::*}
  146. send "{@P} INV 4: &b%loop-item%!"
  147. if arg 2 is "5":
  148. clear {Drop.Inv5::*}
  149. loop items in player's inventory:
  150. add loop-item to {Drop.Inv5::*}
  151. send "{@P} INV 5: &b%loop-item%!"
  152. if arg 1 is "Dropar":
  153. set {_drop} to a random element out of {Drop.Inv1::*}
  154. drop {_drop} at {DropLocation1}
  155. set {_drop1} to a random element out of {Drop.Inv2::*}
  156. drop {_drop1} at {DropLocation2}
  157. set {_drop3} to a random element out of {Drop.Inv3::*}
  158. drop {_drop3} at {DropLocation3}
  159. set {_drop4} to a random element out of {Drop.Inv4::*}
  160. drop {_drop4} at {DropLocation4}
  161. set {_drop5} to a random element out of {Drop.Inv5::*}
  162. drop {_drop5} at {DropLocation5}
  163. spawn 50 of particle flame offset by 1, 1, 1 at {DropLocation1}
  164. spawn 50 of particle flame offset by 1, 1, 1 at {DropLocation2}
  165. spawn 50 of particle flame offset by 1, 1, 1 at {DropLocation3}
  166. spawn 50 of particle flame offset by 1, 1, 1 at {DropLocation4}
  167. spawn 50 of particle flame offset by 1, 1, 1 at {DropLocation5}
  168. stop
  169. if arg 1 is "resetar":
  170. set {WinkDROP.Counter} to 0
  171. set {WinkDROP.Evento} to false
  172. set {WinkDROP.EntradaBlock} to false
  173. clear {PlayerListDROP::*}
  174. loop all players:
  175. set {WinkDROP.Config.%loop-player%} to false
  176. if arg 1 is not set:
  177. send "&b\=-=-=-=-=-=&0[&6COMANDOS ADMIN&0]&b=-=-=-=-=-=/"
  178. send "{@P}| &a/AdminDrop &6Iniciar |&3 Inicia o Evento!"
  179. send "{@P}| &a/AdminDrop &6SetSpawn |&3 Seta o Spawn do Evento!"
  180. send "{@P}| &a/AdminDrop &6Terminar |&3 Termina o Evento DROP!"
  181. send "{@P}| &a/AdminDrop &6Desligar |&3 Desliga o Evento DROP!"
  182. send "{@P}| &a/AdminDrop &6AddItem |&3 Adiciona os Item do Inventario no DROP!"
  183. send "{@P}| &a/AdminDrop &6Dropar |&3 Dropa Items setados ao Chao!"
  184. Send " "
  185. send "{@P}| &a Para Setar o Bloco onde ira dropar os item %nl%Use o osso e clique com botao Direito no Bloco De Esmeralda!"
  186. send "&b\=-=-=-=-=-=&0[&6COMANDOS ADMIN&0]&b=-=-=-=-=-=/"
  187.  
  188.  
  189. on command:
  190. if {WinkDROP.Config.%player%} is true:
  191. if command is not "helpop" or "clan" or "tell" or "r" or "w" or "msg" or "admindrop" or "testarvars":
  192. cancel event
  193. send "{@P} Comandos bloqueados no evento DROP! Para sair deslogue..."
  194. on join:
  195. if {WinkDROP.Config.%player%} is true:
  196. set {WinkDROP.Config.%player%} to false
  197. send "{@P} Você saiu do evento DROP!"
  198. teleport player to spawn
  199. command /drop:
  200. trigger:
  201. if {WinkDROP.Evento} is true:
  202. if {WinkDROP.EntradaBlock} is false:
  203. if {WinkDROP.Config.%player%} is true:
  204. send "{@P} Você já está no evento!"
  205. stop
  206. teleport player to {SpawnDROP}
  207. set {WinkDROP.Config.%player%} to true
  208. send "{@P} &cEntrou no evento!"
  209. add player to {PlayerListDROP::*}
  210. else:
  211. send "{@P}&c Evento já começou!"
  212. else:
  213. send "{@P}&c Evento desligado!"
  214. on rightclick with bone on emerald block:
  215. if player has permission "drop.admin":
  216. if name of player's tool is "&aSetar area 1":
  217. set {DropLocation1} to location of clicked block
  218. send "{@P} &aSpawn 01 setado!"
  219. stop
  220. if name of player's tool is "&aSetar area 2":
  221. set {DropLocation2} to location of clicked block
  222. send "{@P} &aSpawn 02 setado!"
  223. stop
  224. if name of player's tool is "&aSetar area 3":
  225. set {DropLocation3} to location of clicked block
  226. send "{@P} &aSpawn 03 setado!"
  227. stop
  228. if name of player's tool is "&aSetar area 4":
  229. set {DropLocation4} to location of clicked block
  230. send "{@P} &aSpawn 04 setado!"
  231. stop
  232. if name of player's tool is "&aSetar area 5":
  233. set {DropLocation5} to location of clicked block
  234. send "{@P} &aSpawn 05 setado!"
  235. stop
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. #_----------------- | CHAT -----------------_#
  249.  
  250. on chat:
  251. cancel the event
  252. if player's clan tag is set:
  253. broadcast "%colored player's suffix% %colored player's prefix% &f[&6%player's clan tag%&f] &e%player's display name% &3» &f%colored message%"
  254. stop
  255. else:
  256. broadcast "%colored player's suffix% %colored player's prefix% &e%player's display name% &3» &f%colored message%"
  257. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement