Guest User

DCSkills

a guest
Jul 21st, 2015
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.88 KB | None | 0 0
  1. # Skript : DCSkills
  2. # Versão : 1.5
  3. # Autor : Epiic/Junior
  4. # Forum Gamers Board (:
  5.  
  6. # #! ==========================================================================!# #
  7. # #! # # # # # # _-_-_-==CONFIGURE DE ACORDO COM SEU GOSTO==-_-_-_ # # # # # # !# #
  8. # #! ==========================================================================!# #
  9.  
  10. # #! === [ TRUE = SIM //// FALSE = NÃO ] === !# #
  11.  
  12.  
  13. options:
  14. # AVISAR QUANDO O INV ESTIVER CHEIO ? #Skill Mineração
  15. InvCheio: true
  16. InvMensagem: &7[&b@&7] &b&l%player% &cnão ha espaço no seu inventario.
  17.  
  18. # VISAO NOTURNA EM QUANTO MINERA ? # Skill Mineração
  19. VisaoNoturna: true
  20. VisaoNoturna%: 3
  21.  
  22. # MINERIOS RAROS /// SKILL MINERAÇAO /// #
  23. # Precionando com o botão direito vende o
  24. # minerio raro automaticamente
  25. Item: Nether star
  26. ItemExtraNome: &7&m-[&r&6&lMinerio Raro&7&m]-&r
  27. ItemExtraLore: &7Clique direito para vende-lo
  28. %ItemExtra: 2
  29. ItemExtraPreço: 1000
  30. ItemExtraMsgVenda: &7[&b@&7] &6&l%player% &avocê vendeu seu minerio raro.
  31.  
  32. # /// SKILLS //// #
  33. SkillDelayMineraçao: 120 #Delay pra usar Novamente em Segundos // 120 = 2minutos //
  34. SkillDelayEspada: 180 #Delay pra usar Novamente em Segundos // 192 = 3minutos //
  35. SkillDelayMachado: 180 #Delay pra usar Novamente em Segundos // 192 = 3minutos //
  36. SkillTempo: 30 #Tempo em que a skill fica ativa -- \\USA NA SKILL ESPADA E SKILL MACHADO TBM// --
  37. MsgSkillDelay: &7[&b@&7] &6&l%player% &cAguarde para usar a skill novamente
  38. MsgSkillUsoMINERAÇAO: &7[&b@&7] &aVocê usou a skill de mineração.
  39. MsgSkillUsoESPADA: &7[&b@&7] &aVocê usou a skill da espada.
  40. MsgSkillUsoMACHADO: &7[&b@&7] &aVocê usou a skill do machado.
  41.  
  42. # Abre o menu com as skills e informações.
  43. command /skills [<text>] [<text>]:
  44. trigger:
  45. if arg 1 is not set:
  46. if arg 2 is not set:
  47. replace all "11" with "MAX" in {SkillMineracaoNivel::%player%}
  48. replace all "11" with "MAX" in {SkillEspadaNivel::%player%}
  49. replace all "11" with "MAX" in {SkillMachadoNivel::%player%}
  50. open chest with 1 rows named "&2&lDCSkillsGUI" to player
  51. format slot 0 of player with Black Stained Glass Pane named "&7" to close then run "&7"
  52. format slot 1 of player with head named "&6&lP E R F I L" with lore "&7Suas informações" to close then run [make player execute command "/skills perfil"]
  53. format slot 2 of player with redstone named "&6&lD A N O" with lore "&b&lTOTAL: &7&l%{SkillMachado/EspadaDANO::%player%}%" to close then run "&f&l"
  54. format slot 3 of player with diamond pickaxe of efficiency 5 named "&6&lM I N E R A Ç A O" with lore "&b&lNV: &7&l%{SkillMineracaoNivel::%player%}% &a&l/ &b&lXP: &7&l%{SkillMineracaoXP::%player%}%" to close then run [make player execute command "/skills mineraçao"]
  55. format slot 4 of player with diamond axe of sharpness 5 named "&6&lM A C H A D O" with lore "&b&lNV: &7&l%{SkillMachadoNivel::%player%}% &a&l/ &b&lXP: &7&l%{SkillMachadoXP::%player%}%" to close then run [make player execute command "/skills machado"]
  56. format slot 5 of player with diamond sword of sharpness 5 named "&6&lE S P A D A" with lore "&b&lNV: &7&l%{SkillEspadaNivel::%player%}% &a&l/ &b&lXP: &7&l%{SkillEspadaXP::%player%}%" to close then run [make player execute command "/skills espada"]
  57. format slot 6 of player with bedrock named "&6&lM I N E R I O S" with lore "&7&l%{SkillMineracaoBlocos.%player%}% &b&lMinerados" to close then run "&f&l"
  58. format slot 7 of player with cobblestone named "&6&lB L O C O S" with lore "&7&l%{SkillMineracaoBlocosConstruidos.%player%}% &b&lConstruidos" to close then run "&f&l"
  59. format slot 8 of player with Black Stained Glass Pane named "&7" to close then run "&7"
  60. if arg 1 is "perfil":
  61. if arg 2 is not set:
  62. replace all "11" with "MAX" in {SkillMineracaoNivel::%player%}
  63. replace all "11" with "MAX" in {SkillEspadaNivel::%player%}
  64. replace all "11" with "MAX" in {SkillMachadoNivel::%player%}
  65. send "&2&l===================================="
  66. send "&7[&b@&7] &6&lMINERAÇAO&7» &b&lNV: &f&l%{SkillMineracaoNivel::%player%}% &a&l/ &b&lXP: &f&l%{SkillMineracaoXP::%player%}%"
  67. send "&7[&b@&7] &6&lESPADA&7» &b&lNV: &f&l%{SkillEspadaNivel::%player%}% &a&l/ &b&lXP: &f&l%{SkillEspadaXP::%player%}%"
  68. send "&7[&b@&7] &6&lMACHADO&7» &b&lNV: &f&l%{SkillMachadoNivel::%player%}% &a&l/ &b&lXP: &f&l%{SkillMachadoXP::%player%}%"
  69. send "&7[&b@&7] &6&lConstruidos&7» &f&l%{SkillMineracaoBlocosConstruidos.%player%}% &b&lBlocos"
  70. send "&7[&b@&7] &6&lMinerados&7» &f&l%{SkillMineracaoBlocos.%player%}% &b&lMinerados"
  71. send "&7[&b@&7] &6&lCausou&7» &f&l%{SkillMachado/EspadaDANO::%player%}% &b&lDano"
  72. send "&2&l===================================="
  73. else:
  74. replace all "11" with "MAX" in {SkillMineracaoNivel::%arg 2%}
  75. replace all "11" with "MAX" in {SkillEspadaNivel::%arg 2%}
  76. replace all "11" with "MAX" in {SkillMachadoNivel::%arg 2%}
  77. send "&2&l============ &3&lINFO DO %arg 2%&2&l ============"
  78. send "&7[&b@&7] &6&lMINERAÇAO&7» &b&lNV: &f&l%{SkillMineracaoNivel::%arg 2%}% &a&l/ &b&lXP: &f&l%{SkillMineracaoXP::%arg 2%}%"
  79. send "&7[&b@&7] &6&lESPADA&7» &b&lNV: &f&l%{SkillEspadaNivel::%arg 2%}% &a&l/ &b&lXP: &f&l%{SkillEspadaXP::%arg 2%}%"
  80. send "&7[&b@&7] &6&lMACHADO&7» &b&lNV: &f&l%{SkillMachadoNivel::%arg 2%}% &a&l/ &b&lXP: &f&l%{SkillMachadoXP::%arg 2%}%"
  81. send "&7[&b@&7] &6&lConstruidos&7» &f&l%{SkillMineracaoBlocosConstruidos.%arg 2%}% &b&lBlocos"
  82. send "&7[&b@&7] &6&lMinerados&7» &f&l%{SkillMineracaoBlocos.%arg 2%}% &b&lMinerados"
  83. send "&7[&b@&7] &6&lCausou&7» &f&l%{SkillMachado/EspadaDANO::%arg 2%}% &b&lDano"
  84. send "&2&l===================================="
  85. if arg 1 is "mineraçao":
  86. if arg 2 is not set:
  87. replace all "11" with "MAX" in {SkillMineracaoNivel::%player%}
  88. send "&2&m---------------------------------"
  89. send "&7[&b@&7] &6&lMINERAÇAO&7» &b&lNV: &f&l%{SkillMineracaoNivel::%player%}% &a&l/ &b&lXP: &f&l%{SkillMineracaoXP::%player%}%"
  90. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv1 = &f1000&8XP"
  91. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv2 = &f3000&8XP"
  92. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv3 = &f5000&8XP"
  93. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv4 = &f7000&8XP"
  94. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv5 = &f9000&8XP"
  95. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv6 = &f11000&8XP"
  96. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv7 = &f15000&8XP"
  97. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv8 = &f20000&8XP"
  98. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv9 = &f35000&8XP"
  99. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv10 = &f50000&8XP"
  100. send "&7[&b@&7] &7&lPARA UPAR: &b&lNvMax = &f100000&8XP"
  101. send "&2&m---------------------------------"
  102. else:
  103. send "&7[&b@&7] &cComando invalido, use: &7/skills mineraçao"
  104. if arg 1 is "espada":
  105. if arg 2 is not set:
  106. replace all "11" with "MAX" in {SkillEspadaNivel::%player%}
  107. send "&2&m---------------------------------"
  108. send "&7[&b@&7] &6&lESPADA&7» &b&lNV: &f&l%{SkillEspadaNivel::%player%}% &a&l/ &b&lXP: &f&l%{SkillEspadaXP::%player%}%"
  109. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv1 = &f25&8XP"
  110. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv2 = &f470&8XP"
  111. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv3 = &f890&8XP"
  112. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv4 = &f1600&8XP"
  113. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv5 = &f2300&8XP"
  114. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv6 = &f2900&8XP"
  115. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv7 = &f3500&8XP"
  116. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv8 = &f3900&8XP"
  117. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv9 = &f4700&8XP"
  118. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv10 = &f6700&8XP"
  119. send "&7[&b@&7] &7&lPARA UPAR: &b&lNvMax = &f8500&8XP"
  120. send "&2&m---------------------------------"
  121. else:
  122. send "&7[&b@&7] &cComando invalido, use: &7/skills espada"
  123. if arg 1 is "machado":
  124. if arg 2 is not set:
  125. replace all "11" with "MAX" in {SkillMachadoNivel::%player%}
  126. send "&2&m---------------------------------"
  127. send "&7[&b@&7] &6&lMACHADO&7» &b&lNV: &f&l%{SkillMachadoNivel::%player%}% &a&l/ &b&lXP: &f&l%{SkillMachadoXP::%player%}%"
  128. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv1 = &f35&8XP"
  129. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv2 = &f730&8XP"
  130. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv3 = &f1300&8XP"
  131. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv4 = &f1950&8XP"
  132. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv5 = &f2600&8XP"
  133. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv6 = &f3100&8XP"
  134. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv7 = &f3900&8XP"
  135. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv8 = &f4600&8XP"
  136. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv9 = &f5600&8XP"
  137. send "&7[&b@&7] &7&lPARA UPAR: &b&lNv10 = &f7900&8XP"
  138. send "&7[&b@&7] &7&lPARA UPAR: &b&lNvMax = &f11000&8XP"
  139. send "&2&m---------------------------------"
  140. else:
  141. send "&7[&b@&7] &cComando invalido, use: &7/skills machado"
  142. if arg 1 is "limpar":
  143. if arg 2 is not set:
  144. set {SkillMachado/EspadaDANO::%player%} to 0
  145. set {SkillMineracaoBlocosConstruidos.%player%} to 0
  146. set {SkillMineracaoBlocos.%player%} to 0
  147. set {SkillMineracaoXP::%player%} to 0
  148. set {SkillEspadaXP::%player%} to 0
  149. set {SkillMachadoXP::%player%} to 0
  150. set {SkillMineracaoNivel::%player%} to 0
  151. set {SkillEspadaNivel::%player%} to 0
  152. set {SkillMachadoNivel::%player%} to 0
  153. send "&7[&b@&7] &cValores do %player% limpos."
  154. else:
  155. if player has permission "dcskills.clear":
  156. set {SkillMachado/EspadaDANO::%arg 2%} to 0
  157. set {SkillMineracaoBlocosConstruidos.%arg 2%} to 0
  158. set {SkillMineracaoBlocos.%arg 2%} to 0
  159. set {SkillMineracaoXP::%arg 2%} to 0
  160. set {SkillEspadaXP::%arg 2%} to 0
  161. set {SkillMachadoXP::%arg 2%} to 0
  162. set {SkillMineracaoNivel::%arg 2%} to 0
  163. set {SkillEspadaNivel::%arg 2%} to 0
  164. set {SkillMachadoNivel::%arg 2%} to 0
  165. send "&7[&b@&7] &cValores do %arg 2% limpos."
  166.  
  167.  
  168. # #! =======================================================!# #
  169. # #! # # # # # # _-_-_-==SKILL PICARETA==-_-_-_ # # # # # # !# #
  170. # #! =======================================================!# #
  171.  
  172.  
  173. on rightclick with {@Item}:
  174. if name of tool of player contains "&7&m-[&r&6&lMinerio Raro&7&m]-&r":
  175. remove 1 of tool from tool
  176. send "{@ItemExtraMsgVenda}"
  177. wait 1 tick
  178. add {@ItemExtraPreço} to player's balance
  179. add 1 to {SkillMineracaoXP::%player%}
  180. on rightclick with pickaxe:
  181. if player is holding a pickaxe:
  182. if player 's gamemode is creative:
  183. stop
  184. set {_espera} to difference between {SkillMineraçãoDelayUso::%player%} and now
  185. if {_espera} is less than {@SkillDelayMineraçao} seconds:
  186. send "{@MsgSkillDelay}."
  187. stop
  188. set {SkillMineraçãoDelayUso::%player%} to now
  189. set {UseiSkillMineração::%player%} to true
  190. wait 1 tick
  191. apply potion of fast digging 10 to the player for {@SkillTempo} seconds
  192. apply potion of night vision 5 to the player for {@SkillTempo} seconds
  193. apply potion of speed 5 to the player for {@SkillTempo} seconds
  194. send ""
  195. send "{@MsgSkillUsoMINERAÇAO}"
  196. send ""
  197. if player is offline:
  198. set {PlayerOfiline::%player%} to true
  199. wait {@SkillTempo} seconds
  200. remove fast digging from the player
  201. remove night vision from the player
  202. remove speed from the player
  203. set {UseiSkillMineração::%player%} to false
  204. on mine:
  205. if player is holding a pickaxe:
  206. add 1 to {SkillMineracaoBlocos.%player%}
  207. add 1 to {SkillMineracaoXP::%player%}
  208. if {SkillMineracaoXP::%player%} is 1000:
  209. if {SkillMineracaoNivel::%player%} is 0:
  210. set {SkillMineracaoNivel::%player%} to 1
  211. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv1"
  212. deploy star firework colored orange at player with duration 0
  213. deploy star firework colored blue at player with duration 0
  214. deploy star firework colored red at player with duration 0
  215. if {SkillMineracaoXP::%player%} is 3000:
  216. if {SkillMineracaoNivel::%player%} is 1:
  217. set {SkillMineracaoNivel::%player%} to 2
  218. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv2"
  219. deploy star firework colored orange at player with duration 0
  220. deploy star firework colored blue at player with duration 0
  221. deploy star firework colored red at player with duration 0
  222. if {SkillMineracaoXP::%player%} is 5000:
  223. if {SkillMineracaoNivel::%player%} is 2:
  224. set {SkillMineracaoNivel::%player%} to 3
  225. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv3"
  226. deploy star firework colored orange at player with duration 0
  227. deploy star firework colored blue at player with duration 0
  228. deploy star firework colored red at player with duration 0
  229. if {SkillMineracaoXP::%player%} is 7000:
  230. if {SkillMineracaoNivel::%player%} is 3:
  231. set {SkillMineracaoNivel::%player%} to 4
  232. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv4"
  233. deploy star firework colored orange at player with duration 0
  234. deploy star firework colored blue at player with duration 0
  235. deploy star firework colored red at player with duration 0
  236. if {SkillMineracaoXP::%player%} is 9000:
  237. if {SkillMineracaoNivel::%player%} is 4:
  238. set {SkillMineracaoNivel::%player%} to 5
  239. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv5"
  240. deploy star firework colored orange at player with duration 0
  241. deploy star firework colored blue at player with duration 0
  242. deploy star firework colored red at player with duration 0
  243. if {SkillMineracaoXP::%player%} is 11000:
  244. if {SkillMineracaoNivel::%player%} is 5:
  245. set {SkillMineracaoNivel::%player%} to 6
  246. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv6"
  247. deploy star firework colored orange at player with duration 0
  248. deploy star firework colored blue at player with duration 0
  249. deploy star firework colored red at player with duration 0
  250. if {SkillMineracaoXP::%player%} is 15000:
  251. if {SkillMineracaoNivel::%player%} is 6:
  252. set {SkillMineracaoNivel::%player%} to 7
  253. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv7"
  254. deploy star firework colored orange at player with duration 0
  255. deploy star firework colored blue at player with duration 0
  256. deploy star firework colored red at player with duration 0
  257. if {SkillMineracaoXP::%player%} is 20000:
  258. if {SkillMineracaoNivel::%player%} is 7:
  259. set {SkillMineracaoNivel::%player%} to 8
  260. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv8"
  261. deploy star firework colored orange at player with duration 0
  262. deploy star firework colored blue at player with duration 0
  263. deploy star firework colored red at player with duration 0
  264. if {SkillMineracaoXP::%player%} is 35000:
  265. if {SkillMineracaoNivel::%player%} is 8:
  266. set {SkillMineracaoNivel::%player%} to 9
  267. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv9"
  268. deploy star firework colored orange at player with duration 0
  269. deploy star firework colored blue at player with duration 0
  270. deploy star firework colored red at player with duration 0
  271. if {SkillMineracaoXP::%player%} is 50000:
  272. if {SkillMineracaoNivel::%player%} is 9:
  273. set {SkillMineracaoNivel::%player%} to 10
  274. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o Nv10"
  275. deploy star firework colored orange at player with duration 0
  276. deploy star firework colored blue at player with duration 0
  277. deploy star firework colored red at player with duration 0
  278. if {SkillMineracaoXP::%player%} is 100000:
  279. if {SkillMineracaoNivel::%player%} is 10:
  280. set {SkillMineracaoNivel::%player%} to 11
  281. broadcast "&7[&b@&7] &6&l%player% &aupou sua skill de mineração para o NvMAX"
  282. deploy star firework colored orange at player with duration 0
  283. deploy star firework colored blue at player with duration 0
  284. deploy star firework colored red at player with duration 0
  285. wait 2 seconds
  286. deploy star firework colored black at player with duration 0
  287. deploy star firework colored pink at player with duration 0
  288. deploy star firework colored gray at player with duration 0
  289. wait 2 seconds
  290. deploy star firework colored orange at player with duration 0
  291. deploy star firework colored blue at player with duration 0
  292. deploy star firework colored red at player with duration 0
  293. if {UseiSkillMineração::%player%} is true:
  294. set {_Particola} to location of block
  295. spawn 10 of particle lava offset by 0, 0, 0 at {_Particola}
  296. if {@VisaoNoturna} is true:
  297. chance of {@VisaoNoturna%}%:
  298. apply potion of night vision 10 to the player for 5 seconds
  299. if {ItemExtra} is true:
  300. if {SkillMineracaoNivel::%player%} is 0:
  301. chance of {@%ItemExtra}%:
  302. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  303. if {SkillMineracaoNivel::%player%} is 1 or 2:
  304. chance of 2.7%:
  305. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  306. if {SkillMineracaoNivel::%player%} is 3 or 4:
  307. chance of 3.3%:
  308. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  309. if {SkillMineracaoNivel::%player%} is 5 or 6:
  310. chance of 3.8%:
  311. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  312. if {SkillMineracaoNivel::%player%} is 7 or 8:
  313. chance of 4.8%:
  314. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  315. if {SkillMineracaoNivel::%player%} is 9 or 10:
  316. chance of 6.3%:
  317. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  318. if {SkillMineracaoNivel::%player%} is 11:
  319. chance of 8.5%:
  320. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  321. if {UseiSkillMineração::%player%} is true:
  322. chance of 10%:
  323. drop 1 {@Item} of unbreaking 10 named "{@ItemExtraNome}" with lore "{@ItemExtraLore}"
  324. if player can't hold a dirt with name "&4&lNAO ME CABE AE":
  325. if {@InvCheio} is true:
  326. message "{@InvMensagem}"
  327.  
  328.  
  329. # #! ======================================================!# #
  330. # #! # # # # # # _-_-_-==SKILL MACHADO==-_-_-_ # # # # # # !# #
  331. # #! ======================================================!# #
  332.  
  333.  
  334. on rightclick with axe:
  335. if player is holding a axe:
  336. if player 's gamemode is creative:
  337. stop
  338. set {_espera} to difference between {SkillMachadoDelayUso::%player%} and now
  339. if {_espera} is less than {@SkillDelayMachado} seconds:
  340. send "{@MsgSkillDelay}."
  341. stop
  342. set {SkillMachadoDelayUso::%player%} to now
  343. set {UseiSkillMachado::%player%} to true
  344. wait 1 tick
  345. if {SkillMachadoNivel::%player%} is 0:
  346. apply potion of speed 1 to the player for {@SkillTempo} seconds
  347. apply potion of regeneration 1 to the player for {@SkillTempo} seconds
  348. if {SkillMachadoNivel::%player%} is 1 or 2 or 3:
  349. apply potion of regeneration 1 to the player for {@SkillTempo} seconds
  350. apply potion of strength 1 to the player for {@SkillTempo} seconds
  351. apply potion of fire resistance 1 to the player for {@SkillTempo} seconds
  352. apply potion of speed 1 to the player for {@SkillTempo} seconds
  353. if {SkillMachadoNivel::%player%} is 4 or 5 or 6:
  354. apply potion of regeneration 2 to the player for {@SkillTempo} seconds
  355. apply potion of strength 1 to the player for {@SkillTempo} seconds
  356. apply potion of fire resistance 2 to the player for {@SkillTempo} seconds
  357. apply potion of speed 2 to the player for {@SkillTempo} seconds
  358. if {SkillMachadoNivel::%player%} is 7 or 8 or 9:
  359. apply potion of regeneration 2 to the player for {@SkillTempo} seconds
  360. apply potion of strength 2 to the player for {@SkillTempo} seconds
  361. apply potion of fire resistance 2 to the player for {@SkillTempo} seconds
  362. apply potion of speed 2 to the player for {@SkillTempo} seconds
  363. if {SkillMachadoNivel::%player%} is 10 or 11:
  364. apply potion of regeneration 3 to the player for {@SkillTempo} seconds
  365. apply potion of strength 2 to the player for {@SkillTempo} seconds
  366. apply potion of fire resistance 3 to the player for {@SkillTempo} seconds
  367. apply potion of speed 2 to the player for {@SkillTempo} seconds
  368. send ""
  369. send "{@MsgSkillUsoMACHADO}"
  370. send ""
  371. if player is offline:
  372. set {PlayerOfiline::%player%} to true
  373. wait {@SkillTempo} seconds
  374. remove regeneration from the player
  375. remove strength from the player
  376. remove fire resistance from the player
  377. remove speed from the player
  378. set {UseiSkillMachado::%player%} to false
  379. on damage:
  380. attacker is a player
  381. victim is a player
  382. attacker is holding an axe:
  383. if player is attacker:
  384. if gamemode is survival:
  385. add 1 to {SkillMachadoXP::%attacker%}
  386. if {SkillMachadoXP::%attacker%} is 35:
  387. set {SkillMachadoNivel::%attacker%} to 1
  388. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv1"
  389. deploy star firework colored orange at attacker with duration 0
  390. deploy star firework colored blue at attacker with duration 0
  391. deploy star firework colored red at attacker with duration 0
  392. if {SkillMachadoXP::%attacker%} is 730:
  393. if {SkillMachadoNivel::%attacker%} is 1:
  394. set {SkillMachadoNivel::%attacker%} to 2
  395. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv2"
  396. deploy star firework colored orange at attacker with duration 0
  397. deploy star firework colored blue at attacker with duration 0
  398. deploy star firework colored red at attacker with duration 0
  399. if {SkillMachadoXP::%attacker%} is 1300:
  400. if {SkillMachadoNivel::%attacker%} is 2:
  401. set {SkillMachadoNivel::%attacker%} to 3
  402. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv3"
  403. deploy star firework colored orange at attacker with duration 0
  404. deploy star firework colored blue at attacker with duration 0
  405. deploy star firework colored red at attacker with duration 0
  406. if {SkillMachadoXP::%attacker%} is 1950:
  407. if {SkillMachadoNivel::%attacker%} is 3:
  408. set {SkillMachadoNivel::%attacker%} to 4
  409. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv4"
  410. deploy star firework colored orange at attacker with duration 0
  411. deploy star firework colored blue at attacker with duration 0
  412. deploy star firework colored red at attacker with duration 0
  413. if {SkillMachadoXP::%attacker%} is 2600:
  414. if {SkillMachadoNivel::%attacker%} is 4:
  415. set {SkillMachadoNivel::%attacker%} to 5
  416. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv5"
  417. deploy star firework colored orange at attacker with duration 0
  418. deploy star firework colored blue at attacker with duration 0
  419. deploy star firework colored red at attacker with duration 0
  420. if {SkillMachadoXP::%attacker%} is 3100:
  421. if {SkillMachadoNivel::%attacker%} is 5:
  422. set {SkillMachadoNivel::%attacker%} to 6
  423. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv6"
  424. deploy star firework colored orange at attacker with duration 0
  425. deploy star firework colored blue at attacker with duration 0
  426. deploy star firework colored red at attacker with duration 0
  427. if {SkillMachadoXP::%attacker%} is 3900:
  428. if {SkillMachadoNivel::%attacker%} is 6:
  429. set {SkillMachadoNivel::%attacker%} to 7
  430. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv7"
  431. deploy star firework colored orange at attacker with duration 0
  432. deploy star firework colored blue at attacker with duration 0
  433. deploy star firework colored red at attacker with duration 0
  434. if {SkillMachadoXP::%attacker%} is 4600:
  435. if {SkillMachadoNivel::%attacker%} is 7:
  436. set {SkillMachadoNivel::%attacker%} to 8
  437. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv8"
  438. deploy star firework colored orange at attacker with duration 0
  439. deploy star firework colored blue at attacker with duration 0
  440. deploy star firework colored red at attacker with duration 0
  441. if {SkillMachadoXP::%attacker%} is 5600:
  442. if {SkillMachadoNivel::%attacker%} is 8:
  443. set {SkillMachadoNivel::%attacker%} to 9
  444. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv9"
  445. deploy star firework colored orange at attacker with duration 0
  446. deploy star firework colored blue at attacker with duration 0
  447. deploy star firework colored red at attacker with duration 0
  448. if {SkillMachadoXP::%attacker%} is 7900:
  449. if {SkillMachadoNivel::%attacker%} is 9:
  450. set {SkillMachadoNivel::%attacker%} to 10
  451. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o Nv10"
  452. deploy star firework colored orange at attacker with duration 0
  453. deploy star firework colored blue at attacker with duration 0
  454. deploy star firework colored red at attacker with duration 0
  455. if {SkillMachadoXP::%attacker%} is 11000:
  456. if {SkillMachadoNivel::%attacker%} is 10:
  457. set {SkillMachadoNivel::%attacker%} to 11
  458. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill do machado para o NvMAX"
  459. deploy star firework colored orange at attacker with duration 0
  460. deploy star firework colored blue at attacker with duration 0
  461. deploy star firework colored red at attacker with duration 0
  462. wait 2 seconds
  463. deploy star firework colored black at attacker with duration 0
  464. deploy star firework colored pink at attacker with duration 0
  465. deploy star firework colored gray at attacker with duration 0
  466. wait 2 seconds
  467. deploy star firework colored orange at attacker with duration 0
  468. deploy star firework colored blue at attacker with duration 0
  469. deploy star firework colored red at attacker with duration 0
  470.  
  471.  
  472. # #! =====================================================!# #
  473. # #! # # # # # # _-_-_-==SKILL ESPADA==-_-_-_ # # # # # # !# #
  474. # #! =====================================================!# #
  475.  
  476.  
  477. on rightclick with sword:
  478. if player is holding a sword:
  479. if player 's gamemode is creative:
  480. stop
  481. set {_espera} to difference between {SkillEspadaDelayUso::%player%} and now
  482. if {_espera} is less than {@SkillDelayEspada} seconds:
  483. send "{@MsgSkillDelay}."
  484. stop
  485. set {SkillEspadaDelayUso::%player%} to now
  486. set {UseiSkillEspada::%player%} to true
  487. wait 1 tick
  488. if {SkillEspadaNivel::%player%} is 0:
  489. apply potion of speed 1 to the player for {@SkillTempo} seconds
  490. apply potion of regeneration 1 to the player for {@SkillTempo} seconds
  491. if {SkillEspadaNivel::%player%} is 1 or 2 or 3:
  492. apply potion of regeneration 1 to the player for {@SkillTempo} seconds
  493. apply potion of strength 1 to the player for {@SkillTempo} seconds
  494. apply potion of fire resistance 1 to the player for {@SkillTempo} seconds
  495. apply potion of speed 1 to the player for {@SkillTempo} seconds
  496. if {SkillEspadaNivel::%player%} is 4 or 5 or 6:
  497. apply potion of regeneration 2 to the player for {@SkillTempo} seconds
  498. apply potion of strength 1 to the player for {@SkillTempo} seconds
  499. apply potion of fire resistance 2 to the player for {@SkillTempo} seconds
  500. apply potion of speed 2 to the player for {@SkillTempo} seconds
  501. if {SkillEspadaNivel::%player%} is 7 or 8 or 9:
  502. apply potion of regeneration 2 to the player for {@SkillTempo} seconds
  503. apply potion of strength 2 to the player for {@SkillTempo} seconds
  504. apply potion of fire resistance 2 to the player for {@SkillTempo} seconds
  505. apply potion of speed 2 to the player for {@SkillTempo} seconds
  506. if {SkillEspadaNivel::%player%} is 10 or 11:
  507. apply potion of regeneration 3 to the player for {@SkillTempo} seconds
  508. apply potion of strength 2 to the player for {@SkillTempo} seconds
  509. apply potion of fire resistance 3 to the player for {@SkillTempo} seconds
  510. apply potion of speed 2 to the player for {@SkillTempo} seconds
  511. send ""
  512. send "{@MsgSkillUsoESPADA}"
  513. send ""
  514. if player is offline:
  515. set {PlayerOfiline::%player%} to true
  516. wait {@SkillTempo} seconds
  517. remove regeneration from the player
  518. remove strength from the player
  519. remove fire resistance from the player
  520. remove speed from the player
  521. set {UseiSkillEspada::%player%} to false
  522. on damage:
  523. attacker is a player
  524. victim is a player
  525. attacker is holding an sword:
  526. if player is attacker:
  527. if gamemode is survival:
  528. add 1 to {SkillEspadaXP::%attacker%}
  529. if {SkillEspadaXP::%attacker%} is 25:
  530. set {SkillEspadaNivel::%attacker%} to 1
  531. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv1"
  532. deploy star firework colored orange at attacker with duration 0
  533. deploy star firework colored blue at attacker with duration 0
  534. deploy star firework colored red at attacker with duration 0
  535. if {SkillEspadaXP::%attacker%} is 470:
  536. if {SkillEspadaNivel::%attacker%} is 1:
  537. set {SkillEspadaNivel::%attacker%} to 2
  538. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv2"
  539. deploy star firework colored orange at attacker with duration 0
  540. deploy star firework colored blue at attacker with duration 0
  541. deploy star firework colored red at attacker with duration 0
  542. if {SkillEspadaXP::%attacker%} is 890:
  543. if {SkillEspadaNivel::%attacker%} is 2:
  544. set {SkillEspadaNivel::%attacker%} to 3
  545. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv3"
  546. deploy star firework colored orange at attacker with duration 0
  547. deploy star firework colored blue at attacker with duration 0
  548. deploy star firework colored red at attacker with duration 0
  549. if {SkillEspadaXP::%attacker%} is 1600:
  550. if {SkillEspadaNivel::%attacker%} is 3:
  551. set {SkillEspadaNivel::%attacker%} to 4
  552. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv4"
  553. deploy star firework colored orange at attacker with duration 0
  554. deploy star firework colored blue at attacker with duration 0
  555. deploy star firework colored red at attacker with duration 0
  556. if {SkillEspadaXP::%attacker%} is 2300:
  557. if {SkillEspadaNivel::%attacker%} is 4:
  558. set {SkillEspadaNivel::%attacker%} to 5
  559. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv5"
  560. deploy star firework colored orange at attacker with duration 0
  561. deploy star firework colored blue at attacker with duration 0
  562. deploy star firework colored red at attacker with duration 0
  563. if {SkillEspadaXP::%attacker%} is 2900:
  564. if {SkillEspadaNivel::%attacker%} is 5:
  565. set {SkillEspadaNivel::%attacker%} to 6
  566. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv6"
  567. deploy star firework colored orange at attacker with duration 0
  568. deploy star firework colored blue at attacker with duration 0
  569. deploy star firework colored red at attacker with duration 0
  570. if {SkillEspadaXP::%attacker%} is 3500:
  571. if {SkillEspadaNivel::%attacker%} is 6:
  572. set {SkillEspadaNivel::%attacker%} to 7
  573. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv7"
  574. deploy star firework colored orange at attacker with duration 0
  575. deploy star firework colored blue at attacker with duration 0
  576. deploy star firework colored red at attacker with duration 0
  577. if {SkillEspadaXP::%attacker%} is 3900:
  578. if {SkillEspadaNivel::%attacker%} is 7:
  579. set {SkillEspadaNivel::%attacker%} to 8
  580. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv8"
  581. deploy star firework colored orange at attacker with duration 0
  582. deploy star firework colored blue at attacker with duration 0
  583. deploy star firework colored red at attacker with duration 0
  584. if {SkillEspadaXP::%attacker%} is 4700:
  585. if {SkillEspadaNivel::%attacker%} is 8:
  586. set {SkillEspadaNivel::%attacker%} to 9
  587. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv9"
  588. deploy star firework colored orange at attacker with duration 0
  589. deploy star firework colored blue at attacker with duration 0
  590. deploy star firework colored red at attacker with duration 0
  591. if {SkillEspadaXP::%attacker%} is 6700:
  592. if {SkillEspadaNivel::%attacker%} is 9:
  593. set {SkillEspadaNivel::%attacker%} to 10
  594. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o Nv10"
  595. deploy star firework colored orange at attacker with duration 0
  596. deploy star firework colored blue at attacker with duration 0
  597. deploy star firework colored red at attacker with duration 0
  598. if {SkillEspadaXP::%attacker%} is 8500:
  599. if {SkillEspadaNivel::%attacker%} is 10:
  600. set {SkillEspadaNivel::%attacker%} to 11
  601. broadcast "&7[&b@&7] &6&l%attacker% &aupou sua skill de espada para o NvMAX"
  602. deploy star firework colored orange at attacker with duration 0
  603. deploy star firework colored blue at attacker with duration 0
  604. deploy star firework colored red at attacker with duration 0
  605. wait 2 seconds
  606. deploy star firework colored black at attacker with duration 0
  607. deploy star firework colored pink at attacker with duration 0
  608. deploy star firework colored gray at attacker with duration 0
  609. wait 2 seconds
  610. deploy star firework colored orange at attacker with duration 0
  611. deploy star firework colored blue at attacker with duration 0
  612. deploy star firework colored red at attacker with duration 0
  613. # EXTRAS #
  614. on damage:
  615. add 1 to {SkillMachado/EspadaDANO::%attacker%}
  616. on place:
  617. add 1 to {SkillMineracaoBlocosConstruidos.%player%}
  618. on join:
  619. if {SkillMineracaoBlocos.%player%} is not set:
  620. set {SkillMineracaoBlocos.%player%} to 0
  621. if {SkillMineracaoBlocosConstruidos.%player%} is not set:
  622. set {SkillMineracaoBlocosConstruidos.%player%} to 0
  623. if {SkillMachado/EspadaDANO::%player%} is not set:
  624. set {SkillMachado/EspadaDANO::%player%} to 0
  625. if {SkillMineracaoXP::%player%} is not set:
  626. set {SkillMineracaoXP::%player%} to 0
  627. if {SkillEspadaXP::%player%} is not set:
  628. set {SkillEspadaXP::%player%} to 0
  629. if {SkillMachadoXP::%player%} is not set:
  630. set {SkillMachadoXP::%player%} to 0
  631. if {SkillMineracaoNivel::%player%} is not set:
  632. set {SkillMineracaoNivel::%player%} to 0
  633. if {SkillEspadaNivel::%player%} is not set:
  634. set {SkillEspadaNivel::%player%} to 0
  635. if {SkillMachadoNivel::%player%} is not set:
  636. set {SkillMachadoNivel::%player%} to 0
  637. if {UseiSkillMineração::%player%} is true:
  638. remove haste from the player
  639. remove night vision from the player
  640. remove speed from the player
  641. wait 1 tick
  642. set {UseiSkillMineração::%player%} to false
  643. set {PlayerOfiline::%player%} to false
  644. set {SkillEspadaDelayUso::%player%} to now
  645. wait 4 seconds
  646. send "&7[&c@&7] &b&l%player% &csua habilidade foi desativada." to player
  647. if {UseiSkillEspada::%player%} is true:
  648. remove regeneration from the player
  649. remove strength from the player
  650. remove fire resistance from the player
  651. remove speed from the player
  652. wait 1 tick
  653. set {UseiSkillEspada::%player%} to false
  654. set {PlayerOfiline::%player%} to false
  655. set {SkillEspadaDelayUso::%player%} to now
  656. wait 4 seconds
  657. send "&7[&c@&7] &b&l%player% &csua habilidade foi desativada." to player
  658. if {UseiSkillMachado::%player%} is true:
  659. remove regeneration from the player
  660. remove strength from the player
  661. remove fire resistance from the player
  662. remove speed from the player
  663. wait 1 tick
  664. set {UseiSkillMachado::%player%} to false
  665. set {PlayerOfiline::%player%} to false
  666. set {SkillEspadaDelayUso::%player%} to now
  667. wait 4 seconds
  668. send "&7[&c@&7] &b&l%player% &csua habilidade foi desativada." to player
  669. if {PlayerOfiline::%player%} is true:
  670. remove haste from the player
  671. remove night vision from the player
  672. remove speed from the player
  673. remove regeneration from the player
  674. remove strength from the player
  675. remove fire resistance from the player
  676. remove speed from the player
  677. wait 1 tick
  678. set {PlayerOfiline::%player%} to false
  679. set {UseiSkillMineração::%player%} to false
  680. set {UseiSkillEspada::%player%} to false
  681. set {UseiSkillMachado::%player%} to false
  682. set {SkillEspadaDelayUso::%player%} to now
  683. wait 4 seconds
  684. send "&7[&c@&7] &b&l%player% &csua habilidade foi desativada." to player
  685. variables:
  686. {SkillMachado/EspadaDANO::%player%} = 0
  687. {SkillMineracaoBlocosConstruidos.%player%} = 0
  688. {SkillMineracaoBlocos.%player%} = 0
  689. {UseiSkillMachado::%player%} = false
  690. {UseiSkillEspada::%player%} = false
  691. {UseiSkillMineração::%player%} = false
  692. {PlayerOfiline::%player%} = false
  693. {ItemExtra} = true
  694. {SkillMineracaoXP::%player%} = 0
  695. {SkillEspadaXP::%player%} = 0
  696. {SkillMachadoXP::%player%} = 0
  697. {SkillMineracaoNivel::%player%} = 0
  698. {SkillEspadaNivel::%player%} = 0
  699. {SkillMachadoNivel::%player%} = 0
  700.  
  701. # #! CREDITOS >.< DEICHA PQ VOCÊ É UM BOM MENINO !# #
  702. on script load:
  703. send "&f=========================" to console
  704. send " &bDynamic &eSkripts " to console
  705. send " &5&lSkills " to console
  706. send " &e&lversao 1.5 " to console
  707. send "&f=========================" to console
  708. command /DCSkills:
  709. trigger:
  710. send "&2» &bDynamic &eSkripts&f//&5Skills&f//&eversão 1.5&f//&dAutor: Epiic/Junior"
Advertisement
Add Comment
Please, Sign In to add comment