Advertisement
winnnx

Untitled

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