Advertisement
KingDarkZ_-Lucas

KDZ_Cash

Nov 24th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. # #!=================================[ Cash ]=================================!# #
  2. # #! Autor: KingDarkZ_ !# #
  3. # #! Nome: KDZ_Cash !# #
  4. # #! Versão: 1.1 !# #
  5. # #! Skript 100% gratuito !# #
  6. # #! Dependência: SkQuery !# #
  7. # #! !# #
  8. # #!=================================[ Cash ]=================================!# #
  9.  
  10.  
  11. #=============================== [ Opções ] ===============================#
  12.  
  13. options:
  14. TempoEspera: 3 #Tempo, em segundos, que vai demorar para aparecer o ash ou delay no chat e para executar um comando!#
  15. MsgSemPermi: &cErro, você não tem permissão para fazer isso.
  16. SeuSite: Loja-MasterMC.ga #Coloque o seu site aqui para aparecer no /shop#
  17.  
  18. #=============================== [ Fim das opções ] ===============================#
  19.  
  20.  
  21. #=============================== [ Variáveis - Não mecha ] ===============================#
  22.  
  23. variables:
  24. {cash.%player%} = 0
  25.  
  26. #=============================== [ Fim das variáveis ] ===============================#
  27.  
  28.  
  29.  
  30. #==================== [ Comando /cash add, remover, setar e ver. ] ====================#
  31.  
  32. command /cash [<text>] [<offlineplayer>] [<integer>]:
  33. trigger:
  34. if player has permission "cash.vermembro":
  35. if arg 1 is not set:
  36. send "&e "
  37. send "&e KDZ_Cash"
  38. send "&e "
  39. send "&a/cash ver &f- Para ver seu cash"
  40. send "&a/cash ver (Nick) &f- Para ver o cash de alguém"
  41. send "&e "
  42. stop
  43. if arg 1 is "ver":
  44. send "&aVocê tem &f%{cash.%player%}%&a de Cash"
  45. if arg 2 is set:
  46. send "&a%arg 2% tem &f%{cash.%arg 2%}% &ade cash"
  47. stop
  48. if player has permission "cash.vermaster":
  49. if arg 1 is not set:
  50. send "&e "
  51. send "&e KDZ_Cash"
  52. send "&e "
  53. send "&a/cash add Nick quantia"
  54. send "&a/cash remover Nick quantia"
  55. send "&a/cash setar Nick quantia"
  56. send "&a/cash ver &f- Para ver seu cash"
  57. send "&a/cash ver (Nick) &f- Para ver o cash de alguém"
  58. send "&e "
  59. stop
  60. if player has permission "cash.add":
  61. if arg 1 is "add":
  62. if arg 2 is set:
  63. if arg 3 is set:
  64. send "&aAguarde..."
  65. wait {@TempoEspera} second
  66. send "&aVocê enviou &A&L%arg 3%&a de Cash para &A&l%arg 2%"
  67. add arg 3 to {cash.%arg 2%}
  68. stop
  69. if player has permission "cash.remover":
  70. if arg 1 is "remover":
  71. if arg 2 is set:
  72. if arg 3 is set:
  73. if {cash.%player%} is more or equal to arg 3:
  74. send "&aAguarde..."
  75. wait {@TempoEspera} second
  76. send "&aVocê removeu &A&L%arg 3%&a de Cash de &A&l%arg 2%"
  77. remove arg 3 from {cash.%arg 2%}
  78. stop
  79. else:
  80. send "&a%arg 2% não tem %arg 3% de cash"
  81. if player has permission "cash.setar":
  82. if arg 1 is "setar":
  83. if arg 2 is set:
  84. if arg 3 is set:
  85. send "&aAguarde..."
  86. wait {@TempoEspera} second
  87. send "&aVocê setou o cash de &A&L%arg 2%&a para &A&l%arg 3%"
  88. set {cash.%arg 2%} to arg 3
  89. stop
  90.  
  91. #=============================== [ Fim do /cash ] ===============================#
  92.  
  93.  
  94.  
  95. #=============================== [ Não mecha aqui! ] ===============================#
  96.  
  97. on inventory click:
  98. if inventory name of player's current inventory is "Shop de cash - {@SeuSite}":
  99. cancel event
  100.  
  101. #=============================== [ ^^ Não mecha ^^ ] ===============================#
  102.  
  103.  
  104.  
  105. #=============================== [ Comandos do /shop ] ===============================#
  106.  
  107. command /shop:
  108. trigger:
  109. open chest with 5 rows named "Shop de cash - {@SeuSite}" to player
  110. play chest open at player with pitch 1
  111. format slot 4 of player with a Emerald Block named "&6Cash: &f%{cash.%player%}%" to run [make player execute command "/shop"]
  112. format slot 20 of player with a Nether Star named "&b&lVips &a(ON)" with lore "&7Clique para comprar seu vip." to run [make player execute command "/lojadecash-vips"]
  113. format slot 21 of player with a Tripwire Hook named "&5&lKeys &c(Off)" with lore "&7Clique para comprar Keys." to close
  114. format slot 22 of player with a Ender Chest named "&7&lCaixas &c(Off)" with lore "&7Clique para comprar caixas misteriosas." to close
  115. format slot 24 of player with a Experience Bottle named "&6&lMcMMo &c(Off)" with lore "&7Clique para comprar habilidades" to close
  116. format slot 23 of player with a Chest named "&a&lBaus &c(Off)" with lore "&7Clique para comprar /bau!" to close
  117. format slot 0 of player with a Glass Pane named "&8-/-" to close
  118. format slot 1 of player with a Glass Pane named "&8-/-" to close
  119. format slot 7 of player with a Glass Pane named "&8-/-" to close
  120. format slot 8 of player with a Glass Pane named "&8-/-" to close
  121. format slot 3 of player with a Glass Pane named "&8-/-" to close
  122. format slot 5 of player with a Glass Pane named "&8-/-" to close
  123. format slot 0 of player with a Glass Pane named "&8-/-" to close
  124. format slot 9 of player with a Glass Pane named "&8-/-" to close
  125. format slot 17 of player with a Glass Pane named "&8-/-" to close
  126. format slot 27 of player with a Glass Pane named "&8-/-" to close
  127. format slot 36 of player with a Glass Pane named "&8-/-" to close
  128. format slot 37 of player with a Glass Pane named "&8-/-" to close
  129. format slot 35 of player with a Glass Pane named "&8-/-" to close
  130. format slot 43 of player with a Glass Pane named "&8-/-" to close
  131. format slot 44 of player with a Glass Pane named "&8-/-" to close
  132. format slot 39 of player with a Glass Pane named "&8-/-" to close
  133. format slot 41 of player with a Glass Pane named "&8-/-" to close
  134.  
  135. command /adsgyudsaguyadugydasuy-vip1-1:
  136. trigger:
  137. send "&aAguarde, Estamos processando sua Compra..."
  138. wait TempoEspera second
  139. if {cash.%player%} is more or equal to 15:
  140. remove 15 from {cash.%player%}
  141. send "&aObrigado por obter &a&lVIP HERO &apor &a&l15 Cash"
  142. send "&acom esta compra você esta ajudando muito o servidor!"
  143. broadcast "&a"
  144. broadcast "&a O player &a&l%player% &acomprou &a&lVIP HERO"
  145. broadcast "&a por &a&l15 de Cash&a, obtenha você tambem"
  146. broadcast "&a utilizando o comando &a&l/shop &aou &a&l/market"
  147. broadcast "&a"
  148. else:
  149. send "&cVocê não tem cash suficiente para comprar esse produto!"
  150.  
  151.  
  152. #=============================== [ Fiiim ] ===============================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement