Advertisement
Guest User

Cofre Mágico

a guest
Aug 16th, 2017
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.64 KB | None | 0 0
  1. #
  2. # Criado por IgoRzin01
  3. #
  4.  
  5. #
  6. # Para alterar o valor do cofre, será necessário mecher manualmente nos valores!
  7. #
  8.  
  9. options:
  10. Mundo: flatroom # IMPORTANTE - nome do mundo que irá funcionar o cofre mágico.
  11. # Coloque aqui os itens raros. Quando o jogador ganhar o item será mostrada a seguinte mensagem no global. "Fulano ganhou um item ULTRA RARO"
  12. Raros: diamond helmet or diamond chestplate or diamond leggings or diamond boots or diamond sword or diamond pickaxe or diamond axe or diamond shovel or diamond hoe
  13.  
  14.  
  15.  
  16. CM1name: §bCofre Mágico - §e✩§7✩✩✩✩ # Nome do cofre número 1
  17. CM1lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 1
  18. # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
  19. CM1loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 50,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %50000-(money of player)% Coins
  20. # Informações que irá aparecer quando o jogador possuir o dinheiro.
  21. CM1loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 50,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-50000% Coins
  22.  
  23.  
  24.  
  25. CM2name: §bCofre Mágico - §e✩✩§7✩✩✩ # Nome do cofre número 2
  26. CM2lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 2
  27. # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
  28. CM2loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 100,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %100000-(money of player)% Coins
  29. # Informações que irá aparecer quando o jogador possuir o dinheiro.
  30. CM2loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 100,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-100000% Coins
  31.  
  32.  
  33.  
  34. CM3name: §bCofre Mágico - §e✩✩✩§7✩✩ # Nome do cofre número 3
  35. CM3lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 3
  36. # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
  37. CM3loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 200,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %200000-(money of player)% Coins
  38. # Informações que irá aparecer quando o jogador possuir o dinheiro.
  39. CM3loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 200,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-200000% Coins
  40.  
  41.  
  42.  
  43. CM4name: §bCofre Mágico - §e✩✩✩✩§7✩ # Nome do cofre número 4
  44. CM4lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 4
  45. # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
  46. CM4loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 300,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %300000-(money of player)% Coins
  47. # Informações que irá aparecer quando o jogador possuir o dinheiro.
  48. CM4loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 300,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-300000% Coins
  49.  
  50.  
  51.  
  52. CM5name: §4Cofre Mágico - §e✩✩✩✩✩ # Nome do cofre número 4
  53. CM5lore: §eClique com o botao direito||§epara abrir esta caixa! # Lore do cofre número 4
  54. # Informações que irá aparecer caso o jogador não possua o dinheiro suficiente.
  55. CM5loreSEMgrana: §7§l§mCLIQUE PARA COMPRAR|| ||§7Preço:§a 850,000.00 Coins||§7Saldo:§c %player's money%||§7Precisa de:§a + %850000-(money of player)% Coins
  56. # Informações que irá aparecer quando o jogador possuir o dinheiro.
  57. CM5loreCOMgrana: §a§lCLIQUE PARA COMPRAR|| ||§7Preço:§a 850,000.00 Coins||§7Saldo:§a %player's money%||§7Sobrará:§a %(money of player)-850000% Coins
  58.  
  59.  
  60.  
  61. # Informações do menu de confirmaçao do cofre
  62. CMopenN: §2Abrir Cofre Mágico
  63. CMopenL: §aClique para abrir o cofre e ser||§asorteado com§b 1§a item aleatório!
  64. # Informações do menu de confirmaçao do cofre
  65. CMcloseN: §4Fechar Cofre Mágico
  66. CMcloseL: §cClique para fechar o menu||§cde confirmaçao!
  67.  
  68.  
  69.  
  70. # Créditos
  71. CCname: §aCriado por IgoRzin01
  72. CClore: §7V1.0§b Cofre Mágico §7§ngamersboard.com.br§7!||§7Faça um bom proveito!
  73.  
  74. # Informações sobre como conseguir o cofre.
  75. CIname: §aCofre Mágico informaçao
  76. CIlore: §bCofres Mágicos§7 podem conter diversos itens.||§7Para ganhar§b cofres mágicos§7, tudo o que você||§7precisa fazer é vencer eventos no servidor||§7ou compra-los com dinheiro virtual.
  77.  
  78. on rightclick on ender chest:
  79. if world is "{@Mundo}":
  80. cancel event
  81. wait 2.5 ticks
  82. open chest with 6 rows named "Cofre Mágico" to player
  83. if player's money is less than 50000:
  84. format slot 0 of player with ender chest named "{@CM1name}" with lore "{@CM1loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
  85. if player's money is more than or equal to 50000:
  86. format slot 0 of player with ender chest named "{@CM1name}" with lore "{@CM1loreCOMgrana}" to close then run [make player execute command "/jjg7fh154"]
  87.  
  88. if player's money is less than 100000:
  89. format slot 1 of player with ender chest named "{@CM2name}" with lore "{@CM2loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
  90. if player's money is more than or equal to 100000:
  91. format slot 1 of player with ender chest named "{@CM2name}" with lore "{@CM2loreCOMgrana}" to close then run [make player execute command "/saueadadsa"]
  92.  
  93. if player's money is less than 200000:
  94. format slot 2 of player with ender chest named "{@CM3name}" with lore "{@CM3loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
  95. if player's money is more than or equal to 200000:
  96. format slot 2 of player with ender chest named "{@CM3name}" with lore "{@CM3loreCOMgrana}" to close then run [make player execute command "/weoqwekjdsa"]
  97.  
  98. if player's money is less than 300000:
  99. format slot 3 of player with ender chest named "{@CM4name}" with lore "{@CM4loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
  100. if player's money is more than or equal to 300000:
  101. format slot 3 of player with ender chest named "{@CM4name}" with lore "{@CM4loreCOMgrana}" to close then run [make player execute command "/9q8wqeiod"]
  102.  
  103. if player's money is less than 850000:
  104. format slot 4 of player with ender chest named "{@CM5name}" with lore "{@CM5loreSEMgrana}||||&c&lSEM SALDO||&c&lPARA COMPRAR!" to be unstealable
  105. if player's money is more than or equal to 850000:
  106. format slot 4 of player with ender chest named "{@CM5name}" with lore "{@CM5loreCOMgrana}" to close then run [make player execute command "/qw58qw1dasd"]
  107.  
  108. format slot 50 of player with crafting table named "{@CCname}" with lore "{@CClore}" to be unstealable
  109. format slot 49 of player with emerald named "§2Seus Coins:§f %player's money%" to be unstealable
  110. format slot 48 of player with book named "{@CIname}" with lore "{@CIlore}" to be unstealable
  111. stop
  112. else:
  113. stop
  114. #
  115. command /item setar [<text>]: # Cada cofre tem suporte para 36 itens.
  116. usage: §6/item setar (1,2,3,4 ou 5)
  117. trigger:
  118. if player does not have permission "cmagico.admin":
  119. message "§cVocê ñ tem direito para executar este comando!" to player
  120. stop
  121. if arg 1 is "1":
  122. clear {cofre1.itens::*}
  123. loop items in player's inventory:
  124. add loop-item to {cofre1.itens::*}
  125. add 1 to {_itens}
  126. clear player's inventory
  127. message "&e* Foram adicionados (%{_itens}%) itens no cofre (1)!" to player
  128. delete {_itens}
  129. stop
  130.  
  131. if arg 1 is "2":
  132. clear {cofre2.itens::*}
  133. loop items in player's inventory:
  134. add loop-item to {cofre2.itens::*}
  135. add 1 to {_itens}
  136. clear player's inventory
  137. message "&e* Foram adicionados (%{_itens}%) itens no cofre (2)!" to player
  138. delete {_itens}
  139. stop
  140.  
  141. if arg 1 is "3":
  142. clear {cofre3.itens::*}
  143. loop items in player's inventory:
  144. add loop-item to {cofre3.itens::*}
  145. add 1 to {_itens}
  146. clear player's inventory
  147. message "&e* Foram adicionados (%{_itens}%) itens no cofre (3)!" to player
  148. delete {_itens}
  149. stop
  150.  
  151. if arg 1 is "4":
  152. clear {cofre4.itens::*}
  153. loop items in player's inventory:
  154. add loop-item to {cofre4.itens::*}
  155. add 1 to {_itens}
  156. clear player's inventory
  157. message "&e* Foram adicionados (%{_itens}%) itens no cofre (4)!" to player
  158. delete {_itens}
  159. stop
  160.  
  161. if arg 1 is "5":
  162. clear {cofre5.itens::*}
  163. loop items in player's inventory:
  164. add loop-item to {cofre5.itens::*}
  165. add 1 to {_itens}
  166. clear player's inventory
  167. message "&e* Foram adicionados (%{_itens}%) itens no cofre (5)!" to player
  168. delete {_itens}
  169. stop
  170.  
  171. if arg 1 is "clear":
  172. message "§4[CofreM]§c Todos os itens foram limpos!" to player
  173. clear {cofre1.itens::*}
  174. clear {cofre2.itens::*}
  175. clear {cofre3.itens::*}
  176. clear {cofre4.itens::*}
  177. clear {cofre5.itens::*}
  178. stop
  179.  
  180. else if arg 1 is not set:
  181. message "§cDigite o ID do cofre! (1,2,3,4 ou 5)" to player
  182. stop
  183. else:
  184. if arg 1 is not "1" or "2" or "3" or "4" or "5" or "clear":
  185. message "§cID do cofre inválido! Tente: 1,2,3,4 ou 5" to player
  186. stop
  187. #
  188. command /cm lista [<text>]: # Listar os itens setados no cofre.
  189. usage: §6/cm lista (1,2,3,4 ou 5)
  190. trigger:
  191. if player does not have permission "cmagico.admin":
  192. message "§cVocê ñ tem direito para executar este comando!" to player
  193. stop
  194. if arg 1 is "1":
  195. message "§f--- §6Cofre (1) lista:§f ---" to player
  196. message "§d%{cofre1.itens::*}%" to player
  197. stop
  198. if arg 1 is "2":
  199. message "§f--- §6Cofre (2) lista:§f ---" to player
  200. message "§d%{cofre2.itens::*}%" to player
  201. stop
  202. if arg 1 is "3":
  203. message "§f--- §6Cofre (3) lista:§f ---" to player
  204. message "§d%{cofre3.itens::*}%" to player
  205. stop
  206. if arg 1 is "4":
  207. message "§f--- §6Cofre (4) lista:§f ---" to player
  208. message "§d%{cofre4.itens::*}%" to player
  209. stop
  210. if arg 1 is "5":
  211. message "§f--- §6Cofre (5) lista:§f ---" to player
  212. message "§d%{cofre5.itens::*}%" to player
  213. stop
  214. else if arg 1 is not set:
  215. message "§cDigite o ID do cofre! (1,2,3,4 ou 5)" to player
  216. stop
  217. else:
  218. if arg 1 is not "1" or "2" or "3" or "4" or "5":
  219. message "§cID do cofre inválido! Tente: 1,2,3,4 ou 5" to player
  220. stop
  221. #
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. on place ender chest:
  249. name of tool is "{@CM1name}" or "{@CM2name}" or "{@CM3name}" or "{@CM4name}" or "{@CM5name}"
  250. cancel event
  251.  
  252.  
  253.  
  254.  
  255.  
  256. #=======================================
  257. command /jjg7fh154:
  258. trigger: # sistema de compra do cofre número 1
  259. if player's money is more than or equal to 50000:
  260. remove 50000 from player's account
  261. give 1 ender chest named "{@CM1name}" with lore "{@CM1lore}" to player
  262. stop
  263. else:
  264. message "§cVocê ñ possui coins o suficiente!" to player
  265. stop
  266. #
  267. on rightclick: # sistema de confirmação do cofre 1
  268. player is holding a ender chest named "{@CM1name}" with lore "{@CM1lore}"
  269. wait 2.5 ticks
  270. open chest with 5 rows named "Confirmaçao" to player
  271. format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/oisuae58a"]
  272. format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
  273. format slot 13 of player with ender chest named "{@CM1name}" to be unstealable
  274. stop
  275. #
  276. command /oisuae58a:
  277. trigger: # sistema que irá entregar o item aleatório do cofre 1 para o jogador.
  278. if player have 1 ender chest named "{@CM1name}" with lore "{@CM1lore}":
  279. remove 1 ender chest named "{@CM1name}" with lore "{@CM1lore}" from player
  280. set {_item} to a random element out of {cofre1.itens::*}
  281. if {_item} is {@Raros}:
  282. broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
  283. give player {_item}
  284. stop
  285. else:
  286. message " " to player
  287. message "§f§lVocê ganhou %{_item}%" to player
  288. message " " to player
  289. give player {_item}
  290. stop
  291. else:
  292. message "§cVocê ñ possui nenhum cofre no inventário!" to player
  293. stop
  294. #=======================================
  295.  
  296.  
  297. #=======================================
  298. command /saueadadsa:
  299. trigger: # sistema de compra do cofre número 2
  300. if player's money is more than or equal to 100000:
  301. remove 100000 from player's account
  302. give 1 ender chest named "{@CM2name}" with lore "{@CM2lore}" to player
  303. stop
  304. else:
  305. message "§cVocê ñ possui coins o suficiente!" to player
  306. stop
  307. #
  308. on rightclick: # sistema de confirmação do cofre 2
  309. player is holding a ender chest named "{@CM2name}" with lore "{@CM2lore}"
  310. wait 2.5 ticks
  311. open chest with 5 rows named "Confirmaçao" to player
  312. format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/aweiawesad"]
  313. format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
  314. format slot 13 of player with ender chest named "{@CM2name}" to be unstealable
  315. stop
  316. #
  317. command /aweiawesad:
  318. trigger: # sistema que irá entregar o item aleatório do cofre 2 para o jogador.
  319. if player have 1 ender chest named "{@CM2name}" with lore "{@CM2lore}":
  320. remove 1 ender chest named "{@CM2name}" with lore "{@CM2lore}" from player
  321. set {_item} to a random element out of {cofre2.itens::*}
  322. if {_item} is {@Raros}:
  323. broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
  324. give player {_item}
  325. stop
  326. else:
  327. message " " to player
  328. message "§f§lVocê ganhou %{_item}%" to player
  329. message " " to player
  330. give player {_item}
  331. stop
  332. else:
  333. message "§cVocê ñ possui nenhum cofre no inventário!" to player
  334. stop
  335. #=======================================
  336.  
  337.  
  338. #=======================================
  339. command /weoqwekjdsa:
  340. trigger: # sistema de compra do cofre número 3
  341. if player's money is more than or equal to 200000:
  342. remove 200000 from player's account
  343. give 1 ender chest named "{@CM3name}" with lore "{@CM3lore}" to player
  344. stop
  345. else:
  346. message "§cVocê ñ possui coins o suficiente!" to player
  347. stop
  348. #
  349. on rightclick: # sistema de confirmação do cofre 3
  350. player is holding a ender chest named "{@CM3name}" with lore "{@CM3lore}"
  351. wait 2.5 ticks
  352. open chest with 5 rows named "Confirmaçao" to player
  353. format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/wqeioqwueqwe"]
  354. format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
  355. format slot 13 of player with ender chest named "{@CM3name}" to be unstealable
  356. stop
  357. #
  358. command /wqeioqwueqwe:
  359. trigger: # sistema que irá entregar o item aleatório do cofre 3 para o jogador.
  360. if player have 1 ender chest named "{@CM3name}" with lore "{@CM3lore}":
  361. remove 1 ender chest named "{@CM3name}" with lore "{@CM3lore}" from player
  362. set {_item} to a random element out of {cofre3.itens::*}
  363. if {_item} is {@Raros}:
  364. broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
  365. give player {_item}
  366. stop
  367. else:
  368. message " " to player
  369. message "§f§lVocê ganhou %{_item}%" to player
  370. message " " to player
  371. give player {_item}
  372. stop
  373. else:
  374. message "§cVocê ñ possui nenhum cofre no inventário!" to player
  375. stop
  376. #=======================================
  377.  
  378.  
  379. #=======================================
  380. command /9q8wqeiod:
  381. trigger: # sistema de compra do cofre número 4
  382. if player's money is more than or equal to 300000:
  383. remove 300000 from player's account
  384. give 1 ender chest named "{@CM4name}" with lore "{@CM4lore}" to player
  385. stop
  386. else:
  387. message "§cVocê ñ possui coins o suficiente!" to player
  388. stop
  389. #
  390. on rightclick: # sistema de confirmação do cofre 4
  391. player is holding a ender chest named "{@CM4name}" with lore "{@CM4lore}"
  392. wait 2.5 ticks
  393. open chest with 5 rows named "Confirmaçao" to player
  394. format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/qwe9uqweqwe"]
  395. format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
  396. format slot 13 of player with ender chest named "{@CM4name}" to be unstealable
  397. stop
  398. #
  399. command /qwe9uqweqwe:
  400. trigger: # sistema que irá entregar o item aleatório do cofre 4 para o jogador.
  401. if player have 1 ender chest named "{@CM4name}" with lore "{@CM4lore}":
  402. remove 1 ender chest named "{@CM4name}" with lore "{@CM4lore}" from player
  403. set {_item} to a random element out of {cofre4.itens::*}
  404. if {_item} is {@Raros}:
  405. broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
  406. give player {_item}
  407. stop
  408. else:
  409. message " " to player
  410. message "§f§lVocê ganhou %{_item}%" to player
  411. message " " to player
  412. give player {_item}
  413. stop
  414. else:
  415. message "§cVocê ñ possui nenhum cofre no inventário!" to player
  416. stop
  417. #=======================================
  418.  
  419.  
  420. #=======================================
  421. command /qw58qw1dasd:
  422. trigger: # sistema de compra do cofre número 5
  423. if player's money is more than or equal to 850000:
  424. remove 850000 from player's account
  425. give 1 ender chest named "{@CM5name}" with lore "{@CM5lore}" to player
  426. stop
  427. else:
  428. message "§cVocê ñ possui coins o suficiente!" to player
  429. stop
  430. #
  431. on rightclick: # sistema de confirmação do cofre 5
  432. player is holding a ender chest named "{@CM5name}" with lore "{@CM5lore}"
  433. wait 2.5 ticks
  434. open chest with 5 rows named "Confirmaçao" to player
  435. format slot 20 of player with emerald block named "{@CMopenN}" with lore "{@CMopenL}" to close then run [make player execute command "/qwewqdas"]
  436. format slot 24 of player with redstone block named "{@CMcloseN}" with lore "{@CMcloseL}" to close
  437. format slot 13 of player with ender chest named "{@CM5name}" to be unstealable
  438. stop
  439. #
  440. command /qwewqdas:
  441. trigger: # sistema que irá entregar o item aleatório do cofre 5 para o jogador.
  442. if player have 1 ender chest named "{@CM5name}" with lore "{@CM5lore}":
  443. remove 1 ender chest named "{@CM5name}" with lore "{@CM5lore}" from player
  444. set {_item} to a random element out of {cofre4.itens::*}
  445. if {_item} is {@Raros}:
  446. broadcast "§d%player%§7 ganhou um item§5 ULTRA RARO"
  447. give player {_item}
  448. stop
  449. else:
  450. message " " to player
  451. message "§f§lVocê ganhou %{_item}%" to player
  452. message " " to player
  453. give player {_item}
  454. stop
  455. else:
  456. message "§cVocê ñ possui nenhum cofre no inventário!" to player
  457. stop
  458. #=======================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement