Advertisement
Darkio

Cash e Shop - Skript

Feb 6th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. # Skript de Cash e Shop
  2. # Dono: Darkio
  3. # por favor não tira os creditos
  4. # Version: 1.0
  5.  
  6. variables:
  7. {cash.%player%} = 0
  8.  
  9. options:
  10. addcash: &f» &7Você deu &6%arg 2% &7de cash para &6%arg 1%&7.
  11.  
  12. command /cash [<player>] [<integer>]:
  13. trigger:
  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. command /adicionarcash [<player>] [<integer>]:
  19. trigger:
  20. if player has permission "adicionarcash.admin":
  21. if arg 1 is set:
  22. if arg 2 is set:
  23. send "&7(&8cash&7) &f» &7Verificando sua permissão&6..."
  24. wait 3 second
  25. send "&7(&8cash&7) {@addcash}"
  26. add arg 2 to {cash.% arg 1%}
  27. play level up at player with pitch 1
  28. else:
  29. send "&7(&8cash&7) &7Você precisa coloca quantidade de cash para o player"
  30. else:
  31. send "&7(&8cash&7) &7Selecione um player"
  32. else:
  33. send "&7(&8cash&7) &cVocê não tem permissão para usar essse comando"
  34. Stop
  35.  
  36. command /removecash [<player>] [<integer>]:
  37. trigger:
  38. if player has permission "removecash.admin":
  39. if arg 1 is set:
  40. if arg 2 is set:
  41. send "&7(&8cash&7) &f» &7Verificando sua permissão&6..."
  42. wait 3 second
  43. send "&8(&6Cash&8) &f» &7Você retirou &6%arg 2% &7Cash de &6%arg 1%"
  44. remove arg 2 from {cash.%arg 1%}
  45. play level up at player with pitch 1
  46. else:
  47. send "&8(&6Cash&8) &aVocê precisa escolher uma quantidade de cash!"
  48. else:
  49. send "&8(&6Cash&8) Selecione um player para retirar os cash"
  50. else:
  51. send "&8(&6Cash&8) &cVocê não tem permissão para usar esse comando"
  52. stop
  53.  
  54. command /shop:
  55. trigger:
  56. open chest with 5 rows named "DarkShop" to player
  57. play chest open at player with pitch 1
  58. wait 3 ticks
  59. format slot 4 of player with a Emerald Block named "&6cash" with lore "&7Você possui&f: &6%{cash.%player%}% &7de cash" to close
  60. wait 3 ticks
  61. format slot 19 of player with a gold nugget named "&6Dinheiro" with lore "&7Compre money por cash" to run [make player execute command "/dinheiroys"]
  62.  
  63. command /dinheiroys:
  64. trigger:
  65. open chest with 3 rows named "&6Dinheiro" to player
  66. wait 3 ticks
  67. play chest open at player with pitch 1
  68. wait 3 ticks
  69. format slot 11 of player with a gold nugget named "&6Dinheiro&f: &21kk" with lore "&ePreço&f: &6100 &eCash||&eQuantidade&f: &61" to run [make player execute command "/numero1"]
  70. wait 3 ticks
  71. format slot 13 of player with a gold ingot named "&6Dinheiro&f: &210kk" with lore "&ePreço&f: &6150 &eCash||&eQuantidade&f: &61" to run [make player execute command "/numero2"]
  72. wait 3 ticks
  73. format slot 15 of player with a gold block named "&6Dinheiro&f: &2100kk" with lore "&ePreço&f: &6500 &eCash||&eQuantidade&f: &61" to run [make player execute command "/numero3"]
  74.  
  75. command /numero1:
  76. trigger:
  77. send "&aProcessando a Compra..."
  78. wait 3 second
  79. if {cash.%player%} is more or equal to 100:
  80. remove 100 from {cash.%player%}
  81. add 1000000 to player's balance
  82. send "&aVocê comprou 1kk de Money Por 100 de cash"
  83. send "&cFoi removido 100 de cash de sua conta!"
  84. broadcast "&8(&7Mercado&8) &6%player% &7comprou &71kk de &6Money &7Por &6100 &7de &6Cash&7!"
  85. play level up at player with pitch 1
  86. else:
  87. send "&cVocê não tem cash suficiente para compra esse item"
  88.  
  89. command /numero2:
  90. trigger:
  91. send "&aProcessando a Compra..."
  92. wait 3 second
  93. if {cash.%player%} is more or equal to 150:
  94. remove 150 from {cash.%player%}
  95. add 10000000 to player's balance
  96. send "&aVocê comprou 10kk de Money Por 150 de Cash"
  97. send "&cFoi removido 150 de cash de sua conta!"
  98. broadcast "&8(&7Mercado&8) &6%player% &7comprou &710kk de &6Money &7Por &6150 &7de &6Cash&7!"
  99. play level up at player with pitch 1
  100. else:
  101. send "&cVocê não tem cash suficiente para compra esse item"
  102.  
  103. command /numero3:
  104. trigger:
  105. send "&aProcessando a Compra..."
  106. wait 3 second
  107. if {cash.%player%} is more or equal to 500:
  108. remove 500 from {cash.%player%}
  109. add 100000000 to player's balance
  110. send "&aVocê comprou 100kk de Money Por 500 de Cash"
  111. send "&cFoi removido 500 de cash de sua conta!"
  112. broadcast "&8(&7Mercado&8) &6%player% &7comprou &710kk de &6Money &7Por &6500 &7de &6Cash&7!"
  113. play level up at player with pitch 1
  114. else:
  115. send "&cVocê não tem cash suficiente para compra esse item"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement