Advertisement
winnnx

Untitled

Aug 24th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.24 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. # version: 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! * #
  61.  
  62. Bonus: 1.25
  63.  
  64. # * Mudança no ganho de drops por fortuna na picareta * #
  65. # * Por enquanto só tem mudanças de drops por fortuna até nível 10 * #
  66. # * Quando eu souber um jeito mais fácil de colocar mudanças por nível * #
  67. # * Sem ter que floodar o código do script eu trago a vocês! * #
  68. # * !! ATENÇÃO, PARA TUDO DER CERTO NESTA PARTE DA CONFIGURAÇÃO !! * #
  69. # * !! UM AVISO, ESTE SCRIPT ELE PEGA A QUANTIDADE DE DROPS DE NIVEL DA FORTUNA + QUANTIDADE DE DROPS SEM FORTUNA !! * #
  70. # * !! OU SEJA, CASO VOCÊ COLOQUE "100" NA FORTUNA10 IRÁ VIR "101" DROPS !! * #
  71.  
  72. Sem fortuna: 1
  73. Fortuna1: 1
  74. Fortuna2: 2
  75. Fortuna3: 3
  76. Fortuna4: 4
  77. Fortuna5: 5
  78. Fortuna6: 6
  79. Fortuna7: 7
  80. Fortuna8: 8
  81. Fortuna9: 9
  82. Fortuna10: 10
  83.  
  84. # * Bonus de Drops! Este bonus é parecido com de ganhos! * #
  85. # * Só que esse multiplica os drops ganhos! * #
  86. # * Configurável por BLOCO! * #
  87.  
  88. BonusBloco1: 2
  89. BonusBloco2: 2
  90. BonusBloco3: 2
  91.  
  92. # * Mensagens nas ActionBar * #
  93. # * Mensagem de quando quebrar o bloco1 * #
  94. # * Lembre-se de mudar aqui quando mudar a mudança no ganho de drops por fortuna * #
  95.  
  96.  
  97. # * * #
  98. # * * #
  99. # * * #
  100. # * FIM DA CONFIGURAÇÃO! NÃO RECOMENDADO MECHER * #
  101. # * AQUI CASO NÃO SAIBAM MUITO BEM DE SCRIPT! * #
  102. # * * #
  103. # * * #
  104.  
  105.  
  106.  
  107.  
  108.  
  109. # * COMANDOS / NÃO MODIFICAR * #
  110.  
  111. command /drops:
  112. aliases: /drop
  113. trigger:
  114. if player has permission "WDrop.vender":
  115. open chest with 3 rows named "Drops" to (player)
  116. 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"
  117.  
  118.  
  119.  
  120.  
  121. # * ESSENCIAL / NÃO APAGAR/MODIFICAR * #
  122.  
  123. on inventory click:
  124. if inventory name of player's current inventory is "Drops":
  125. cancel event
  126. if clicked item is tnt:
  127. if "%click type%" = "LEFT":
  128. if {drops::%player%::total} >= 1:
  129. if player has permission "WDrops.bonus":
  130. set {_quantia} to {drops::%player%::total} * {@Drops} * {@Bonus}
  131. set {_quantia} to {_quantia} parsed as integer
  132. send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
  133. clear {drops::%player%::total}
  134. add {_quantia} to player's account
  135. close player's inventory
  136. else:
  137. set {_quantia} to {drops::%player%::total} * {@Drops}
  138. set {_quantia} to {_quantia} parsed as integer
  139. send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
  140. clear {drops::%player%::total}
  141. add {_quantia} to player's account
  142. close player's inventory
  143. else:
  144. send "&cVocê não possui drops a serem vendidos."
  145. close player's inventory
  146. else if "%click type%" = "RIGHT":
  147. if {drops::%player%::total} >= 64:
  148. if player has permission "WDrops.bonus":
  149. set {_quantia} to 64 * {@Drops} * {@Bonus}
  150. set {_quantia} to {_quantia} parsed as integer
  151. send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
  152. remove 64 from {drops::%player%::total}
  153. add {_quantia} to player's account
  154. else:
  155. set {_quantia} to 64 * {@Drops}
  156. set {_quantia} to {_quantia} parsed as integer
  157. add {_quantia} to player's balance
  158. remove 64 from {drops::%player%::total}
  159. send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
  160. else:
  161. close player's inventory
  162. send "&cVocê não possui x64 drops para vender-los."
  163.  
  164.  
  165.  
  166. # * DROPS NA MINERAÇÃO / NÃO MODIFICAR * #
  167.  
  168. on break of {@Bloco1}:
  169. cancel event
  170. set event-block to air
  171. player is in "{@Mundo}"
  172. if player has permission "WDrops.dropsBonus.1":
  173. add {@Sem fortuna} * {@BonusBloco1} to {drops::%player%::total}
  174. if tool of the player is enchanted with fortune 1:
  175. add {@Fortuna1} * {@BonusBloco1} to {drops::%player%::total}
  176. if tool of the player is enchanted with fortune 2:
  177. add {@Fortuna2} * {@BonusBloco1} to {drops::%player%::total}
  178. if tool of the player is enchanted with fortune 3:
  179. add {@Fortuna3} * {@BonusBloco1} to {drops::%player%::total}
  180. if tool of the player is enchanted with fortune 4:
  181. add {@Fortuna4} * {@BonusBloco1} to {drops::%player%::total}
  182. if tool of the player is enchanted with fortune 5:
  183. add {@Fortuna5} * {@BonusBloco1} to {drops::%player%::total}
  184. if tool of the player is enchanted with fortune 6:
  185. add {@Fortuna6} * {@BonusBloco1} to {drops::%player%::total}
  186. if tool of the player is enchanted with fortune 7:
  187. add {@Fortuna7} * {@BonusBloco1} to {drops::%player%::total}
  188. if tool of the player is enchanted with fortune 8:
  189. add {@Fortuna8} * {@BonusBloco1} to {drops::%player%::total}
  190. if tool of the player is enchanted with fortune 9:
  191. add {@Fortuna9} * {@BonusBloco1} to {drops::%player%::total}
  192. if tool of the player is enchanted with fortune 10:
  193. add {@Fortuna10} * {@BonusBloco1} to {drops::%player%::total}
  194. else:
  195. add {@Sem fortuna} to {drops::%player%::total}
  196. if tool of the player is enchanted with fortune 1:
  197. add {@Fortuna1} to {drops::%player%::total}
  198. if tool of the player is enchanted with fortune 2:
  199. add {@Fortuna2} to {drops::%player%::total}
  200. if tool of the player is enchanted with fortune 3:
  201. add {@Fortuna3} to {drops::%player%::total}
  202. if tool of the player is enchanted with fortune 4:
  203. add {@Fortuna4} to {drops::%player%::total}
  204. if tool of the player is enchanted with fortune 5:
  205. add {@Fortuna5} to {drops::%player%::total}
  206. if tool of the player is enchanted with fortune 6:
  207. add {@Fortuna6} to {drops::%player%::total}
  208. if tool of the player is enchanted with fortune 7:
  209. add {@Fortuna7} to {drops::%player%::total}
  210. if tool of the player is enchanted with fortune 8:
  211. add {@Fortuna8} to {drops::%player%::total}
  212. if tool of the player is enchanted with fortune 9:
  213. add {@Fortuna9} to {drops::%player%::total}
  214. if tool of the player is enchanted with fortune 10:
  215. add {@Fortuna10} to {drops::%player%::total}
  216. on break of {@Bloco2}:
  217. cancel event
  218. set event-block to air
  219. player is in "{@Mundo}"
  220. if player has permission "WDrops.dropsBonus.2":
  221. add {@Sem fortuna} * {@BonusBloco2} to {drops::%player%::total}
  222. if tool of the player is enchanted with fortune 1:
  223. add {@Fortuna1} * {@BonusBloco2} to {drops::%player%::total}
  224. if tool of the player is enchanted with fortune 2:
  225. add {@Fortuna2} * {@BonusBloco2} to {drops::%player%::total}
  226. if tool of the player is enchanted with fortune 3:
  227. add {@Fortuna3} * {@BonusBloco2} to {drops::%player%::total}
  228. if tool of the player is enchanted with fortune 4:
  229. add {@Fortuna4} * {@BonusBloco2} to {drops::%player%::total}
  230. if tool of the player is enchanted with fortune 5:
  231. add {@Fortuna5} * {@BonusBloco2} to {drops::%player%::total}
  232. if tool of the player is enchanted with fortune 6:
  233. add {@Fortuna6} * {@BonusBloco2} to {drops::%player%::total}
  234. if tool of the player is enchanted with fortune 7:
  235. add {@Fortuna7} * {@BonusBloco2} to {drops::%player%::total}
  236. if tool of the player is enchanted with fortune 8:
  237. add {@Fortuna8} * {@BonusBloco2} to {drops::%player%::total}
  238. if tool of the player is enchanted with fortune 9:
  239. add {@Fortuna9} * {@BonusBloco2} to {drops::%player%::total}
  240. if tool of the player is enchanted with fortune 10:
  241. add {@Fortuna10} * {@BonusBloco2} to {drops::%player%::total}
  242. else:
  243. add {@Sem fortuna} to {drops::%player%::total}
  244. if tool of the player is enchanted with fortune 1:
  245. add {@Fortuna1} to {drops::%player%::total}
  246. if tool of the player is enchanted with fortune 2:
  247. add {@Fortuna2} to {drops::%player%::total}
  248. if tool of the player is enchanted with fortune 3:
  249. add {@Fortuna3} to {drops::%player%::total}
  250. if tool of the player is enchanted with fortune 4:
  251. add {@Fortuna4} to {drops::%player%::total}
  252. if tool of the player is enchanted with fortune 5:
  253. add {@Fortuna5} to {drops::%player%::total}
  254. if tool of the player is enchanted with fortune 6:
  255. add {@Fortuna6} to {drops::%player%::total}
  256. if tool of the player is enchanted with fortune 7:
  257. add {@Fortuna7} to {drops::%player%::total}
  258. if tool of the player is enchanted with fortune 8:
  259. add {@Fortuna8} to {drops::%player%::total}
  260. if tool of the player is enchanted with fortune 9:
  261. add {@Fortuna9} to {drops::%player%::total}
  262. if tool of the player is enchanted with fortune 10:
  263. add {@Fortuna10} to {drops::%player%::total}
  264. on break of {@Bloco3}:
  265. cancel event
  266. set event-block to air
  267. player is in "{@Mundo}"
  268. if player has permission "WDrops.dropsBonus.3":
  269. add {@Sem fortuna} * {@BonusBloco3} to {drops::%player%::total}
  270. if tool of the player is enchanted with fortune 1:
  271. add {@Fortuna1} * {@BonusBloco3} to {drops::%player%::total}
  272. if tool of the player is enchanted with fortune 2:
  273. add {@Fortuna2} * {@BonusBloco3} to {drops::%player%::total}
  274. if tool of the player is enchanted with fortune 3:
  275. add {@Fortuna3} * {@BonusBloco3} to {drops::%player%::total}
  276. if tool of the player is enchanted with fortune 4:
  277. add {@Fortuna4} * {@BonusBloco3} to {drops::%player%::total}
  278. if tool of the player is enchanted with fortune 5:
  279. add {@Fortuna5} * {@BonusBloco3} to {drops::%player%::total}
  280. if tool of the player is enchanted with fortune 6:
  281. add {@Fortuna6} * {@BonusBloco3} to {drops::%player%::total}
  282. if tool of the player is enchanted with fortune 7:
  283. add {@Fortuna7} * {@BonusBloco3} to {drops::%player%::total}
  284. if tool of the player is enchanted with fortune 8:
  285. add {@Fortuna8} * {@BonusBloco3} to {drops::%player%::total}
  286. if tool of the player is enchanted with fortune 9:
  287. add {@Fortuna9} * {@BonusBloco3} to {drops::%player%::total}
  288. if tool of the player is enchanted with fortune 10:
  289. add {@Fortuna10} * {@BonusBloco3} to {drops::%player%::total}
  290. else:
  291. add {@Sem fortuna} to {drops::%player%::total}
  292. if tool of the player is enchanted with fortune 1:
  293. add {@Fortuna1} to {drops::%player%::total}
  294. if tool of the player is enchanted with fortune 2:
  295. add {@Fortuna2} to {drops::%player%::total}
  296. if tool of the player is enchanted with fortune 3:
  297. add {@Fortuna3} to {drops::%player%::total}
  298. if tool of the player is enchanted with fortune 4:
  299. add {@Fortuna4} to {drops::%player%::total}
  300. if tool of the player is enchanted with fortune 5:
  301. add {@Fortuna5} to {drops::%player%::total}
  302. if tool of the player is enchanted with fortune 6:
  303. add {@Fortuna6} to {drops::%player%::total}
  304. if tool of the player is enchanted with fortune 7:
  305. add {@Fortuna7} to {drops::%player%::total}
  306. if tool of the player is enchanted with fortune 8:
  307. add {@Fortuna8} to {drops::%player%::total}
  308. if tool of the player is enchanted with fortune 9:
  309. add {@Fortuna9} to {drops::%player%::total}
  310. if tool of the player is enchanted with fortune 10:
  311. add {@Fortuna10} to {drops::%player%::total}
  312.  
  313.  
  314.  
  315. variables:
  316. {drops::%player%::total} = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement