winnnx

Untitled

Aug 24th, 2019
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.25 KB | None | 0 0
  1.  
  2.  
  3.  
  4. # +------------------------------------------------+ #
  5. # | Olá! | #
  6. # | Venho apresentar meu primeiro script! | #
  7. # | Bem! Oque este script faz? | #
  8. # | Ele adiciona /drops! | #
  9. # | Por enquanto só funciona na mineração! | #
  10.  
  11. # | O plugin ainda está bem simples! | #
  12. # | Mas mesmo assim é bastante configurável! | #
  13.  
  14. # | Você pode mudar algumas coisas | #
  15. # | Caso não entenda muito bem de script | #
  16. # | Por isso deixei algumas opções para você! | #
  17. # +------------------------------------------------+ #
  18.  
  19. # Permissões:
  20. # - WDrop.vender // Serve para pode usar o comando "/drops", ele abrirá um menu para vender todos os drops
  21. # - WDrop.bonus // Serve para vender seus drops com alguma porcentagem a mais!
  22. # - Wdrop.dropsBonus.1 // Serve para usar o drop bonus no bloco1
  23. # - Wdrop.dropsBonus.2 // Serve para usar o drop bonus no bloco2
  24. # - Wdrop.dropsBonus.3 // Serve para usar o drop bonus no bloco3
  25. #
  26. # BETAVersion: 1.0
  27. #
  28.  
  29. # * * #
  30. # * * #
  31. # * * #
  32. # * CONFIGURAÇÃO, AQUI VOCÊ PODE EDITAR O SCRIPT! * #
  33. # * * #
  34. # * * #
  35. # * * #
  36.  
  37. options:
  38.  
  39. # * Mundo que irá funcionar o sistema de /drops * #
  40.  
  41. Mundo: plains
  42.  
  43. # * Blocos que irá contar no sistema de /drops * #
  44. # * Lembre-se de não usar "_" ou letras maiúsculuas (Recomendado) * #
  45. # * Lembre-se também de não usar nenhum ID do minecraft, apenas nomes! * #
  46. # * Em breve mais blocos poderão ser adicionados! * #
  47.  
  48. Bloco1: stone
  49. Bloco2: lapis ore
  50. Bloco3: diamond ore
  51.  
  52. # * Preço da venda dos drops por item! * #
  53.  
  54. Drops: 1000
  55.  
  56. # * Bonus VIP, serve para multiplicar os ganhos nos /drops * #
  57. # * Quando configurar isto, lembre-se que isso irá multiplicar em porcentagem mas pode ser "x" também! * #
  58. # * Exemplo, se o Bonus for 1.3, irá aumentar 30% os seus ganhos no /drops * #
  59. # * Se for 1.02, irá aumentar 2% os seus ganhos no /drops, se for 500 irá aumentar 500x os seus ganhos no /drops * #
  60. # * Caso você coloque algum número abaixo de 1, irá diminuir os ganhos! exemplo: 0.5 (isto irá diminuir os ganhos em 50%) * #
  61. # * Coloque como 1 para desativar * #
  62.  
  63. Bonus: 1.25 # (Padrão: 1.25) #
  64.  
  65. # * Mudança no ganho de drops por fortuna na picareta * #
  66. # * Por enquanto só tem mudanças de drops por fortuna até nível 10 * #
  67. # * Quando eu souber um jeito mais fácil de colocar mudanças por nível * #
  68. # * Sem ter que floodar o código do script eu trago a vocês! * #
  69. # * !! ATENÇÃO, PARA TUDO DER CERTO NESTA PARTE DA CONFIGURAÇÃO !! * #
  70. # * !! UM AVISO, ESTE SCRIPT ELE PEGA A QUANTIDADE DE DROPS DE NIVEL DA FORTUNA + QUANTIDADE DE DROPS SEM FORTUNA !! * #
  71. # * !! OU SEJA, CASO VOCÊ COLOQUE "100" NA FORTUNA10 IRÁ VIR "101" DROPS !! * #
  72.  
  73. Sem fortuna: 1
  74. Fortuna1: 1
  75. Fortuna2: 2
  76. Fortuna3: 3
  77. Fortuna4: 4
  78. Fortuna5: 5
  79. Fortuna6: 6
  80. Fortuna7: 7
  81. Fortuna8: 8
  82. Fortuna9: 9
  83. Fortuna10: 10
  84.  
  85. # * Bonus de Drops! Este bonus é parecido com de ganhos! * #
  86. # * Só que esse multiplica os drops ganhos! * #
  87. # * Configurável por BLOCO! * #
  88.  
  89. BonusBloco1: 2 # (Padrão: 2) #
  90. BonusBloco2: 2 # (Padrão: 2) #
  91. BonusBloco3: 2 # (Padrão: 2) #
  92.  
  93.  
  94. # * * #
  95. # * * #
  96. # * * #
  97. # * FIM DA CONFIGURAÇÃO! NÃO RECOMENDADO MECHER * #
  98. # * AQUI CASO NÃO SAIBAM MUITO BEM DE SCRIPT! * #
  99. # * * #
  100. # * * #
  101.  
  102.  
  103.  
  104.  
  105.  
  106. # * COMANDOS / NÃO MODIFICAR * #
  107.  
  108. command /drops:
  109. aliases: /drop
  110. trigger:
  111. if player has permission "WDrop.vender":
  112. open chest with 3 rows named "Drops" to (player)
  113. set slot 13 of player's current inventory to tnt named "&eVender Tudo" with lore "||&7Botão esquerdo: &fVende todos os drops||&7Botão direito: &fVende 64x drops||||&7Quantidade:||&e%{drops::%player%::total}% &fde drops||||&8* Você estará vendendo seus drops! *&7"
  114.  
  115.  
  116.  
  117.  
  118. # * ESSENCIAL / NÃO APAGAR/MODIFICAR * #
  119.  
  120. on inventory click:
  121. if inventory name of player's current inventory is "Drops":
  122. cancel event
  123. if clicked item is tnt:
  124. if "%click type%" = "LEFT":
  125. if {drops::%player%::total} >= 1:
  126. if player has permission "WDrops.bonus":
  127. set {_quantia} to {drops::%player%::total} * {@Drops} * {@Bonus}
  128. set {_quantia} to {_quantia} parsed as integer
  129. send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
  130. clear {drops::%player%::total}
  131. add {_quantia} to player's account
  132. close player's inventory
  133. else:
  134. set {_quantia} to {drops::%player%::total} * {@Drops}
  135. set {_quantia} to {_quantia} parsed as integer
  136. send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
  137. clear {drops::%player%::total}
  138. add {_quantia} to player's account
  139. close player's inventory
  140. else:
  141. send "&cVocê não possui drops a serem vendidos."
  142. close player's inventory
  143. else if "%click type%" = "RIGHT":
  144. if {drops::%player%::total} >= 64:
  145. if player has permission "WDrops.bonus":
  146. set {_quantia} to 64 * {@Drops} * {@Bonus}
  147. set {_quantia} to {_quantia} parsed as integer
  148. send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
  149. remove 64 from {drops::%player%::total}
  150. add {_quantia} to player's account
  151. else:
  152. set {_quantia} to 64 * {@Drops}
  153. set {_quantia} to {_quantia} parsed as integer
  154. add {_quantia} to player's balance
  155. remove 64 from {drops::%player%::total}
  156. send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
  157. else:
  158. close player's inventory
  159. send "&cVocê não possui x64 drops para vender-los."
  160.  
  161.  
  162.  
  163. # * DROPS NA MINERAÇÃO / NÃO MODIFICAR * #
  164.  
  165. on break of {@Bloco1}:
  166. cancel event
  167. set event-block to air
  168. player is in "{@Mundo}"
  169. if player has permission "WDrops.dropsBonus.1":
  170. add {@Sem fortuna} * {@BonusBloco1} to {drops::%player%::total}
  171. if tool of the player is enchanted with fortune 1:
  172. add {@Fortuna1} * {@BonusBloco1} to {drops::%player%::total}
  173. if tool of the player is enchanted with fortune 2:
  174. add {@Fortuna2} * {@BonusBloco1} to {drops::%player%::total}
  175. if tool of the player is enchanted with fortune 3:
  176. add {@Fortuna3} * {@BonusBloco1} to {drops::%player%::total}
  177. if tool of the player is enchanted with fortune 4:
  178. add {@Fortuna4} * {@BonusBloco1} to {drops::%player%::total}
  179. if tool of the player is enchanted with fortune 5:
  180. add {@Fortuna5} * {@BonusBloco1} to {drops::%player%::total}
  181. if tool of the player is enchanted with fortune 6:
  182. add {@Fortuna6} * {@BonusBloco1} to {drops::%player%::total}
  183. if tool of the player is enchanted with fortune 7:
  184. add {@Fortuna7} * {@BonusBloco1} to {drops::%player%::total}
  185. if tool of the player is enchanted with fortune 8:
  186. add {@Fortuna8} * {@BonusBloco1} to {drops::%player%::total}
  187. if tool of the player is enchanted with fortune 9:
  188. add {@Fortuna9} * {@BonusBloco1} to {drops::%player%::total}
  189. if tool of the player is enchanted with fortune 10:
  190. add {@Fortuna10} * {@BonusBloco1} to {drops::%player%::total}
  191. else:
  192. add {@Sem fortuna} to {drops::%player%::total}
  193. if tool of the player is enchanted with fortune 1:
  194. add {@Fortuna1} to {drops::%player%::total}
  195. if tool of the player is enchanted with fortune 2:
  196. add {@Fortuna2} to {drops::%player%::total}
  197. if tool of the player is enchanted with fortune 3:
  198. add {@Fortuna3} to {drops::%player%::total}
  199. if tool of the player is enchanted with fortune 4:
  200. add {@Fortuna4} to {drops::%player%::total}
  201. if tool of the player is enchanted with fortune 5:
  202. add {@Fortuna5} to {drops::%player%::total}
  203. if tool of the player is enchanted with fortune 6:
  204. add {@Fortuna6} to {drops::%player%::total}
  205. if tool of the player is enchanted with fortune 7:
  206. add {@Fortuna7} to {drops::%player%::total}
  207. if tool of the player is enchanted with fortune 8:
  208. add {@Fortuna8} to {drops::%player%::total}
  209. if tool of the player is enchanted with fortune 9:
  210. add {@Fortuna9} to {drops::%player%::total}
  211. if tool of the player is enchanted with fortune 10:
  212. add {@Fortuna10} to {drops::%player%::total}
  213. on break of {@Bloco2}:
  214. cancel event
  215. set event-block to air
  216. player is in "{@Mundo}"
  217. if player has permission "WDrops.dropsBonus.2":
  218. add {@Sem fortuna} * {@BonusBloco2} to {drops::%player%::total}
  219. if tool of the player is enchanted with fortune 1:
  220. add {@Fortuna1} * {@BonusBloco2} to {drops::%player%::total}
  221. if tool of the player is enchanted with fortune 2:
  222. add {@Fortuna2} * {@BonusBloco2} to {drops::%player%::total}
  223. if tool of the player is enchanted with fortune 3:
  224. add {@Fortuna3} * {@BonusBloco2} to {drops::%player%::total}
  225. if tool of the player is enchanted with fortune 4:
  226. add {@Fortuna4} * {@BonusBloco2} to {drops::%player%::total}
  227. if tool of the player is enchanted with fortune 5:
  228. add {@Fortuna5} * {@BonusBloco2} to {drops::%player%::total}
  229. if tool of the player is enchanted with fortune 6:
  230. add {@Fortuna6} * {@BonusBloco2} to {drops::%player%::total}
  231. if tool of the player is enchanted with fortune 7:
  232. add {@Fortuna7} * {@BonusBloco2} to {drops::%player%::total}
  233. if tool of the player is enchanted with fortune 8:
  234. add {@Fortuna8} * {@BonusBloco2} to {drops::%player%::total}
  235. if tool of the player is enchanted with fortune 9:
  236. add {@Fortuna9} * {@BonusBloco2} to {drops::%player%::total}
  237. if tool of the player is enchanted with fortune 10:
  238. add {@Fortuna10} * {@BonusBloco2} to {drops::%player%::total}
  239. else:
  240. add {@Sem fortuna} to {drops::%player%::total}
  241. if tool of the player is enchanted with fortune 1:
  242. add {@Fortuna1} to {drops::%player%::total}
  243. if tool of the player is enchanted with fortune 2:
  244. add {@Fortuna2} to {drops::%player%::total}
  245. if tool of the player is enchanted with fortune 3:
  246. add {@Fortuna3} to {drops::%player%::total}
  247. if tool of the player is enchanted with fortune 4:
  248. add {@Fortuna4} to {drops::%player%::total}
  249. if tool of the player is enchanted with fortune 5:
  250. add {@Fortuna5} to {drops::%player%::total}
  251. if tool of the player is enchanted with fortune 6:
  252. add {@Fortuna6} to {drops::%player%::total}
  253. if tool of the player is enchanted with fortune 7:
  254. add {@Fortuna7} to {drops::%player%::total}
  255. if tool of the player is enchanted with fortune 8:
  256. add {@Fortuna8} to {drops::%player%::total}
  257. if tool of the player is enchanted with fortune 9:
  258. add {@Fortuna9} to {drops::%player%::total}
  259. if tool of the player is enchanted with fortune 10:
  260. add {@Fortuna10} to {drops::%player%::total}
  261. on break of {@Bloco3}:
  262. cancel event
  263. set event-block to air
  264. player is in "{@Mundo}"
  265. if player has permission "WDrops.dropsBonus.3":
  266. add {@Sem fortuna} * {@BonusBloco3} to {drops::%player%::total}
  267. if tool of the player is enchanted with fortune 1:
  268. add {@Fortuna1} * {@BonusBloco3} to {drops::%player%::total}
  269. if tool of the player is enchanted with fortune 2:
  270. add {@Fortuna2} * {@BonusBloco3} to {drops::%player%::total}
  271. if tool of the player is enchanted with fortune 3:
  272. add {@Fortuna3} * {@BonusBloco3} to {drops::%player%::total}
  273. if tool of the player is enchanted with fortune 4:
  274. add {@Fortuna4} * {@BonusBloco3} to {drops::%player%::total}
  275. if tool of the player is enchanted with fortune 5:
  276. add {@Fortuna5} * {@BonusBloco3} to {drops::%player%::total}
  277. if tool of the player is enchanted with fortune 6:
  278. add {@Fortuna6} * {@BonusBloco3} to {drops::%player%::total}
  279. if tool of the player is enchanted with fortune 7:
  280. add {@Fortuna7} * {@BonusBloco3} to {drops::%player%::total}
  281. if tool of the player is enchanted with fortune 8:
  282. add {@Fortuna8} * {@BonusBloco3} to {drops::%player%::total}
  283. if tool of the player is enchanted with fortune 9:
  284. add {@Fortuna9} * {@BonusBloco3} to {drops::%player%::total}
  285. if tool of the player is enchanted with fortune 10:
  286. add {@Fortuna10} * {@BonusBloco3} to {drops::%player%::total}
  287. else:
  288. add {@Sem fortuna} to {drops::%player%::total}
  289. if tool of the player is enchanted with fortune 1:
  290. add {@Fortuna1} to {drops::%player%::total}
  291. if tool of the player is enchanted with fortune 2:
  292. add {@Fortuna2} to {drops::%player%::total}
  293. if tool of the player is enchanted with fortune 3:
  294. add {@Fortuna3} to {drops::%player%::total}
  295. if tool of the player is enchanted with fortune 4:
  296. add {@Fortuna4} to {drops::%player%::total}
  297. if tool of the player is enchanted with fortune 5:
  298. add {@Fortuna5} to {drops::%player%::total}
  299. if tool of the player is enchanted with fortune 6:
  300. add {@Fortuna6} to {drops::%player%::total}
  301. if tool of the player is enchanted with fortune 7:
  302. add {@Fortuna7} to {drops::%player%::total}
  303. if tool of the player is enchanted with fortune 8:
  304. add {@Fortuna8} to {drops::%player%::total}
  305. if tool of the player is enchanted with fortune 9:
  306. add {@Fortuna9} to {drops::%player%::total}
  307. if tool of the player is enchanted with fortune 10:
  308. add {@Fortuna10} to {drops::%player%::total}
  309.  
  310.  
  311.  
  312. variables:
  313. {drops::%player%::total} = 0
Advertisement
Add Comment
Please, Sign In to add comment