Guest User

Mercado Negro

a guest
Jan 30th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.46 KB | None | 0 0
  1. # #!============[ Almas ]============!# #
  2. # #! | Skript Feito Por: MikePT | !# #
  3. # #!============[ Almas ]============!# #
  4. # Skript : Almas
  5. # Versão : 1.0
  6. # Autor : MikePT_
  7.  
  8. Options:
  9. Item: head:3
  10. Preco: 1
  11. Prefix: &8&l➜
  12.  
  13. # Permissão Admin #
  14. almas.acesso: comando.almasadmin
  15.  
  16. # Mensagens de Erro #
  17. Erro1: &aUse /daralmas NICK QUANTIA
  18. Erro2: &aUse /enviaralmas NICK QUANTIA
  19. Erro3: &cVocê não tem permissão para esse comando!
  20. SuasAlmas: &aVocê tem &f%{almas.%player%}% &aAlmas
  21. Msg1: &cIsto não são cabeças de jogadores
  22. Msg2: &cVocê não tem almas suficientes!
  23.  
  24. # Preços Mercado Negro #
  25. EspadaDiamante: 50
  26. PicaretaDiamante: 45
  27. MachadoDiamante: 30
  28. Arco: 30
  29. CapaceteDiamante: 45
  30. PeitoralDiamante: 45
  31. PerneirasDiamante: 45
  32. BotasDiamante: 45
  33. 50kDinheiro: 20
  34. CSpawner: 100
  35. BSpawner: 100
  36. ZSpawner: 100
  37. ISpawner: 100
  38.  
  39. # Quantidade de Itens #
  40. QEspadaDiamante: 1
  41. QPicaretaDiamante: 1
  42. QMachadoDiamante: 1
  43. QArco: 1
  44. QCapaceteDiamante: 1
  45. QPeitoralDiamante: 1
  46. QPerneirasDiamante: 1
  47. QBotasDiamante: 1
  48. Q50kDinheiro: 50000
  49. QCSpawner: 1
  50. QBSpawner: 1
  51. QZSpawner: 1
  52. QISpawner: 1
  53.  
  54.  
  55. variables:
  56. {almas.%player%} = 0
  57. {money.%player%} = 0
  58.  
  59.  
  60. command /almas [<text>] [<integer>]:
  61. trigger:
  62. if arg 1 is set:
  63. send "{@Prefix} &aAlmas de %arg 1%: &f%{almas.%arg 1%}%"
  64. if arg 1 is not set:
  65. send "{@SuasAlmas}"
  66.  
  67. command /daralmas [<player>] [<integer>]:
  68. trigger:
  69. if player have permission "{@almas.acesso}":
  70. if arg 1 is set:
  71. if arg 2 is set:
  72. add arg 2 to {almas.%arg 1%}
  73. send "&aVocê enviou %arg 2% para %arg 1%"
  74. else:
  75. send "&aVocê precisa escolher uma quantidade de almas!"
  76. else:
  77. send "&aSelecione um player para enviar as almas"
  78. else:
  79. send "{@Prefix}{@Erro3}"
  80. stop
  81.  
  82. command /delalmas [<player>] [<integer>]:
  83. trigger:
  84. if player have permission "{@almas.acesso}":
  85. if arg 1 is set:
  86. if arg 2 is set:
  87. remove arg 2 from {almas.%arg 1%}
  88. send "&aVocê retirou %arg 2% Almas de %arg 1%"
  89. else:
  90. send "&aVocê precisa escolher uma quantidade de almas!"
  91. else:
  92. send "&aSelecione um player para retirar as almas"
  93. else:
  94. send "{@Prefix}{@Erro3}"
  95. stop
  96.  
  97. command /enviaralmas [<player>] [<integer>]:
  98. trigger:
  99. if arg 1 is set:
  100. if arg 2 is set:
  101. add arg 2 to {almas.%arg 1%}
  102. send "&aVocê enviou %arg 2% Almas para %arg 1%"
  103. remove arg 2 from {almas.%player%}
  104. else:
  105. send "&aVocê precisa escolher uma quantidade de almas!"
  106. else:
  107. send "&aSelecione um player para retirar as almas"
  108. stop
  109.  
  110. # SISTEMA DE DROPAR CABEÇA #
  111.  
  112. on death:
  113. chance of 30%:
  114. drop the victim's skull at attacker
  115.  
  116. # SISTEMA DE LOJA #
  117.  
  118. # Itens PvP #
  119.  
  120. command /item1:
  121. trigger:
  122. if {almas.%player%} is more or equal to {@EspadaDiamante}:
  123. remove {@EspadaDiamante} from {almas.%player%}
  124. give {@QEspadaDiamante} diamond sword of Sharpness 5 and Unbreaking 3 to the player
  125. send "&aVocê comprou {@QEspadaDiamante} Espada de Diamante por {@EspadaDiamante} Almas"
  126. play level up at player with pitch 1
  127. else:
  128. send "{@Msg2}"
  129.  
  130. command /item2:
  131. trigger:
  132. if {almas.%player%} is more or equal to {@PicaretaDiamante}:
  133. remove {@PicaretaDiamante} from {almas.%player%}
  134. give {@QPicaretaDiamante} diamond pickaxe of Efficiency 5 and Fortune 3 and Unbreaking 3 to the player
  135. send "&aVocê comprou {@QPicaretaDiamante} Picareta de Diamante por {@PicaretaDiamante} Almas"
  136. play level up at player with pitch 1
  137. else:
  138. send "{@Msg2}"
  139.  
  140. command /item3:
  141. trigger:
  142. if {almas.%player%} is more or equal to {@MachadoDiamante}:
  143. remove {@MachadoDiamante} from {almas.%player%}
  144. give {@QMachadoDiamante} diamond axe of Sharpness 5 and Unbreaking 3 to the player
  145. send "&aVocê comprou {@QMachadoDiamante} Machado de Diamante por {@MachadoDiamante} Almas"
  146. play level up at player with pitch 1
  147. else:
  148. send "{@Msg2}"
  149.  
  150. command /item4:
  151. trigger:
  152. if {almas.%player%} is more or equal to {@Arco}:
  153. remove {@Arco} from {almas.%player%}
  154. give {@QArco} bow of Power 5 and Flame 1 and Infinity 1 to the player
  155. send "&aVocê comprou {@QArco} Arco por {@Arco} Almas"
  156. play level up at player with pitch 1
  157. else:
  158. send "{@Msg2}"
  159.  
  160. command /item5:
  161. trigger:
  162. if {almas.%player%} is more or equal to {@CapaceteDiamante}:
  163. remove {@CapaceteDiamante} from {almas.%player%}
  164. give {@QCapaceteDiamante} diamond helmet of Protection 4 and Unbreaking 3 to the player
  165. send "&aVocê comprou {@QCapaceteDiamante} Capacete de Diamante por {@CapaceteDiamante} Almas"
  166. play level up at player with pitch 1
  167. else:
  168. send "{@Msg2}"
  169.  
  170. command /item6:
  171. trigger:
  172. if {almas.%player%} is more or equal to {@PeitoralDiamante}:
  173. remove {@PeitoralDiamante} from {almas.%player%}
  174. give {@QPeitoralDiamante} diamond chestplate of Protection 4 and Unbreaking 3 to the player
  175. send "&aVocê comprou {@QPeitoralDiamante} Peitoral de Diamante por {@PeitoralDiamante} Almas"
  176. play level up at player with pitch 1
  177. else:
  178. send "{@Msg2}"
  179.  
  180. command /item7:
  181. trigger:
  182. if {almas.%player%} is more or equal to {@PerneirasDiamante}:
  183. remove {@PerneirasDiamante} from {almas.%player%}
  184. give {@QPerneirasDiamante} diamond leggings of Protection 4 and Unbreaking 3 to the player
  185. send "&aVocê comprou {@QPerneirasDiamante} Perneiras de Diamante &apor {@PerneirasDiamante} Almas"
  186. play level up at player with pitch 1
  187. else:
  188. send "{@Msg2}"
  189.  
  190. command /item8:
  191. trigger:
  192. if {almas.%player%} is more or equal to {@BotasDiamante}:
  193. remove {@BotasDiamante} from {almas.%player%}
  194. give {@QBotasDiamante} diamond boots of Protection 4 and Unbreaking 3 to the player
  195. send "&aVocê comprou {@QBotasDiamante} Botas de Diamante &apor {@BotasDiamante} Almas"
  196. play level up at player with pitch 1
  197. else:
  198. send "{@Msg2}"
  199.  
  200. command /item9:
  201. trigger:
  202. if {almas.%player%} is more or equal to {@50kDinheiro}:
  203. remove {@50kDinheiro} from {almas.%player%}
  204. add {@Q50kDinheiro} to player's balance
  205. add {@Q50kDinheiro} to player's {money.%player%}
  206. send "&aVocê comprou 50k &apor {@50kDinheiro} Almas"
  207. play level up at player with pitch 1
  208. else:
  209. send "{@Msg2}"
  210.  
  211.  
  212. # Spawners #
  213.  
  214. command /sp1:
  215. trigger:
  216. if {almas.%player%} is more or equal to {@CSpawner}:
  217. remove {@CSpawner} from {almas.%player%}
  218. execute console command "spawner give %player% creeper {@QCSpawner}"
  219. play level up at player with pitch 1
  220. send "&aVocê comprou {@QCSpawner} Spawner de Creeper &apor {@CSpawner} Almas"
  221. else:
  222. send "{@Msg2}"
  223.  
  224. command /sp2:
  225. trigger:
  226. if {almas.%player%} is more or equal to {@BSpawner}:
  227. remove {@BSpawner} from {almas.%player%}
  228. execute console command "spawner give %player% blaze {@QBSpawner}"
  229. play level up at player with pitch 1
  230. send "&aVocê comprou {@QBSpawner} Spawner de Blaze &apor {@BSpawner} Almas"
  231. else:
  232. send "{@Msg2}"
  233.  
  234. command /sp3:
  235. trigger:
  236. if {almas.%player%} is more or equal to {@ZSpawner}:
  237. remove {@ZSpawner} from {almas.%player%}
  238. execute console command "spawner give %player% zombiepigman {@QZSpawner}"
  239. play level up at player with pitch 1
  240. send "&aVocê comprou {@QZSpawner} Spawner de ZombiePigman por {@ZSpawner} Almas"
  241. else:
  242. send "{@Msg2}"
  243.  
  244. command /sp4:
  245. trigger:
  246. if {almas.%player%} is more or equal to {@ISpawner}:
  247. remove {@ISpawner} from {almas.%player%}
  248. execute console command "spawner give %player% irongolem {@QISpawner}"
  249. play level up at player with pitch 1
  250. send "&aVocê comprou {@QISpawner} Spawner de IronGolem &apor {@ISpawner} Almas"
  251. else:
  252. send "{@Msg2}"
  253.  
  254.  
  255.  
  256.  
  257. # Menus Gui #
  258.  
  259. command /ashop:
  260. trigger:
  261. open chest with 3 rows named "&8Mercado Negro" to player
  262. play level up at player with pitch 1
  263. wait 5 tick
  264. format slot 12 of player with a Ender Chest named "&e* Itens" with lore "&7Aqui você pode trocar suas||&7almas por itens especiais" to run [make player execute command "/compraritens"]
  265. format slot 14 of player with a Ender Pearl named "&e* Resgatar Almas" with lore "&7Clique para resgatar suas Almas||&7que estão no seu inventário!" to run [make player execute command "/venderalmas1"]
  266.  
  267. command /compraritens:
  268. trigger:
  269. open chest with 6 rows named "&8Mercado Negro - LOJA" to player
  270. play chest open at player with pitch 1
  271. wait 5 tick
  272. format slot 12 of player with a Diamond Sword of Sharpness 5 and Unbreaking 3 named "&bEspada de Diamante" with lore "&ePreço: {@EspadaDiamante} Almas" to close then run [make player execute command "/item1"]
  273. format slot 30 of player with a Diamond Pickaxe of Efficiency 5 and Fortune 3 and Unbreaking 3 named "&bPicareta de Diamante" with lore "&ePreço: {@PicaretaDiamante} Almas" to close then run [make player execute command "/item2"]
  274. format slot 21 of player with a Diamond Axe of Sharpness 5 and Unbreaking 3 named "&bMachado de Diamante" with lore "&ePreço: {@MachadoDiamante} Almas" to close then run [make player execute command "/item3"]
  275. format slot 39 of player with a Bow of Power 5 and Flame 1 and Infinity 1 named "&bArco" with lore "&ePreço: {@Arco} Almas" to close then run [make player execute command "/item4"]
  276. format slot 16 of player with a Mob Spawner named "&bSpawner Creeper" with lore "&ePreço: {@CSpawner} Almas" to run [make player execute command "sp1"]
  277. format slot 25 of player with a Mob Spawner named "&bSpawner Blaze" with lore "&ePreço: {@BSpawner} Almas" to run [make player execute command "sp2"]
  278. format slot 34 of player with a Mob Spawner named "&bSpawner ZombiePigman" with lore "&ePreço: {@ZSpawner} Almas" to run [make player execute command "sp3"]
  279. format slot 43 of player with a Mob Spawner named "&bSpawner IronGolem" with lore "&ePreço: {@ISpawner} Almas" to run [make player execute command "sp4"]
  280. format slot 10 of player with a Diamond Helmet of Protection 4 and Unbreaking 3 named "&bCapacete Diamante" with lore "&ePreço: {@CapaceteDiamante} Almas" to close then run [make player execute command "/item5"]
  281. format slot 19 of player with a Diamond Chestplate of Protection 4 and Unbreaking 3 named "&bPeitoral Diamante" with lore "&ePreço: {@PeitoralDiamante} Almas" to close then run [make player execute command "/item6"]
  282. format slot 28 of player with a Diamond Leggings of Protection 4 and Unbreaking 3 named "&bPerneiras Diamante" with lore "&ePreço: {@PerneirasDiamante} Almas" to close then run [make player execute command "/item7"]
  283. format slot 37 of player with a Diamond Boots of Protection 4 and Unbreaking 3 named "&bBotas Diamante" with lore "&ePreço: {@BotasDiamante} Almas" to close then run [make player execute command "/item8"]
  284. format slot 14 of player with a Paper named "&a50k de Dinheiro" with lore "&ePreço: {@50kDinheiro} Almas" to close then run [make player execute command "/item9"]
  285. format slot 49 of player with a Arrow named "&eVoltar" with lore "&7Clique para Voltar" to run [make player execute command "/ashop"]
  286.  
  287. command /venderalmas1:
  288. trigger:
  289. if player's inventory has {@Item}:
  290. set {nb.itemSell.%player%} to 0
  291. while player has {@Item}:
  292. remove {@Item} from player
  293. set {nb.itemSell.%player%} to {nb.itemSell.%player%} + 1
  294. set {nb.itemSell.money.%player%} to {nb.itemSell.%player%} * {@Preco}
  295. add {nb.itemSell.money.%player%} to {almas.%player%}
  296. send "&aVocê resgatou %{nb.itemSell.%player%}% Almas"
  297. show mob spawner flames at player
  298. else:
  299. send "&cVocê não tem cabeças de jogadores!"
Advertisement
Add Comment
Please, Sign In to add comment