Advertisement
zGhol

Untitled

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