Advertisement
Guest User

Mercado Negro 3.0

a guest
Feb 4th, 2017
541
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.58 KB | None | 0 0
  1. # #!============[ Almas ]============!# #
  2. # #! | Skript Feito Por: MikePT | !# #
  3. # #!============[ Almas ]============!# #
  4. # Skript : Almas
  5. # Versão : 3.0 Alguens bugs corrigidos + Mensagem global adicionada
  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 {almas.%player%} is more or equal to arg 2:
  100. if arg 1 is set:
  101. if arg 2 is set:
  102. add arg 2 to {almas.%arg 1%}
  103. send "&aVocê enviou %arg 2% Almas para %arg 1%"
  104. remove arg 2 from {almas.%player%}
  105. else:
  106. send "&aVocê precisa escolher uma quantidade de almas!"
  107. else:
  108. send "&aSelecione um player para retirar as almas"
  109. else:
  110. send "&aVocê não tem essas almas!"
  111. stop
  112.  
  113. # SISTEMA DE DROPAR CABEÇA #
  114.  
  115. on death:
  116. chance of 30%:
  117. give the victim's skull to the attacker
  118. stop
  119.  
  120. # SISTEMA DE LOJA #
  121.  
  122. # Itens PvP #
  123.  
  124. command /item1:
  125. trigger:
  126. if {almas.%player%} is more or equal to {@EspadaDiamante}:
  127. remove {@EspadaDiamante} from {almas.%player%}
  128. give {@QEspadaDiamante} diamond sword of Sharpness 5 and Unbreaking 3 to the player
  129. send "&aVocê comprou {@QEspadaDiamante} Espada de Diamante por {@EspadaDiamante} Almas"
  130. broadcast "&f%player% &ecomprou &f{@QEspadaDiamante} &eEspada de Diamante por &f{@EspadaDiamante} &eAlmas!"
  131. play level up at player with pitch 1
  132. else:
  133. send "{@Msg2}"
  134.  
  135. command /item2:
  136. trigger:
  137. if {almas.%player%} is more or equal to {@PicaretaDiamante}:
  138. remove {@PicaretaDiamante} from {almas.%player%}
  139. give {@QPicaretaDiamante} diamond pickaxe of Efficiency 5 and Fortune 3 and Unbreaking 3 to the player
  140. send "&aVocê comprou {@QPicaretaDiamante} Picareta de Diamante por {@PicaretaDiamante} Almas"
  141. broadcast "&f%player% &ecomprou &f{@QPicaretaDiamante} &ePicareta de Diamante por &f{@PicaretaDiamante} &eAlmas!"
  142. play level up at player with pitch 1
  143. else:
  144. send "{@Msg2}"
  145.  
  146. command /item3:
  147. trigger:
  148. if {almas.%player%} is more or equal to {@MachadoDiamante}:
  149. remove {@MachadoDiamante} from {almas.%player%}
  150. give {@QMachadoDiamante} diamond axe of Sharpness 5 and Unbreaking 3 to the player
  151. send "&aVocê comprou {@QMachadoDiamante} Machado de Diamante por {@MachadoDiamante} Almas"
  152. broadcast "&f%player% &ecomprou &f{@QMachadoDiamante} &eMachado de Diamante por &f{@MachadoDiamante} &eAlmas!"
  153. play level up at player with pitch 1
  154. else:
  155. send "{@Msg2}"
  156.  
  157. command /item4:
  158. trigger:
  159. if {almas.%player%} is more or equal to {@Arco}:
  160. remove {@Arco} from {almas.%player%}
  161. give {@QArco} bow of Power 5 and Flame 1 and Infinity 1 to the player
  162. send "&aVocê comprou {@QArco} Arco por {@Arco} Almas"
  163. broadcast "&f%player% &ecomprou &f{@QArco} &eArco por &f{@Arco} &eAlmas!"
  164. play level up at player with pitch 1
  165. else:
  166. send "{@Msg2}"
  167.  
  168. command /item5:
  169. trigger:
  170. if {almas.%player%} is more or equal to {@CapaceteDiamante}:
  171. remove {@CapaceteDiamante} from {almas.%player%}
  172. give {@QCapaceteDiamante} diamond helmet of Protection 4 and Unbreaking 3 to the player
  173. send "&aVocê comprou {@QCapaceteDiamante} Capacete de Diamante por {@CapaceteDiamante} Almas"
  174. broadcast "&f%player% &ecomprou &f{@QCapaceteDiamante} &eCapacete de Diamante por &f{@CapaceteDiamante} &eAlmas!"
  175. play level up at player with pitch 1
  176. else:
  177. send "{@Msg2}"
  178.  
  179. command /item6:
  180. trigger:
  181. if {almas.%player%} is more or equal to {@PeitoralDiamante}:
  182. remove {@PeitoralDiamante} from {almas.%player%}
  183. give {@QPeitoralDiamante} diamond chestplate of Protection 4 and Unbreaking 3 to the player
  184. send "&aVocê comprou {@QPeitoralDiamante} Peitoral de Diamante por {@PeitoralDiamante} Almas"
  185. broadcast "&f%player% &ecomprou &f{@QPeitoralDiamante} &ePeitoral de Diamante por &f{@PeitoralDiamante} &eAlmas!"
  186. play level up at player with pitch 1
  187. else:
  188. send "{@Msg2}"
  189.  
  190. command /item7:
  191. trigger:
  192. if {almas.%player%} is more or equal to {@PerneirasDiamante}:
  193. remove {@PerneirasDiamante} from {almas.%player%}
  194. give {@QPerneirasDiamante} diamond leggings of Protection 4 and Unbreaking 3 to the player
  195. send "&aVocê comprou {@QPerneirasDiamante} Perneiras de Diamante &apor {@PerneirasDiamante} Almas"
  196. broadcast "&f%player% &ecomprou &f{@QPerneirasDiamante} &ePerneiras de Diamante por &f{@PerneirasDiamante} &eAlmas!"
  197. play level up at player with pitch 1
  198. else:
  199. send "{@Msg2}"
  200.  
  201. command /item8:
  202. trigger:
  203. if {almas.%player%} is more or equal to {@BotasDiamante}:
  204. remove {@BotasDiamante} from {almas.%player%}
  205. give {@QBotasDiamante} diamond boots of Protection 4 and Unbreaking 3 to the player
  206. send "&aVocê comprou {@QBotasDiamante} Botas de Diamante &apor {@BotasDiamante} Almas"
  207. broadcast "&f%player% &ecomprou &f{@QBotasDiamante} &eBotas de Diamante por &f{@BotasDiamante} &eAlmas!"
  208. play level up at player with pitch 1
  209. else:
  210. send "{@Msg2}"
  211.  
  212. command /item9:
  213. trigger:
  214. if {almas.%player%} is more or equal to {@50kDinheiro}:
  215. remove {@50kDinheiro} from {almas.%player%}
  216. add {@Q50kDinheiro} to player's balance
  217. send "&aVocê comprou 50k &apor {@50kDinheiro} Almas"
  218. broadcast "&f%player% &ecomprou &f{@Q50kDinheiro} &ede dinheiro por &f{@50kDinheiro} &eAlmas!"
  219. play level up at player with pitch 1
  220. else:
  221. send "{@Msg2}"
  222.  
  223.  
  224. # Spawners #
  225.  
  226. command /sp1:
  227. trigger:
  228. if {almas.%player%} is more or equal to {@CSpawner}:
  229. remove {@CSpawner} from {almas.%player%}
  230. execute console command "spawner give %player% creeper {@QCSpawner}"
  231. play level up at player with pitch 1
  232. send "&aVocê comprou {@QCSpawner} Spawner de Creeper &apor {@CSpawner} Almas"
  233. broadcast "&f%player% &ecomprou &f{@QCSpawner} &eSpawner de Creeper por &f{@CSpawner} &eAlmas!"
  234. else:
  235. send "{@Msg2}"
  236.  
  237. command /sp2:
  238. trigger:
  239. if {almas.%player%} is more or equal to {@BSpawner}:
  240. remove {@BSpawner} from {almas.%player%}
  241. execute console command "spawner give %player% blaze {@QBSpawner}"
  242. play level up at player with pitch 1
  243. send "&aVocê comprou {@QBSpawner} Spawner de Blaze &apor {@BSpawner} Almas"
  244. broadcast "&f%player% &ecomprou &f{@QBSpawner} &eSpawner de Blaze por &f{@BSpawner} &eAlmas!"
  245. else:
  246. send "{@Msg2}"
  247.  
  248. command /sp3:
  249. trigger:
  250. if {almas.%player%} is more or equal to {@ZSpawner}:
  251. remove {@ZSpawner} from {almas.%player%}
  252. execute console command "spawner give %player% zombiepigman {@QZSpawner}"
  253. play level up at player with pitch 1
  254. send "&aVocê comprou {@QZSpawner} Spawner de ZombiePigman por {@ZSpawner} Almas"
  255. broadcast "&f%player% &ecomprou &f{@QZSpawner} &eSpawner de ZombiePigman por &f{@ZSpawner} &eAlmas!"
  256. else:
  257. send "{@Msg2}"
  258.  
  259. command /sp4:
  260. trigger:
  261. if {almas.%player%} is more or equal to {@ISpawner}:
  262. remove {@ISpawner} from {almas.%player%}
  263. execute console command "spawner give %player% irongolem {@QISpawner}"
  264. play level up at player with pitch 1
  265. send "&aVocê comprou {@QISpawner} Spawner de IronGolem &apor {@ISpawner} Almas"
  266. broadcast "&f%player% &ecomprou &f{@QISpawner} &eSpawner de IronGolem por &f{@ISpawner} &eAlmas!"
  267. else:
  268. send "{@Msg2}"
  269.  
  270.  
  271.  
  272.  
  273. # Menus Gui #
  274.  
  275. command /ashop:
  276. trigger:
  277. open chest with 3 rows named "&8Mercado Negro" to player
  278. wait 1 ticks
  279. play level up at player with pitch 1
  280. 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"]
  281. 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"]
  282. stop
  283.  
  284. command /compraritens:
  285. trigger:
  286. open chest with 6 rows named "&8Mercado Negro - LOJA" to player
  287. wait 1 ticks
  288. play chest open at player with pitch 1
  289. 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 run [make player execute command "/sconfirma1"]
  290. 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 run [make player execute command "/sconfirma2"]
  291. 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 run [make player execute command "/sconfirma3"]
  292. 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 run [make player execute command "/sconfirma4"]
  293. format slot 16 of player with a Mob Spawner named "&bSpawner Creeper" with lore "&ePreço: {@CSpawner} Almas" to run [make player execute command "/sconfirma5"]
  294. format slot 25 of player with a Mob Spawner named "&bSpawner Blaze" with lore "&ePreço: {@BSpawner} Almas" to run [make player execute command "/sconfirma6"]
  295. format slot 34 of player with a Mob Spawner named "&bSpawner ZombiePigman" with lore "&ePreço: {@ZSpawner} Almas" to run [make player execute command "/sconfirma7"]
  296. format slot 43 of player with a Mob Spawner named "&bSpawner IronGolem" with lore "&ePreço: {@ISpawner} Almas" to run [make player execute command "/sconfirma8"]
  297. 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 run [make player execute command "/sconfirma9"]
  298. 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 run [make player execute command "/sconfirma10"]
  299. 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 run [make player execute command "/sconfirma11"]
  300. 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 run [make player execute command "/sconfirma12"]
  301. format slot 14 of player with a Paper named "&a50k de Dinheiro" with lore "&ePreço: {@50kDinheiro} Almas" to run [make player execute command "/sconfirma13"]
  302. format slot 49 of player with a Arrow named "&eVoltar" with lore "&7Clique para Voltar" to run [make player execute command "/ashop"]
  303.  
  304. command /venderalmas1:
  305. trigger:
  306. if player's inventory has {@Item}:
  307. set {nb.itemSell.%player%} to 0
  308. while player has {@Item}:
  309. remove {@Item} from player
  310. set {nb.itemSell.%player%} to {nb.itemSell.%player%} + 1
  311. set {nb.itemSell.money.%player%} to {nb.itemSell.%player%} * {@Preco}
  312. add {nb.itemSell.money.%player%} to {almas.%player%}
  313. send "&aVocê resgatou %{nb.itemSell.%player%}% Almas"
  314. show mob spawner flames at player
  315. else:
  316. send "&cVocê não tem cabeças de jogadores!"
  317.  
  318. # Confirmação #
  319.  
  320. command /sconfirma1:
  321. trigger:
  322. open chest with 3 rows named "&8Confirmação" to player
  323. play chest open at player with pitch 1
  324. wait 1 ticks
  325. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item1"]
  326. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  327. command /sconfirma2:
  328. trigger:
  329. open chest with 3 rows named "&8Confirmação" to player
  330. play chest open at player with pitch 1
  331. wait 1 ticks
  332. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item2"]
  333. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  334. command /sconfirma3:
  335. trigger:
  336. open chest with 3 rows named "&8Confirmação" to player
  337. play chest open at player with pitch 1
  338. wait 1 ticks
  339. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item3"]
  340. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  341. command /sconfirma4:
  342. trigger:
  343. open chest with 3 rows named "&8Confirmação" to player
  344. play chest open at player with pitch 1
  345. wait 1 ticks
  346. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item4"]
  347. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  348. command /sconfirma5:
  349. trigger:
  350. open chest with 3 rows named "&8Confirmação" to player
  351. play chest open at player with pitch 1
  352. wait 1 ticks
  353. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/sp1"]
  354. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  355. command /sconfirma6:
  356. trigger:
  357. open chest with 3 rows named "&8Confirmação" to player
  358. play chest open at player with pitch 1
  359. wait 1 ticks
  360. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/sp2"]
  361. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  362. command /sconfirma7:
  363. trigger:
  364. open chest with 3 rows named "&8Confirmação" to player
  365. play chest open at player with pitch 1
  366. wait 1 ticks
  367. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/sp3"]
  368. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  369. command /sconfirma8:
  370. trigger:
  371. open chest with 3 rows named "&8Confirmação" to player
  372. play chest open at player with pitch 1
  373. wait 1 ticks
  374. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/sp4"]
  375. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  376. command /sconfirma9:
  377. trigger:
  378. open chest with 3 rows named "&8Confirmação" to player
  379. play chest open at player with pitch 1
  380. wait 1 ticks
  381. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item5"]
  382. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  383. command /sconfirma10:
  384. trigger:
  385. open chest with 3 rows named "&8Confirmação" to player
  386. play chest open at player with pitch 1
  387. wait 1 ticks
  388. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item6"]
  389. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  390. command /sconfirma11:
  391. trigger:
  392. open chest with 3 rows named "&8Confirmação" to player
  393. play chest open at player with pitch 1
  394. wait 1 ticks
  395. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item7"]
  396. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  397. command /sconfirma12:
  398. trigger:
  399. open chest with 3 rows named "&8Confirmação" to player
  400. play chest open at player with pitch 1
  401. wait 1 ticks
  402. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item8"]
  403. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  404. command /sconfirma13:
  405. trigger:
  406. open chest with 3 rows named "&8Confirmação" to player
  407. play chest open at player with pitch 1
  408. wait 1 ticks
  409. format slot 11 of player with a stained hardened clay:13 named "&a&lConfirmar" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/item9"]
  410. format slot 15 of player with a stained hardened clay:14 named "&c&lNegar" with lore "&7Deseja &cNegar &7a Compra ?" to close then run [make player execute command "/negar123a"]
  411.  
  412. command /negar123a:
  413. trigger:
  414. send "&cVocê &cnegou a compra!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement