Advertisement
TheGeneX

BJMercadoNegro

Jul 14th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.97 KB | None | 0 0
  1. variables:
  2. {almas.%player%} = 0
  3. options:
  4. Item1: 2
  5. Item2: 2
  6. Item3: 2
  7. Item4: 2
  8. Item5: 2
  9. Item6: 4
  10. Item7: 4
  11. Item8: 4
  12. Item9: 4
  13. Item10: 4
  14. Item12: 6
  15. Item13: 6
  16. Item14: 6
  17. Item15: 6
  18. Item16: 6
  19. Item18: 8
  20.  
  21.  
  22. on death:
  23. chance of 75%:
  24. give the victim's skull to the attacker
  25. stop
  26. command /mercadonegro:
  27. trigger:
  28. open chest with 3 rows named "&5Mercado Negro" to player
  29. wait 1 tick
  30. format slot 11 of player with a Ender Pearl named "&aLoja" with lore "&7Clique aqui para abrir a loja do mercado negro." to run [make player execute command "/mercadonegroloja"]
  31. format slot 15 of player with a player head named "&aAlmas - Vender" with lore "&7Clique aqui para vender suas almas." to run [make player execute command "/venderalmas1"]
  32. command /mercadonegroloja:
  33. trigger:
  34. open chest with 6 rows named "&5Mercado Negro &8-&a Loja (1/3)" to player
  35. wait 1 tick
  36. format slot 13 of player with a Diamond Helmet of Protection 5 and Unbreaking 5 named "&aCapacete P5INQ5" with lore "&aPreço: {@Item1} Almas" to run [make player execute command "/compraritem1"]
  37. format slot 22 of player with a Diamond Chestplate of Protection 5 and Unbreaking 5 named "&aPeitoral P5INQ5" with lore "&aPreço: {@Item2} Almas" to run [make player execute command "/compraritem2"]
  38. format slot 31 of player with a Diamond Leggings of Protection 5 and Unbreaking 5 named "&aCalça P5INQ5" with lore "&aPreço: {@Item3} Almas" to run [make player execute command "/compraritem3"]
  39. format slot 40 of player with a Diamond Boots of Protection 5 and Unbreaking 5 named "&aBota P5INQ5" with lore "&aPreço: {@Item4} Almas" to run [make player execute command "/compraritem4"]
  40. format slot 23 of player with 64 Golden Apple:1 named "&cMaçã do CAPIROTO" with lore "&aPreço: {@Item5}" to run [make player execute command "/compraritem5"]
  41. format slot 21 of player with a Diamond Sword of Sharpness 9 and Unbreaking 9 and Fire Aspect 9 named "&aEspada FULL 9" with lore "&aPreço: {@Item6}" to run [make player execute command "/compraritem6"]
  42. format slot 53 of player with a Arrow named "&aPróxima página" to run [make player execute command "/mercadonegroloja2"]
  43. command /mercadonegroloja2:
  44. trigger:
  45. open chest with 6 rows named "&5Mercado Negro &8-&a Loja (2/3)" to player
  46. wait 1 tick
  47. format slot 13 of player with a Diamond Helmet of Protection 6 and Unbreaking 6 named "&aCapacete P6INQ6" with lore "&aPreço: {@Item7} Almas" to run [make player execute command "/compraritem7"]
  48. format slot 22 of player with a Diamond Chestplate of Protection 6 and Unbreaking 6 named "&aPeitoral P6INQ6" with lore "&aPreço: {@Item8} Almas" to run [make player execute command "/compraritem8"]
  49. format slot 31 of player with a Diamond Leggings of Protection 6 and Unbreaking 6 named "&aCalça P6INQ6" with lore "&aPreço: {@Item9} Almas" to run [make player execute command "/compraritem9"]
  50. format slot 40 of player with a Diamond Boots of Protection 6 and Unbreaking 6 named "&aBota P6INQ6" with lore "&aPreço: {@Item10} Almas" to run [make player execute command "/compraritem10"]
  51. format slot 23 of player with 64 Golden Apple:1 named "&cMaçã do CAPIROTO" with lore "&aPreço: {@Item5}" to run [make player execute command "/compraritem5"]
  52. format slot 21 of player with a Diamond Sword of Sharpness 10 and Unbreaking 10 and Fire Aspect 10 named "&aEspada FULL 10" with lore "&aPreço: {@Item12}" to run [make player execute command "/compraritem12"]
  53. format slot 53 of player with a Arrow named "&aPróxima página" to run [make player execute command "/mercadonegroloja3"]
  54. format slot 45 of player with a Arrow named "&aPágina anterior" to run [make player execute command "/mercadonegroloja"]
  55. command /mercadonegroloja3:
  56. trigger:
  57. open chest with 6 rows named "&5Mercado Negro &8-&a Loja (3/3)" to player
  58. wait 1 tick
  59. format slot 13 of player with a Diamond Helmet of Protection 7 and Unbreaking 7 named "&aCapacete P7INQ7" with lore "&aPreço: {@Item13} Almas" to run [make player execute command "/compraritem13"]
  60. format slot 22 of player with a Diamond Chestplate of Protection 7 and Unbreaking 7 named "&aPeitoral P7INQ7" with lore "&aPreço: {@Item14} Almas" to run [make player execute command "/compraritem14"]
  61. format slot 31 of player with a Diamond Leggings of Protection 7 and Unbreaking 7 named "&aCalça P7INQ7" with lore "&aPreço: {@Item15} Almas" to run [make player execute command "/compraritem15"]
  62. format slot 40 of player with a Diamond Boots of Protection 7 and Unbreaking 7 named "&aBota P7INQ7" with lore "&aPreço: {@Item16} Almas" to run [make player execute command "/compraritem16"]
  63. format slot 23 of player with 64 Golden Apple:1 named "&cMaçã do CAPIROTO" with lore "&aPreço: {@Item5}" to run [make player execute command "/compraritem5"]
  64. format slot 21 of player with a Diamond Sword of Sharpness 11 and Unbreaking 11 and Fire Aspect 11 named "&aEspada FULL 11" with lore "&aPreço: {@Item18}" to run [make player execute command "/compraritem18"]
  65. format slot 45 of player with a Arrow named "&aPágina anterior" to run [make player execute command "/mercadonegroloja2"]
  66.  
  67. command /venderalmas1:
  68. trigger:
  69. if player's inventory has player head:
  70. set {_Q} to number of player head in player's inventory
  71. remove all player head from player
  72. add {_Q} to {almas.%player%}
  73. send "&aVocê vendeu %{_Q}% almas."
  74. else:
  75. send "&cVocê não tem almas para vender."
  76. command /compraritem1:
  77. trigger:
  78. if {almas.%player%} is more or equal to {@Item1}:
  79. give 1 diamond helmet of Protection 5 and Unbreaking 5 with lore "&5Item comprado no Mercado Negro." to the player
  80. send "&aVocê comprou um item no mercado negro por {@Item1} almas."
  81. remove {@Item1} from {almas.%player%}
  82. else:
  83. send "&cVocê não tem almas suficientes para comprar este item."
  84. command /compraritem2:
  85. trigger:
  86. if {almas.%player%} is more or equal to {@Item2}:
  87. give 1 diamond chestplate of Protection 5 and Unbreaking 5 with lore "&5Item comprado no Mercado Negro." to the player
  88. send "&aVocê comprou um item no mercado negro por {@Item2} almas."
  89. remove {@Item2} from {almas.%player%}
  90. else:
  91. send "&cVocê não tem almas suficientes para comprar este item."
  92. command /compraritem3:
  93. trigger:
  94. if {almas.%player%} is more or equal to {@Item3}:
  95. give 1 diamond leggings of Protection 5 and Unbreaking 5 with lore "&5Item comprado no Mercado Negro." to the player
  96. send "&aVocê comprou um item no mercado negro por {@Item3} almas."
  97. remove {@Item3} from {almas.%player%}
  98. else:
  99. send "&cVocê não tem almas suficientes para comprar este item."
  100. command /compraritem4:
  101. trigger:
  102. if {almas.%player%} is more or equal to {@Item4}:
  103. give 1 diamond boots of Protection 5 and Unbreaking 5 with lore "&5Item comprado no Mercado Negro." to the player
  104. send "&aVocê comprou um item no mercado negro por {@Item4} almas."
  105. remove {@Item4} from {almas.%player%}
  106. else:
  107. send "&cVocê não tem almas suficientes para comprar este item."
  108. command /compraritem5:
  109. trigger:
  110. if {almas.%player%} is more or equal to {@Item5}:
  111. give 64 golden apple:1 with lore "&5Item comprado no Mercado Negro." to the player
  112. send "&aVocê comprou um item no mercado negro por {@Item5} almas."
  113. remove {@Item5} from {almas.%player%}
  114. else:
  115. send "&cVocê não tem almas suficientes para comprar este item."
  116. command /compraritem6:
  117. trigger:
  118. if {almas.%player%} is more or equal to {@Item6}:
  119. give 1 diamond sword of Sharpness 9 and Unbreaking 9 and Fire Aspect 9 with lore "&5Item comprado no Mercado Negro." to the player
  120. send "&aVocê comprou um item no mercado negro por {@Item6} almas."
  121. remove {@Item6} from {almas.%player%}
  122. else:
  123. send "&cVocê não tem almas suficientes para comprar este item."
  124. command /compraritem7:
  125. trigger:
  126. if {almas.%player%} is more or equal to {@Item7}:
  127. give 1 diamond helmet of Protection 6 and Unbreaking 6 with lore "&5Item comprado no Mercado Negro." to the player
  128. send "&aVocê comprou um item no mercado negro por {@Item7} almas."
  129. remove {@Item7} from {almas.%player%}
  130. else:
  131. send "&cVocê não tem almas suficientes para comprar este item."
  132. command /compraritem8:
  133. trigger:
  134. if {almas.%player%} is more or equal to {@Item8}:
  135. give 1 diamond chestplate of Protection 6 and Unbreaking 6 with lore "&5Item comprado no Mercado Negro." to the player
  136. send "&aVocê comprou um item no mercado negro por {@Item8} almas."
  137. remove {@Item8} from {almas.%player%}
  138. else:
  139. send "&cVocê não tem almas suficientes para comprar este item."
  140. command /compraritem9:
  141. trigger:
  142. if {almas.%player%} is more or equal to {@Item9}:
  143. give 1 diamond leggings of Protection 6 and Unbreaking 6 with lore "&5Item comprado no Mercado Negro." to the player
  144. send "&aVocê comprou um item no mercado negro por {@Item9} almas."
  145. remove {@Item9} from {almas.%player%}
  146. else:
  147. send "&cVocê não tem almas suficientes para comprar este item."
  148. command /compraritem10:
  149. trigger:
  150. if {almas.%player%} is more or equal to {@Item10}:
  151. give 1 diamond boots of Protection 6 and Unbreaking 6 with lore "&5Item comprado no Mercado Negro." to the player
  152. send "&aVocê comprou um item no mercado negro por {@Item10} almas."
  153. remove {@Item10} from {almas.%player%}
  154. else:
  155. send "&cVocê não tem almas suficientes para comprar este item."
  156. command /compraritem12:
  157. trigger:
  158. if {almas.%player%} is more or equal to {@Item12}:
  159. give 1 diamond sword of Sharpness 10 and Unbreaking 10 and Fire Aspect 10 with lore "&5Item comprado no Mercado Negro." to the player
  160. send "&aVocê comprou um item no mercado negro por {@Item12} almas."
  161. remove {@Item12} from {almas.%player%}
  162. else:
  163. send "&cVocê não tem almas suficientes para comprar este item."
  164. command /compraritem13:
  165. trigger:
  166. if {almas.%player%} is more or equal to {@Item13}:
  167. give 1 diamond helmet of Protection 7 and Unbreaking 7 with lore "&5Item comprado no Mercado Negro." to the player
  168. send "&aVocê comprou um item no mercado negro por {@Item13} almas."
  169. remove {@Item13} from {almas.%player%}
  170. else:
  171. send "&cVocê não tem almas suficientes para comprar este item."
  172. command /compraritem14:
  173. trigger:
  174. if {almas.%player%} is more or equal to {@Item14}:
  175. give 1 diamond chestplate of Protection 7 and Unbreaking 7 with lore "&5Item comprado no Mercado Negro." to the player
  176. send "&aVocê comprou um item no mercado negro por {@Item14} almas."
  177. remove {@Item14} from {almas.%player%}
  178. else:
  179. send "&cVocê não tem almas suficientes para comprar este item."
  180. command /compraritem15:
  181. trigger:
  182. if {almas.%player%} is more or equal to {@Item15}:
  183. give 1 diamond leggings of Protection 7 and Unbreaking 7 with lore "&5Item comprado no Mercado Negro." to the player
  184. send "&aVocê comprou um item no mercado negro por {@Item15} almas."
  185. remove {@Item15} from {almas.%player%}
  186. else:
  187. send "&cVocê não tem almas suficientes para comprar este item."
  188. command /compraritem16:
  189. trigger:
  190. if {almas.%player%} is more or equal to {@Item16}:
  191. give 1 diamond boots of Protection 7 and Unbreaking 7 with lore "&5Item comprado no Mercado Negro." to the player
  192. send "&aVocê comprou um item no mercado negro por {@Item16} almas."
  193. remove {@Item16} from {almas.%player%}
  194. else:
  195. send "&cVocê não tem almas suficientes para comprar este item."
  196. command /compraritem18:
  197. trigger:
  198. if {almas.%player%} is more or equal to {@Item18}:
  199. give 1 diamond sword of Sharpness 11 and Unbreaking 11 and Fire Aspect 11 with lore "&5Item comprado no Mercado Negro." to the player
  200. send "&aVocê comprou um item no mercado negro por {@Item18} almas."
  201. remove {@Item18} from {almas.%player%}
  202. else:
  203. send "&cVocê não tem almas suficientes para comprar este item."
  204. command /almas [<text>] [<offlineplayer>] [<integer>]:
  205. trigger:
  206. if arg 1 is set:
  207. if arg 1 is "ver":
  208. if arg 2 is set:
  209. send "&aO jogador %arg 2% tem %{almas.%arg 2%}% almas."
  210. else:
  211. send "&aVocê tem %{almas.%player%}% almas."
  212. if arg 1 is "enviar":
  213. if arg 1 is set:
  214. if arg 2 is set:
  215. if arg 3 is set:
  216. if arg 2 is "%player%":
  217. send "&cVocê não pode enviar almas para você mesmo."
  218. stop
  219. else:
  220. if {almas.%player%} is more or equal to arg 3:
  221. add arg 3 to {almas.%arg 2%}
  222. send "&aVocê enviou %arg 3% almas para %arg 2%."
  223. send "&a%player% enviou %arg 3% almas para você." to arg 2
  224. remove arg 3 from {almas.%player%}
  225. else:
  226. send "&cVocê não tem essa quantia de almas para enviar."
  227. else:
  228. make player execute command "/almas"
  229. else:
  230. make player execute command "/almas"
  231. else:
  232. make player execute command "/almas"
  233. if arg 1 is "remover":
  234. if player has permission "almas.admin":
  235. if arg 1 is set:
  236. if arg 2 is set:
  237. if arg 3 is set:
  238. if {almas.%arg 2%} is more or equal to arg 3:
  239. remove arg 3 from {almas.%arg 2%}
  240. send "&aVocê removeu %arg 3% almas de %arg 2%"
  241. send "&a%player% removeu %arg 3% almas de você." to arg 2
  242. else:
  243. send "&cO jogador não tem essas almas."
  244. else:
  245. make player execute command "/almas"
  246. else:
  247. make player execute command "/almas"
  248. else:
  249. make player execute command "/almas"
  250. else:
  251. send "&eVocê precisa do grupo &4Gerente&e ou superior para executar este comando."
  252. if arg 1 is "adicionar":
  253. if player has permission "almas.admin":
  254. if arg 1 is set:
  255. if arg 2 is set:
  256. if arg 3 is set:
  257. add arg 3 to {almas.%arg 2%}
  258. send "&aVocê adicionou %arg 3% almas para %arg 2%"
  259. send "&a%player% adicionou %arg 3% almas para você." to arg 2
  260. else:
  261. make player execute command "/almas"
  262. else:
  263. make player execute command "/almas"
  264. else:
  265. make player execute command "/almas"
  266. else:
  267. send "&eVocê precisa do grupo &4Gerente&e ou superior para executar este comando."
  268. if arg 1 is not "remover" or "ver" or "enviar" or "adicionar":
  269. make player execute command "/almas"
  270. else:
  271. if player has permission "almas.admin":
  272. send " "
  273. send "&aAlmas - COMANDOS"
  274. send " "
  275. send "&a/mercadonegro &f- Venda suas almas ou compre itens com elas."
  276. send "&a/almas ver &f- Veja quantas almas você ou outros jogadores tem."
  277. send "&a/almas enviar (jogador) (quantidade) &f- Envie uma quantia de almas para um certo jogador."
  278. send " "
  279. send "&a/almas remover (jogador) (quantia)&f - Remove uma certa quantia de almas para um certo jogador"
  280. send "&a/almas adicionar (jogador) (quantia)&f - Adiciona uma certa quantia de almas para um certo jogador"
  281. else:
  282. send " "
  283. send "&aAlmas - COMANDOS"
  284. send " "
  285. send "&a/mercadonegro &f- Venda suas almas ou compre itens com elas."
  286. send "&a/almas ver &f- Veja quantas almas você ou outros jogadores tem."
  287. send "&a/almas enviar (jogador) (quantidade) &f- Envie uma quantia de almas para um certo jogador."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement