Guest User

Skript Almas 2.0

a guest
Jan 31st, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.25 KB | None | 0 0
  1. # #!============[ Almas ]============!# #
  2. # #! | Skript Feito Por: MikePT | !# #
  3. # #!============[ Almas ]============!# #
  4. # Skript : Almas
  5. # Versão : 2.0 Bugs Corrigidos (pegar itens dos menu GUI) + Menus novos adicionados
  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. drop the victim's skull at attacker
  118.  
  119. # SISTEMA DE LOJA #
  120.  
  121. # Itens PvP #
  122.  
  123. command /item1:
  124. trigger:
  125. if {almas.%player%} is more or equal to {@EspadaDiamante}:
  126. remove {@EspadaDiamante} from {almas.%player%}
  127. give {@QEspadaDiamante} diamond sword of Sharpness 5 and Unbreaking 3 to the player
  128. send "&aVocê comprou {@QEspadaDiamante} Espada de Diamante por {@EspadaDiamante} Almas"
  129. play level up at player with pitch 1
  130. else:
  131. send "{@Msg2}"
  132.  
  133. command /item2:
  134. trigger:
  135. if {almas.%player%} is more or equal to {@PicaretaDiamante}:
  136. remove {@PicaretaDiamante} from {almas.%player%}
  137. give {@QPicaretaDiamante} diamond pickaxe of Efficiency 5 and Fortune 3 and Unbreaking 3 to the player
  138. send "&aVocê comprou {@QPicaretaDiamante} Picareta de Diamante por {@PicaretaDiamante} Almas"
  139. play level up at player with pitch 1
  140. else:
  141. send "{@Msg2}"
  142.  
  143. command /item3:
  144. trigger:
  145. if {almas.%player%} is more or equal to {@MachadoDiamante}:
  146. remove {@MachadoDiamante} from {almas.%player%}
  147. give {@QMachadoDiamante} diamond axe of Sharpness 5 and Unbreaking 3 to the player
  148. send "&aVocê comprou {@QMachadoDiamante} Machado de Diamante por {@MachadoDiamante} Almas"
  149. play level up at player with pitch 1
  150. else:
  151. send "{@Msg2}"
  152.  
  153. command /item4:
  154. trigger:
  155. if {almas.%player%} is more or equal to {@Arco}:
  156. remove {@Arco} from {almas.%player%}
  157. give {@QArco} bow of Power 5 and Flame 1 and Infinity 1 to the player
  158. send "&aVocê comprou {@QArco} Arco por {@Arco} Almas"
  159. play level up at player with pitch 1
  160. else:
  161. send "{@Msg2}"
  162.  
  163. command /item5:
  164. trigger:
  165. if {almas.%player%} is more or equal to {@CapaceteDiamante}:
  166. remove {@CapaceteDiamante} from {almas.%player%}
  167. give {@QCapaceteDiamante} diamond helmet of Protection 4 and Unbreaking 3 to the player
  168. send "&aVocê comprou {@QCapaceteDiamante} Capacete de Diamante por {@CapaceteDiamante} Almas"
  169. play level up at player with pitch 1
  170. else:
  171. send "{@Msg2}"
  172.  
  173. command /item6:
  174. trigger:
  175. if {almas.%player%} is more or equal to {@PeitoralDiamante}:
  176. remove {@PeitoralDiamante} from {almas.%player%}
  177. give {@QPeitoralDiamante} diamond chestplate of Protection 4 and Unbreaking 3 to the player
  178. send "&aVocê comprou {@QPeitoralDiamante} Peitoral de Diamante por {@PeitoralDiamante} Almas"
  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. play level up at player with pitch 1
  190. else:
  191. send "{@Msg2}"
  192.  
  193. command /item8:
  194. trigger:
  195. if {almas.%player%} is more or equal to {@BotasDiamante}:
  196. remove {@BotasDiamante} from {almas.%player%}
  197. give {@QBotasDiamante} diamond boots of Protection 4 and Unbreaking 3 to the player
  198. send "&aVocê comprou {@QBotasDiamante} Botas de Diamante &apor {@BotasDiamante} Almas"
  199. play level up at player with pitch 1
  200. else:
  201. send "{@Msg2}"
  202.  
  203. command /item9:
  204. trigger:
  205. if {almas.%player%} is more or equal to {@50kDinheiro}:
  206. remove {@50kDinheiro} from {almas.%player%}
  207. add {@Q50kDinheiro} to player's balance
  208. add {@Q50kDinheiro} to player's {money.%player%}
  209. send "&aVocê comprou 50k &apor {@50kDinheiro} Almas"
  210. play level up at player with pitch 1
  211. else:
  212. send "{@Msg2}"
  213.  
  214.  
  215. # Spawners #
  216.  
  217. command /sp1:
  218. trigger:
  219. if {almas.%player%} is more or equal to {@CSpawner}:
  220. remove {@CSpawner} from {almas.%player%}
  221. execute console command "spawner give %player% creeper {@QCSpawner}"
  222. play level up at player with pitch 1
  223. send "&aVocê comprou {@QCSpawner} Spawner de Creeper &apor {@CSpawner} Almas"
  224. else:
  225. send "{@Msg2}"
  226.  
  227. command /sp2:
  228. trigger:
  229. if {almas.%player%} is more or equal to {@BSpawner}:
  230. remove {@BSpawner} from {almas.%player%}
  231. execute console command "spawner give %player% blaze {@QBSpawner}"
  232. play level up at player with pitch 1
  233. send "&aVocê comprou {@QBSpawner} Spawner de Blaze &apor {@BSpawner} Almas"
  234. else:
  235. send "{@Msg2}"
  236.  
  237. command /sp3:
  238. trigger:
  239. if {almas.%player%} is more or equal to {@ZSpawner}:
  240. remove {@ZSpawner} from {almas.%player%}
  241. execute console command "spawner give %player% zombiepigman {@QZSpawner}"
  242. play level up at player with pitch 1
  243. send "&aVocê comprou {@QZSpawner} Spawner de ZombiePigman por {@ZSpawner} Almas"
  244. else:
  245. send "{@Msg2}"
  246.  
  247. command /sp4:
  248. trigger:
  249. if {almas.%player%} is more or equal to {@ISpawner}:
  250. remove {@ISpawner} from {almas.%player%}
  251. execute console command "spawner give %player% irongolem {@QISpawner}"
  252. play level up at player with pitch 1
  253. send "&aVocê comprou {@QISpawner} Spawner de IronGolem &apor {@ISpawner} Almas"
  254. else:
  255. send "{@Msg2}"
  256.  
  257.  
  258.  
  259.  
  260. # Menus Gui #
  261.  
  262. command /ashop:
  263. trigger:
  264. open chest with 3 rows named "&8Mercado Negro" to player
  265. play level up at player with pitch 1
  266. 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"]
  267. 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"]
  268.  
  269. command /compraritens:
  270. trigger:
  271. open chest with 6 rows named "&8Mercado Negro - LOJA" to player
  272. play chest open at player with pitch 1
  273. wait 1 ticks
  274. 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"]
  275. 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"]
  276. 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"]
  277. 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"]
  278. 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"]
  279. 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"]
  280. 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"]
  281. 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"]
  282. 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"]
  283. 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"]
  284. 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"]
  285. 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"]
  286. 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"]
  287. format slot 49 of player with a Arrow named "&eVoltar" with lore "&7Clique para Voltar" to run [make player execute command "/ashop"]
  288.  
  289. command /venderalmas1:
  290. trigger:
  291. if player's inventory has {@Item}:
  292. set {nb.itemSell.%player%} to 0
  293. while player has {@Item}:
  294. remove {@Item} from player
  295. set {nb.itemSell.%player%} to {nb.itemSell.%player%} + 1
  296. set {nb.itemSell.money.%player%} to {nb.itemSell.%player%} * {@Preco}
  297. add {nb.itemSell.money.%player%} to {almas.%player%}
  298. send "&aVocê resgatou %{nb.itemSell.%player%}% Almas"
  299. show mob spawner flames at player
  300. else:
  301. send "&cVocê não tem cabeças de jogadores!"
  302.  
  303. # Confirmação #
  304.  
  305. command /sconfirma1:
  306. trigger:
  307. open chest with 3 rows named "&8Confirmação" to player
  308. play chest open at player with pitch 1
  309. wait 1 ticks
  310. 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"]
  311. 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"]
  312. command /sconfirma2:
  313. trigger:
  314. open chest with 3 rows named "&8Confirmação" to player
  315. play chest open at player with pitch 1
  316. wait 1 ticks
  317. 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"]
  318. 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"]
  319. command /sconfirma3:
  320. trigger:
  321. open chest with 3 rows named "&8Confirmação" to player
  322. play chest open at player with pitch 1
  323. wait 1 ticks
  324. 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"]
  325. 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"]
  326. command /sconfirma4:
  327. trigger:
  328. open chest with 3 rows named "&8Confirmação" to player
  329. play chest open at player with pitch 1
  330. wait 1 ticks
  331. 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"]
  332. 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"]
  333. command /sconfirma5:
  334. trigger:
  335. open chest with 3 rows named "&8Confirmação" to player
  336. play chest open at player with pitch 1
  337. wait 1 ticks
  338. 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"]
  339. 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"]
  340. command /sconfirma6:
  341. trigger:
  342. open chest with 3 rows named "&8Confirmação" to player
  343. play chest open at player with pitch 1
  344. wait 1 ticks
  345. 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"]
  346. 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"]
  347. command /sconfirma7:
  348. trigger:
  349. open chest with 3 rows named "&8Confirmação" to player
  350. play chest open at player with pitch 1
  351. wait 1 ticks
  352. 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"]
  353. 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"]
  354. command /sconfirma8:
  355. trigger:
  356. open chest with 3 rows named "&8Confirmação" to player
  357. play chest open at player with pitch 1
  358. wait 1 ticks
  359. 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"]
  360. 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"]
  361. command /sconfirma9:
  362. trigger:
  363. open chest with 3 rows named "&8Confirmação" to player
  364. play chest open at player with pitch 1
  365. wait 1 ticks
  366. 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"]
  367. 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"]
  368. command /sconfirma10:
  369. trigger:
  370. open chest with 3 rows named "&8Confirmação" to player
  371. play chest open at player with pitch 1
  372. wait 1 ticks
  373. 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"]
  374. 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"]
  375. command /sconfirma11:
  376. trigger:
  377. open chest with 3 rows named "&8Confirmação" to player
  378. play chest open at player with pitch 1
  379. wait 1 ticks
  380. 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"]
  381. 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"]
  382. command /sconfirma12:
  383. trigger:
  384. open chest with 3 rows named "&8Confirmação" to player
  385. play chest open at player with pitch 1
  386. wait 1 ticks
  387. 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"]
  388. 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"]
  389. command /sconfirma13:
  390. trigger:
  391. open chest with 3 rows named "&8Confirmação" to player
  392. play chest open at player with pitch 1
  393. wait 1 ticks
  394. 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"]
  395. 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"]
  396.  
  397. command /negar123a:
  398. trigger:
  399. send "&cVocê &cnegou a compra!"
Add Comment
Please, Sign In to add comment