winnnx

Untitled

Aug 24th, 2019
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.15 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 # (Padrão: 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 # (Padrão: 2) #
  89. BonusBloco2: 2 # (Padrão: 2) #
  90. BonusBloco3: 2 # (Padrão: 2) #
  91.  
  92.  
  93. # * * #
  94. # * * #
  95. # * * #
  96. # * FIM DA CONFIGURAÇÃO! NÃO RECOMENDADO MECHER * #
  97. # * AQUI CASO NÃO SAIBAM MUITO BEM DE SCRIPT! * #
  98. # * * #
  99. # * * #
  100.  
  101.  
  102.  
  103.  
  104.  
  105. # * COMANDOS / NÃO MODIFICAR * #
  106.  
  107. command /drops:
  108. aliases: /drop
  109. trigger:
  110. if player has permission "WDrop.vender":
  111. open chest with 3 rows named "Drops" to (player)
  112. 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"
  113.  
  114.  
  115.  
  116.  
  117. # * ESSENCIAL / NÃO APAGAR/MODIFICAR * #
  118.  
  119. on inventory click:
  120. if inventory name of player's current inventory is "Drops":
  121. cancel event
  122. if clicked item is tnt:
  123. if "%click type%" = "LEFT":
  124. if {drops::%player%::total} >= 1:
  125. if player has permission "WDrops.bonus":
  126. set {_quantia} to {drops::%player%::total} * {@Drops} * {@Bonus}
  127. set {_quantia} to {_quantia} parsed as integer
  128. send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
  129. clear {drops::%player%::total}
  130. add {_quantia} to player's account
  131. close player's inventory
  132. else:
  133. set {_quantia} to {drops::%player%::total} * {@Drops}
  134. set {_quantia} to {_quantia} parsed as integer
  135. send "&aForam vendidos &fx%{drops::%player%::total}%&a drops por &f%{_quantia}%&a coins."
  136. clear {drops::%player%::total}
  137. add {_quantia} to player's account
  138. close player's inventory
  139. else:
  140. send "&cVocê não possui drops a serem vendidos."
  141. close player's inventory
  142. else if "%click type%" = "RIGHT":
  143. if {drops::%player%::total} >= 64:
  144. if player has permission "WDrops.bonus":
  145. set {_quantia} to 64 * {@Drops} * {@Bonus}
  146. set {_quantia} to {_quantia} parsed as integer
  147. send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
  148. remove 64 from {drops::%player%::total}
  149. add {_quantia} to player's account
  150. else:
  151. set {_quantia} to 64 * {@Drops}
  152. set {_quantia} to {_quantia} parsed as integer
  153. add {_quantia} to player's balance
  154. remove 64 from {drops::%player%::total}
  155. send "&aForam vendidos &f64x&a drops por &f%{_quantia}%&a coins."
  156. else:
  157. close player's inventory
  158. send "&cVocê não possui x64 drops para vender-los."
  159.  
  160.  
  161.  
  162. # * DROPS NA MINERAÇÃO / NÃO MODIFICAR * #
  163.  
  164. on break of {@Bloco1}:
  165. cancel event
  166. set event-block to air
  167. player is in "{@Mundo}"
  168. if player has permission "WDrops.dropsBonus.1":
  169. add {@Sem fortuna} * {@BonusBloco1} to {drops::%player%::total}
  170. if tool of the player is enchanted with fortune 1:
  171. add {@Fortuna1} * {@BonusBloco1} to {drops::%player%::total}
  172. if tool of the player is enchanted with fortune 2:
  173. add {@Fortuna2} * {@BonusBloco1} to {drops::%player%::total}
  174. if tool of the player is enchanted with fortune 3:
  175. add {@Fortuna3} * {@BonusBloco1} to {drops::%player%::total}
  176. if tool of the player is enchanted with fortune 4:
  177. add {@Fortuna4} * {@BonusBloco1} to {drops::%player%::total}
  178. if tool of the player is enchanted with fortune 5:
  179. add {@Fortuna5} * {@BonusBloco1} to {drops::%player%::total}
  180. if tool of the player is enchanted with fortune 6:
  181. add {@Fortuna6} * {@BonusBloco1} to {drops::%player%::total}
  182. if tool of the player is enchanted with fortune 7:
  183. add {@Fortuna7} * {@BonusBloco1} to {drops::%player%::total}
  184. if tool of the player is enchanted with fortune 8:
  185. add {@Fortuna8} * {@BonusBloco1} to {drops::%player%::total}
  186. if tool of the player is enchanted with fortune 9:
  187. add {@Fortuna9} * {@BonusBloco1} to {drops::%player%::total}
  188. if tool of the player is enchanted with fortune 10:
  189. add {@Fortuna10} * {@BonusBloco1} to {drops::%player%::total}
  190. else:
  191. add {@Sem fortuna} to {drops::%player%::total}
  192. if tool of the player is enchanted with fortune 1:
  193. add {@Fortuna1} to {drops::%player%::total}
  194. if tool of the player is enchanted with fortune 2:
  195. add {@Fortuna2} to {drops::%player%::total}
  196. if tool of the player is enchanted with fortune 3:
  197. add {@Fortuna3} to {drops::%player%::total}
  198. if tool of the player is enchanted with fortune 4:
  199. add {@Fortuna4} to {drops::%player%::total}
  200. if tool of the player is enchanted with fortune 5:
  201. add {@Fortuna5} to {drops::%player%::total}
  202. if tool of the player is enchanted with fortune 6:
  203. add {@Fortuna6} to {drops::%player%::total}
  204. if tool of the player is enchanted with fortune 7:
  205. add {@Fortuna7} to {drops::%player%::total}
  206. if tool of the player is enchanted with fortune 8:
  207. add {@Fortuna8} to {drops::%player%::total}
  208. if tool of the player is enchanted with fortune 9:
  209. add {@Fortuna9} to {drops::%player%::total}
  210. if tool of the player is enchanted with fortune 10:
  211. add {@Fortuna10} to {drops::%player%::total}
  212. on break of {@Bloco2}:
  213. cancel event
  214. set event-block to air
  215. player is in "{@Mundo}"
  216. if player has permission "WDrops.dropsBonus.2":
  217. add {@Sem fortuna} * {@BonusBloco2} to {drops::%player%::total}
  218. if tool of the player is enchanted with fortune 1:
  219. add {@Fortuna1} * {@BonusBloco2} to {drops::%player%::total}
  220. if tool of the player is enchanted with fortune 2:
  221. add {@Fortuna2} * {@BonusBloco2} to {drops::%player%::total}
  222. if tool of the player is enchanted with fortune 3:
  223. add {@Fortuna3} * {@BonusBloco2} to {drops::%player%::total}
  224. if tool of the player is enchanted with fortune 4:
  225. add {@Fortuna4} * {@BonusBloco2} to {drops::%player%::total}
  226. if tool of the player is enchanted with fortune 5:
  227. add {@Fortuna5} * {@BonusBloco2} to {drops::%player%::total}
  228. if tool of the player is enchanted with fortune 6:
  229. add {@Fortuna6} * {@BonusBloco2} to {drops::%player%::total}
  230. if tool of the player is enchanted with fortune 7:
  231. add {@Fortuna7} * {@BonusBloco2} to {drops::%player%::total}
  232. if tool of the player is enchanted with fortune 8:
  233. add {@Fortuna8} * {@BonusBloco2} to {drops::%player%::total}
  234. if tool of the player is enchanted with fortune 9:
  235. add {@Fortuna9} * {@BonusBloco2} to {drops::%player%::total}
  236. if tool of the player is enchanted with fortune 10:
  237. add {@Fortuna10} * {@BonusBloco2} to {drops::%player%::total}
  238. else:
  239. add {@Sem fortuna} to {drops::%player%::total}
  240. if tool of the player is enchanted with fortune 1:
  241. add {@Fortuna1} to {drops::%player%::total}
  242. if tool of the player is enchanted with fortune 2:
  243. add {@Fortuna2} to {drops::%player%::total}
  244. if tool of the player is enchanted with fortune 3:
  245. add {@Fortuna3} to {drops::%player%::total}
  246. if tool of the player is enchanted with fortune 4:
  247. add {@Fortuna4} to {drops::%player%::total}
  248. if tool of the player is enchanted with fortune 5:
  249. add {@Fortuna5} to {drops::%player%::total}
  250. if tool of the player is enchanted with fortune 6:
  251. add {@Fortuna6} to {drops::%player%::total}
  252. if tool of the player is enchanted with fortune 7:
  253. add {@Fortuna7} to {drops::%player%::total}
  254. if tool of the player is enchanted with fortune 8:
  255. add {@Fortuna8} to {drops::%player%::total}
  256. if tool of the player is enchanted with fortune 9:
  257. add {@Fortuna9} to {drops::%player%::total}
  258. if tool of the player is enchanted with fortune 10:
  259. add {@Fortuna10} to {drops::%player%::total}
  260. on break of {@Bloco3}:
  261. cancel event
  262. set event-block to air
  263. player is in "{@Mundo}"
  264. if player has permission "WDrops.dropsBonus.3":
  265. add {@Sem fortuna} * {@BonusBloco3} to {drops::%player%::total}
  266. if tool of the player is enchanted with fortune 1:
  267. add {@Fortuna1} * {@BonusBloco3} to {drops::%player%::total}
  268. if tool of the player is enchanted with fortune 2:
  269. add {@Fortuna2} * {@BonusBloco3} to {drops::%player%::total}
  270. if tool of the player is enchanted with fortune 3:
  271. add {@Fortuna3} * {@BonusBloco3} to {drops::%player%::total}
  272. if tool of the player is enchanted with fortune 4:
  273. add {@Fortuna4} * {@BonusBloco3} to {drops::%player%::total}
  274. if tool of the player is enchanted with fortune 5:
  275. add {@Fortuna5} * {@BonusBloco3} to {drops::%player%::total}
  276. if tool of the player is enchanted with fortune 6:
  277. add {@Fortuna6} * {@BonusBloco3} to {drops::%player%::total}
  278. if tool of the player is enchanted with fortune 7:
  279. add {@Fortuna7} * {@BonusBloco3} to {drops::%player%::total}
  280. if tool of the player is enchanted with fortune 8:
  281. add {@Fortuna8} * {@BonusBloco3} to {drops::%player%::total}
  282. if tool of the player is enchanted with fortune 9:
  283. add {@Fortuna9} * {@BonusBloco3} to {drops::%player%::total}
  284. if tool of the player is enchanted with fortune 10:
  285. add {@Fortuna10} * {@BonusBloco3} to {drops::%player%::total}
  286. else:
  287. add {@Sem fortuna} to {drops::%player%::total}
  288. if tool of the player is enchanted with fortune 1:
  289. add {@Fortuna1} to {drops::%player%::total}
  290. if tool of the player is enchanted with fortune 2:
  291. add {@Fortuna2} to {drops::%player%::total}
  292. if tool of the player is enchanted with fortune 3:
  293. add {@Fortuna3} to {drops::%player%::total}
  294. if tool of the player is enchanted with fortune 4:
  295. add {@Fortuna4} to {drops::%player%::total}
  296. if tool of the player is enchanted with fortune 5:
  297. add {@Fortuna5} to {drops::%player%::total}
  298. if tool of the player is enchanted with fortune 6:
  299. add {@Fortuna6} to {drops::%player%::total}
  300. if tool of the player is enchanted with fortune 7:
  301. add {@Fortuna7} to {drops::%player%::total}
  302. if tool of the player is enchanted with fortune 8:
  303. add {@Fortuna8} to {drops::%player%::total}
  304. if tool of the player is enchanted with fortune 9:
  305. add {@Fortuna9} to {drops::%player%::total}
  306. if tool of the player is enchanted with fortune 10:
  307. add {@Fortuna10} to {drops::%player%::total}
  308.  
  309.  
  310.  
  311. variables:
  312. {drops::%player%::total} = 0
Advertisement
Add Comment
Please, Sign In to add comment