Advertisement
Darkio

Cash e Shop - Skript V2

Feb 13th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.88 KB | None | 0 0
  1. # Skript de Cash e Shop
  2. # Dono: Darkio
  3. # por favor não tira os creditos
  4. # Version: 2.0
  5. variables:
  6. {cash.%player%} = 0
  7. options:
  8. addcash: &f» &7Você deu &6%arg 2% &7de cash para &6%arg 1%&7.
  9. # Sistema de saber seu cash #
  10. command /cash [<player>] [<integer>]:
  11. trigger:
  12. if arg 1 is set:
  13. send "&7(&8cash&7) &f» &7cash de &8%arg 1%&f: &6%{cash.%arg 1%}%"
  14. if arg 1 is not set:
  15. send "&7(&8cash&7) &f» &7cash&f: &6%{cash.%player%}%"
  16. play level up at player with pitch 1
  17.  
  18. # Sistema de adicionarcash para o player#
  19. command /adicionarcash [<player>] [<integer>]:
  20. trigger:
  21. if player has permission "adicionarcash.admin":
  22. if arg 1 is set:
  23. if arg 2 is set:
  24. send "&7(&8cash&7) &f» &7Verificando sua permissão&6..."
  25. wait 3 second
  26. send "&7(&8cash&7) {@addcash}"
  27. add arg 2 to {cash.% arg 1%}
  28. play level up at player with pitch 1
  29. else:
  30. send "&7(&8cash&7) &7Você precisa coloca quantidade de cash para o player"
  31. stop
  32. else:
  33. send "&7(&8cash&7) &7Selecione um player"
  34. stop
  35. else:
  36. send "&7(&8cash&7) &cVocê não tem permissão para usar essse comando"
  37. Stop
  38. # Sistema de remove cash do player#
  39. command /removecash [<player>] [<integer>]:
  40. trigger:
  41. if player has permission "removecash.admin":
  42. if arg 1 is set:
  43. if arg 2 is set:
  44. send "&7(&8cash&7) &f» &7Verificando sua permissão&6..."
  45. wait 3 second
  46. send "&8(&6Cash&8) &f» &7Você retirou &6%arg 2% &7Cash de &6%arg 1%"
  47. remove arg 2 from {cash.%arg 1%}
  48. play level up at player with pitch 1
  49. else:
  50. send "&8(&6Cash&8) &aVocê precisa escolher uma quantidade de cash!"
  51. stop
  52. else:
  53. send "&8(&6Cash&8) Selecione um player para retirar os cash"
  54. stop
  55. else:
  56. send "&8(&6Cash&8) &cVocê não tem permissão para usar esse comando"
  57. stop
  58. # Sistema de menu gui de shop #
  59. command /shop:
  60. trigger:
  61. open chest with 5 rows named "DarkShop de Cash!" to player
  62. play chest open at player with pitch 1
  63. wait 2 ticks
  64. format slot 4 of player with a Emerald Block named "&6cash" with lore "&7Você possui&f: &6%{cash.%player%}% &7de cash" to close
  65. wait 2 ticks
  66. format slot 19 of player with a gold nugget named "&6Dinheiro" with lore "&7Compre money por cash" to run [make player execute command "/dinheiro"]
  67. wait 2 ticks
  68. format slot 20 of player with a book named "&cMCMMO" with lore "&7Compre xp de mcmmo por cash" to run [make player execute command "/guimcmmo"]
  69. # Sistema de itens da loja #
  70. command /dinheiro:
  71. trigger:
  72. open chest with 3 rows named "Dinheiro" to player
  73. play chest open at player with pitch 1
  74. wait 2 ticks
  75. format slot 11 of player with a gold nugget named "&6Dinheiro&f: &21kk" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm1"]
  76. wait 2 ticks
  77. format slot 13 of player with a gold ingot named "&6Dinheiro&f: &210kk" with lore "&ePreço &e(&3Protudo&e)&f &6150 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm2"]
  78. wait 2 ticks
  79. format slot 15 of player with a gold block named "&6Dinheiro&f: &2100kk" with lore "&ePreço &e(&3Protudo&e)&f &6500 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm3"]
  80. command /guimcmmo:
  81. trigger:
  82. open chest with 1 rows named "&cMCMMO" to player
  83. play chest open at player with pitch 1
  84. wait 2 ticks
  85. format slot 0 of player with a diamond hoe named "&aHerbalismo" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm4"]
  86. wait 2 ticks
  87. format slot 1 of player with a diamond shovel named "&aExcavação" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm5"]
  88. wait 2 ticks
  89. format slot 2 of player with a diamond pickaxe named "&aMinerador" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm6"]
  90. wait 2 ticks
  91. format slot 3 of player with a diamond Axe named "&aAxe (combate)" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm7"]
  92. wait 2 ticks
  93. format slot 4 of player with a iron ingot named "&aReparação" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm8"]
  94. wait 2 ticks
  95. format slot 5 of player with a diamond sword named "&aEspada (combate)" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm9"]
  96. wait 2 ticks
  97. format slot 6 of player with a Brewing Stand named "&aAlquemia" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm10"]
  98. # Sistema de confirmar itens #
  99. command /confirm1:
  100. trigger:
  101. open chest with 3 rows named "Tem certeza?" to player
  102. play chest open at player with pitch 1
  103. wait 2 ticks
  104. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero1"]
  105. wait 2 ticks
  106. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  107. command /confirm2:
  108. trigger:
  109. open chest with 3 rows named "Tem certeza?" to player
  110. play chest open at player with pitch 1
  111. wait 2 ticks
  112. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero2"]
  113. wait 2 ticks
  114. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  115. command /confirm3:
  116. trigger:
  117. open chest with 3 rows named "Tem certeza?" to player
  118. play chest open at player with pitch 1
  119. wait 2 ticks
  120. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero3"]
  121. wait 2 ticks
  122. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  123. command /confirm4:
  124. trigger:
  125. open chest with 3 rows named "Tem certeza?" to player
  126. play chest open at player with pitch 1
  127. wait 2 ticks
  128. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero4"]
  129. wait 2 ticks
  130. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  131. command /confirm5:
  132. trigger:
  133. open chest with 3 rows named "Tem certeza?" to player
  134. play chest open at player with pitch 1
  135. wait 2 ticks
  136. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero5"]
  137. wait 2 ticks
  138. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  139. command /confirm6:
  140. trigger:
  141. open chest with 3 rows named "Tem certeza?" to player
  142. play chest open at player with pitch 1
  143. wait 2 ticks
  144. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero6"]
  145. wait 2 ticks
  146. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  147. command /confirm7:
  148. trigger:
  149. open chest with 3 rows named "Tem certeza?" to player
  150. play chest open at player with pitch 1
  151. wait 2 ticks
  152. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero7"]
  153. wait 2 ticks
  154. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  155. command /confirm8:
  156. trigger:
  157. open chest with 3 rows named "Tem certeza?" to player
  158. play chest open at player with pitch 1
  159. wait 2 ticks
  160. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero8"]
  161. wait 2 ticks
  162. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  163. command /confirm9:
  164. trigger:
  165. open chest with 3 rows named "Tem certeza?" to player
  166. play chest open at player with pitch 1
  167. wait 2 ticks
  168. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero9"]
  169. wait 2 ticks
  170. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  171. command /confirm10:
  172. trigger:
  173. open chest with 3 rows named "Tem certeza?" to player
  174. play chest open at player with pitch 1
  175. wait 2 ticks
  176. format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero10"]
  177. wait 2 ticks
  178. format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
  179. # Sistema de compras #
  180. command /numero1:
  181. trigger:
  182. send "&aProcessando a Compra..."
  183. wait 3 second
  184. if {cash.%player%} is more or equal to 100:
  185. remove 100 from {cash.%player%}
  186. add 1000000 to player's balance
  187. send "&aVocê comprou 1kk de Money Por 100 de cash"
  188. send "&cFoi removido 100 de cash de sua conta!"
  189. broadcast "&8(&7Mercado&8) &6%player% &7comprou &71kk de &6Money &7Por &6100 &7de &6Cash&7!"
  190. play level up at player with pitch 1
  191. else:
  192. send "&cVocê não tem cash suficiente para compra esse item"
  193. stop
  194. command /numero2:
  195. trigger:
  196. send "&aProcessando a Compra..."
  197. wait 3 second
  198. if {cash.%player%} is more or equal to 150:
  199. remove 150 from {cash.%player%}
  200. add 10000000 to player's balance
  201. send "&aVocê comprou 10kk de Money Por 150 de Cash"
  202. send "&cFoi removido 150 de cash de sua conta!"
  203. broadcast "&8(&7Mercado&8) &6%player% &7comprou &710kk de &6Money &7Por &6150 &7de &6Cash&7!"
  204. play level up at player with pitch 1
  205. else:
  206. send "&cVocê não tem cash suficiente para compra esse item"
  207. stop
  208. command /numero3:
  209. trigger:
  210. send "&aProcessando a Compra..."
  211. wait 3 second
  212. if {cash.%player%} is more or equal to 500:
  213. remove 500 from {cash.%player%}
  214. add 100000000 to player's balance
  215. send "&aVocê comprou 100kk de Money Por 500 de Cash"
  216. send "&cFoi removido 500 de cash de sua conta!"
  217. broadcast "&8(&7Mercado&8) &6%player% &7comprou &710kk de &6Money &7Por &6500 &7de &6Cash&7!"
  218. play level up at player with pitch 1
  219. else:
  220. send "&cVocê não tem cash suficiente para compra esse item"
  221. stop
  222. command /numero4:
  223. trigger:
  224. send "&aProcessando a compra..."
  225. wait 3 second
  226. if {cash.%player%} is more or equal to 100:
  227. remove 100 from {cash.%player%}
  228. subtract 100 from player's account
  229. send "&aVocê comprou xp de herbalismo Por 100 de Cash"
  230. send "&cFoi removido 100 de cash de sua conta!"
  231. make console execute command "/addxp %player% herbalismo 11000000"
  232. broadcast "&8(&7Mercado&8) &6%player% &7comprou &7Xp de &6Herbalismo &7Por &6100 &7de &6Cash&7!"
  233. play level up at player with pitch 1
  234. else:
  235. send "&cVocê não tem cash suficiente para compra esse item"
  236. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement