Guest User

Rbanco

a guest
Aug 20th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.15 KB | None | 0 0
  1. # ▒██████ ▒██████████ #
  2. # ▒██ ▒██ ▒████ ▒███████ ▒████ ▒███████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒████████ ▒████████ #
  3. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▀▀ #
  4. # ▒██ ▒██ ▒██ ▒██ ▒███████ ▒██ ▒██ ▒███████ ▒██ ▒██████████ ▒████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  5. # ▒██████ ▒████████ ▒██ ▒████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██████ ▒██ ▒██████ ▒██ ▒██ #
  6. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ #
  7. # ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒███████ ▒███████ ▒██████████ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒██ ▒████████ #
  8.  
  9.  
  10.  
  11.  
  12. on load:
  13. if file "plugins/Skript/scripts/RSaldoBanco/data.yml" doesn't exists:
  14. create file "plugins/Skript/scripts/RSaldoBanco/data.yml"
  15.  
  16. function AddSaldo(p: player, quantidade: integer):
  17. set {_Saldo} to value "%{_p}%.Saldo" get of "plugins/Skript/scripts/RSaldoBanco/data.yml"
  18. set {_Saldo} to {_Saldo} parsed as integer
  19. add {_quantidade} to {_Saldo}
  20. set "%{_p}%.Saldo" to "%{_Saldo}%" in yaml file "plugins/Skript/scripts/RSaldoBanco/data.yml"
  21.  
  22. function SetSaldo(p: player, quantidade: integer):
  23. set "%{_p}%.Saldo" to "%{_quantidade}%" in yaml file "plugins/Skript/scripts/RSaldoBanco/data.yml"
  24.  
  25. function RemoveSaldo(p: player, quantidade: integer):
  26. set {_Saldo} to value "%{_p}%.Saldo" get of "plugins/Skript/scripts/RSaldoBanco/data.yml"
  27. set {_Saldo} to {_Saldo} parsed as integer
  28. remove {_quantidade} from {_Saldo}
  29. set "%{_p}%.Saldo" to "%{_Saldo}%" in yaml file "plugins/Skript/scripts/RSaldoBanco/data.yml"
  30.  
  31. function pegarSaldo(p: player) :: integer:
  32. set {_Saldo} to value "%{_p}%.Saldo" get of "plugins/Skript/scripts/RSaldoBanco/data.yml"
  33. set {_Saldo} to {_Saldo} parsed as integer
  34. return {_Saldo}
  35.  
  36. function pegarConta(p: player) :: text:
  37. set {_tiverconta} to value "%{_p}%.Conta" get of "plugins/Skript/scripts/RSaldoBanco/data.yml"
  38. set {_tiverconta} to {_tiverconta} parsed as text
  39. return {_tiverconta}
  40.  
  41. on join:
  42. #QUANDO ELE ENTRA SE O CASH N EXISTIR CRIA UM NOVO PLAYER
  43. set {_Saldo} to value "%player%.Saldo" get of "plugins/Skript/scripts/RSaldoBanco/data.yml"
  44. set {_tiverconta} to value "%player%.Conta" get of "plugins/Skript/scripts/RSaldoBanco/data.yml"
  45. if {_Saldo} is not set:
  46. if {_tiverconta} is not set:
  47. set "%player%.Saldo" to "0" in yaml file "plugins/Skript/scripts/RSaldoBanco/data.yml"
  48. set "%player%.Conta" to "true" in yaml file "plugins/Skript/scripts/RSaldoBanco/data.yml"
  49.  
  50.  
  51. function SpawnBancario(p: player):
  52. spawn a villager at location of {_p}
  53. set name of last spawned villager to "&2&lBanqueiro"
  54. add "{NoAI:1}" to nbt of last spawned villager
  55. add "{Gravity:1}" to nbt of last spawned villager
  56.  
  57. function RemoveBancario(p: player):
  58. loop all entities:
  59. if name of loop-entity is "&2&lBanqueiro":
  60. clear loop-entity
  61.  
  62.  
  63. on damage:
  64. if name of victim is "&2&lBanqueiro":
  65. if victim is villager:
  66. cancel event
  67.  
  68. on rightclick on villager:
  69. if name of clicked entity is "&2&lBanqueiro":
  70. cancel event
  71. make player execute command "/acessarobancopelomenunocomandosecretodalaguinha"
  72.  
  73. command /banqueiro [<text>]:
  74. trigger:
  75. if player has permission "bancario.usar":
  76. if arg 1 is "spawnar":
  77. send player title "&2&lBanqueiro" with subtitle "&7Foi setado cum sucesso." for 2 seconds
  78. SpawnBancario(player)
  79. if arg 1 is "despawnar":
  80. send player title "&2&lBanqueiro" with subtitle "&7Foi deletado cum sucesso." for 2 seconds
  81. RemoveBancario(player)
  82. if arg 1 is not "spawnar" or "despawnar":
  83. send player title "&2&lBanqueiro" with subtitle "&7Utilize /banqueiro (spawnar/despawnar)." for 2 seconds
  84. if arg 1 is not set:
  85. send player title "&2&lBanqueiro" with subtitle "&7Utilize /banqueiro (spawnar/despawnar)." for 2 seconds
  86. else:
  87. send player title "&cVocê não possui" with subtitle "&cpermissão para isso." for 2 seconds
  88.  
  89. on inventory click:
  90. if inventory name of player's current inventory is "&8Banqueiro- Confirmação":
  91. cancel event
  92.  
  93. on inventory click:
  94. if inventory name of player's current inventory is "&8Banqueiro- Depositar":
  95. cancel event
  96.  
  97. on inventory click:
  98. if inventory name of player's current inventory is "&8Banqueiro- Sacar":
  99. cancel event
  100.  
  101. on inventory click:
  102. if inventory name of player's current inventory is "&8Banqueiro- Extrato":
  103. cancel event
  104.  
  105. on inventory click:
  106. if inventory name of player's current inventory is "&8Banqueiro- Cheque":
  107. cancel event
  108.  
  109. command /acessarobancopelomenunocomandosecretodalaguinha:
  110. trigger:
  111. set {_saldojogadorver} to pegarSaldo(player)
  112. set {_setiverconta} to pegarConta(player)
  113. play "ORB_PICKUP" to player at volume 0.5
  114. if "%{_setiverconta}%" = "false":
  115. open chest with 3 row named "&8Banqueiro - Sem conta" to player
  116. wait 4 tick
  117. format slot 13 of player with barrier named "&eSem conta" with lore "&f||&7Infelismente você não tem uma conta bancaria.||&7Não perca tempo e adquira já no /shop.||&f" to be unstealable
  118. else:
  119. open chest with 3 row named "&8Banqueiro - Painel" to player
  120. wait 4 tick
  121. format slot 10 of player with diamond ore named "&eDepositar" with lore "&f||&7Você pode depositar seu dinheiro,||&7aqui no banco ,isso deixará seu||&7dinheiro mais seguro.||&f" to run [make player execute command "acessaromenudedepositarnobancario"]
  122. format slot 12 of player with emerald ore named "&eSacar" with lore "&f||&7Você pode sacar seu dinheiro,||&7este dinheiro irá para sua conta.||&f" to run [make player execute command "acessaromenudesacarrnobancario"]
  123. format slot 14 of player with sunflower named "&eExtrato" with lore "&f||&7Você pode ver o extrato da sua,||&7da sua conta bancaria.||&f" to run [make player execute command "acessaromenudeextratornobancario"]
  124. format slot 16 of player with paper named "&eCheque" with lore "||&7Você pode fazer cheques e pagar jogadores.||&f" to run [make player execute command "acessaromenudechequenobancario"]
  125.  
  126. command /acessaromenudedepositarnobancario:
  127. trigger:
  128. set {_setiverconta} to pegarConta(player)
  129. set {_saldojogadorver} to pegarSaldo(player)
  130. if "%{_setiverconta}%" = "true":
  131. play "NOTE_PLING" to player at volume 0.5
  132. open chest with 4 row named "&8Banqueiro - Depositar" to player
  133. wait 4 tick
  134. format slot 10 of player with paper named "&eDepositar 1 mil" with lore "||&7Você pode depositar 1 mil em||&7sua conta bancaria.||&f" to run [make player execute command "depositar1milnobancodocaraconfirmacao"]
  135. format slot 12 of player with paper named "&eDepositar 5 mil" with lore "||&7Você pode depositar 5 mil em||&7sua conta bancaria.||&f" to run [make player execute command "depositar5milnobancodocaraconfirmacao"]
  136. format slot 14 of player with paper named "&eDepositar 10 mil" with lore "||&7Você pode depositar 10 mil em||&7sua conta bancaria.||&f" to run [make player execute command "depositar10milnobancodocaraconfirmacao"]
  137. format slot 16 of player with paper named "&eDepositar 100 mil" with lore "||&7Você pode depositar 100 mil em||&7sua conta bancaria.||&f" to run [make player execute command "depositar100milnobancodocaraconfirmacao"]
  138. format slot 19 of player with paper named "&eDepositar 500 mil" with lore "||&7Você pode depositar 500 mil em||&7sua conta bancaria.||&f" to run [make player execute command "depositar500milnobancodocaraconfirmacao"]
  139. format slot 21 of player with paper named "&eDepositar 1 milhão" with lore "||&7Você pode depositar 1 milão em||&7sua conta bancaria.||&f" to run [make player execute command "depositar1milhaonobancodocaraconfirmacao"]
  140. format slot 23 of player with paper named "&eDepositar 10 milhões" with lore "||&7Você pode depositar 10 milhões em||&7sua conta bancaria.||&f" to run [make player execute command "depositar10milhaonobancodocaraconfirmacao"]
  141. format slot 25 of player with paper named "&eDepositar 20 milhões" with lore "||&7Você pode depositar 20 milhões em||&7sua conta bancaria.||&f" to run [make player execute command "depositar20milhaonobancodocaraconfirmacao"]
  142. format slot 35 of player with arrow named "&eRetornar" with lore "||&7Clique para retornar ao painel central.||&f" to run [make player execute command "acessarobancopelomenunocomandosecretodalaguinha"]
  143. else:
  144. close player's inventory
  145. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  146.  
  147. command /acessaromenudeextratornobancario:
  148. trigger:
  149. set {_setiverconta} to pegarConta(player)
  150. set {_saldojogadorver} to pegarSaldo(player)
  151. if "%{_setiverconta}%" = "true":
  152. play "NOTE_PLING" to player at volume 0.5
  153. open chest with 3 row named "&8Banqueiro - Extrato" to player
  154. wait 4 tick
  155. format slot 13 of player with sunflower named "&eSeu saldo: &f%{_saldojogadorver}%" with lore "||&7Com seu saldo você pode fazer saques,||&7e cheques.||&f" to be unstealable
  156. format slot 26 of player with arrow named "&eRetornar" with lore "||&7Clique para retornar ao painel central.||&f" to run [make player execute command "acessarobancopelomenunocomandosecretodalaguinha"]
  157.  
  158.  
  159. command /acessaromenudechequenobancario:
  160. trigger:
  161. set {_setiverconta} to pegarConta(player)
  162. if "%{_setiverconta}%" = "true":
  163. play "NOTE_PLING" to player at volume 0.5
  164. open chest with 4 row named "&8Banqueiro - Sacar" to player
  165. wait 4 tick
  166. format slot 10 of player with paper named "&eCheque 1 mil" with lore "||&7Você pode fazer um cheque de 1 mil ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque1milnobancodocaraconfirmacao"]
  167. format slot 12 of player with paper named "&eCheque 5 mil" with lore "||&7Você pode fazer um cheque de 5 mil ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque5milnobancodocaraconfirmacao"]
  168. format slot 14 of player with paper named "&eCheque 10 mil" with lore "||&7Você pode fazer um cheque de 10 mil ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque10milnobancodocaraconfirmacao"]
  169. format slot 16 of player with paper named "&eCheque 100 mil" with lore "||&7Você pode fazer um cheque de 100 mil ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque100milnobancodocaraconfirmacao"]
  170. format slot 19 of player with paper named "&eCheque 500 mil" with lore "||&7Você pode fazer um cheque de 500 mil ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque500milnobancodocaraconfirmacao"]
  171. format slot 21 of player with paper named "&eCheque 1 milhão" with lore "||&7Você pode fazer um cheque de 1 milão ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque1mnobancodocaraconfirmacao"]
  172. format slot 23 of player with paper named "&eCheque 10 milhões" with lore "||&7Você pode fazer um cheque de 10 milhões ira||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque10mnobancodocaraconfirmacao"]
  173. format slot 25 of player with paper named "&eCheque 20 milhões" with lore "||&7Você pode sacar 20 milhões de||&7descontar de sua conta bancaria.||&f" to run [make player execute command "cheque20mnobancodocaraconfirmacao"]
  174. format slot 35 of player with arrow named "&eRetornar" with lore "||&7Clique para retornar ao painel central.||&f" to run [make player execute command "acessarobancopelomenunocomandosecretodalaguinha"]
  175. else:
  176. close player's inventory
  177. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  178.  
  179.  
  180. command /cheque1milnobancodocaraconfirmacao:
  181. trigger:
  182. set {_setiverconta} to pegarConta(player)
  183. if "%{_setiverconta}%" = "true":
  184. play "NOTE_PLING" to player at volume 0.5
  185. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  186. wait 2 tick
  187. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque1knacontadobanco"]
  188. format slot 13 of player with a paper named "&eCheque 1 mil" with lore "||&7Você pode fazer um cheque de 1 mil irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  189. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  190. else:
  191. close player's inventory
  192. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  193.  
  194.  
  195. command /cheque1knacontadobanco:
  196. trigger:
  197. set {_setiverconta} to pegarConta(player)
  198. set {_saldojogadorver} to pegarSaldo(player)
  199. if "%{_setiverconta}%" = "true":
  200. if {_saldojogadorver} >= 1000:
  201. RemoveSaldo(player, 1000)
  202. give 1 paper named "&eCheque" with lore "||&7Valor: &f1,000||&f" to player
  203. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 1 mil." for 2 seconds
  204. else:
  205. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  206. else:
  207. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  208.  
  209. command /cheque5milnobancodocaraconfirmacao:
  210. trigger:
  211. set {_setiverconta} to pegarConta(player)
  212. if "%{_setiverconta}%" = "true":
  213. play "NOTE_PLING" to player at volume 0.5
  214. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  215. wait 2 tick
  216. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque5knacontadobanco"]
  217. format slot 13 of player with a paper named "&eCheque 5 mil" with lore "||&7Você pode fazer um cheque de 5 mil irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  218. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  219. else:
  220. close player's inventory
  221. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  222.  
  223.  
  224. command /cheque5knacontadobanco:
  225. trigger:
  226. set {_setiverconta} to pegarConta(player)
  227. set {_saldojogadorver} to pegarSaldo(player)
  228. if "%{_setiverconta}%" = "true":
  229. if {_saldojogadorver} >= 5000:
  230. RemoveSaldo(player, 5000)
  231. give 1 paper named "&eCheque" with lore "||&7Valor: &f5,000||&f" to player
  232. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 5 mil." for 2 seconds
  233. else:
  234. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  235. else:
  236. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  237.  
  238. command /cheque10milnobancodocaraconfirmacao:
  239. trigger:
  240. set {_setiverconta} to pegarConta(player)
  241. if "%{_setiverconta}%" = "true":
  242. play "NOTE_PLING" to player at volume 0.5
  243. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  244. wait 2 tick
  245. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque10knacontadobanco"]
  246. format slot 13 of player with a paper named "&eCheque 10 mil" with lore "||&7Você pode fazer um cheque de 10 mil irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  247. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  248. else:
  249. close player's inventory
  250. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  251.  
  252.  
  253. command /cheque10knacontadobanco:
  254. trigger:
  255. set {_setiverconta} to pegarConta(player)
  256. set {_saldojogadorver} to pegarSaldo(player)
  257. if "%{_setiverconta}%" = "true":
  258. if {_saldojogadorver} >= 10000:
  259. RemoveSaldo(player, 10000)
  260. give 1 paper named "&eCheque" with lore "||&7Valor: &f10,000||&f" to player
  261. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 10 mil." for 2 seconds
  262. else:
  263. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  264. else:
  265. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  266.  
  267. command /cheque100milnobancodocaraconfirmacao:
  268. trigger:
  269. set {_setiverconta} to pegarConta(player)
  270. if "%{_setiverconta}%" = "true":
  271. play "NOTE_PLING" to player at volume 0.5
  272. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  273. wait 2 tick
  274. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque100knacontadobanco"]
  275. format slot 13 of player with a paper named "&eCheque 100 mil" with lore "||&7Você pode fazer um cheque de 100 mil irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  276. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  277. else:
  278. close player's inventory
  279. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  280.  
  281.  
  282. command /cheque100knacontadobanco:
  283. trigger:
  284. set {_setiverconta} to pegarConta(player)
  285. set {_saldojogadorver} to pegarSaldo(player)
  286. if "%{_setiverconta}%" = "true":
  287. if {_saldojogadorver} >= 100000:
  288. RemoveSaldo(player, 100000)
  289. give 1 paper named "&eCheque" with lore "||&7Valor: &f100,000||&f" to player
  290. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 100 mil." for 2 seconds
  291. else:
  292. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  293. else:
  294. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  295.  
  296. command /cheque500milnobancodocaraconfirmacao:
  297. trigger:
  298. set {_setiverconta} to pegarConta(player)
  299. if "%{_setiverconta}%" = "true":
  300. play "NOTE_PLING" to player at volume 0.5
  301. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  302. wait 2 tick
  303. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque100knacontadobanco"]
  304. format slot 13 of player with a paper named "&eCheque 500 mil" with lore "||&7Você pode fazer um cheque de 500 mil irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  305. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  306. else:
  307. close player's inventory
  308. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  309.  
  310.  
  311. command /cheque500knacontadobanco:
  312. trigger:
  313. set {_setiverconta} to pegarConta(player)
  314. set {_saldojogadorver} to pegarSaldo(player)
  315. if "%{_setiverconta}%" = "true":
  316. if {_saldojogadorver} >= 500000:
  317. RemoveSaldo(player, 500000)
  318. give 1 paper named "&eCheque" with lore "||&7Valor: &f500,000||&f" to player
  319. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 500 mil." for 2 seconds
  320. else:
  321. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  322. else:
  323. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  324.  
  325. command /cheque1mnobancodocaraconfirmacao:
  326. trigger:
  327. set {_setiverconta} to pegarConta(player)
  328. if "%{_setiverconta}%" = "true":
  329. play "NOTE_PLING" to player at volume 0.5
  330. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  331. wait 2 tick
  332. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque1mnacontadobanco"]
  333. format slot 13 of player with a paper named "&eCheque 1 milhão" with lore "||&7Você pode fazer um cheque de 1 milhão irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  334. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  335. else:
  336. close player's inventory
  337. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  338.  
  339.  
  340. command /cheque1mnacontadobanco:
  341. trigger:
  342. set {_setiverconta} to pegarConta(player)
  343. set {_saldojogadorver} to pegarSaldo(player)
  344. if "%{_setiverconta}%" = "true":
  345. if {_saldojogadorver} >= 1000000:
  346. RemoveSaldo(player, 1000000)
  347. give 1 paper named "&eCheque" with lore "||&7Valor: &f1,000,000||&f" to player
  348. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 1 milhão." for 2 seconds
  349. else:
  350. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  351. else:
  352. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  353.  
  354.  
  355. command /cheque10mnobancodocaraconfirmacao:
  356. trigger:
  357. set {_setiverconta} to pegarConta(player)
  358. if "%{_setiverconta}%" = "true":
  359. play "NOTE_PLING" to player at volume 0.5
  360. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  361. wait 2 tick
  362. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque10mnacontadobanco"]
  363. format slot 13 of player with a paper named "&eCheque 10 milhões" with lore "||&7Você pode fazer um cheque de 10 milhões irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  364. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  365. else:
  366. close player's inventory
  367. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  368.  
  369.  
  370. command /cheque10mnacontadobanco:
  371. trigger:
  372. set {_setiverconta} to pegarConta(player)
  373. set {_saldojogadorver} to pegarSaldo(player)
  374. if "%{_setiverconta}%" = "true":
  375. if {_saldojogadorver} >= 10000000:
  376. RemoveSaldo(player, 10000000)
  377. give 1 paper named "&eCheque" with lore "||&7Valor: &f10,000,000||&f" to player
  378. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 10 milhões." for 2 seconds
  379. else:
  380. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  381. else:
  382. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  383.  
  384. command /cheque20mnobancodocaraconfirmacao:
  385. trigger:
  386. set {_setiverconta} to pegarConta(player)
  387. if "%{_setiverconta}%" = "true":
  388. play "NOTE_PLING" to player at volume 0.5
  389. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  390. wait 2 tick
  391. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "cheque20mnacontadobanco"]
  392. format slot 13 of player with a paper named "&eCheque 20 milhões" with lore "||&7Você pode fazer um cheque de 20 milhões irá||&7descontar de sua conta bancaria.||&f" to be unstealable
  393. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  394. else:
  395. close player's inventory
  396. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  397.  
  398.  
  399. command /cheque20mnacontadobanco:
  400. trigger:
  401. set {_setiverconta} to pegarConta(player)
  402. set {_saldojogadorver} to pegarSaldo(player)
  403. if "%{_setiverconta}%" = "true":
  404. if {_saldojogadorver} >= 20000000:
  405. RemoveSaldo(player, 20000000)
  406. give 1 paper named "&eCheque" with lore "||&7Valor: &f20,000,000||&f" to player
  407. send player title "&2Banqueiro" with subtitle "&fVocê fez um cheque com valor de 20 milhões." for 2 seconds
  408. else:
  409. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  410. else:
  411. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  412.  
  413.  
  414.  
  415.  
  416. on right click:
  417. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f1,000||&f":
  418. remove 1 paper named "&eCheque" with lore "||&7Valor: &f1,000||&f" from player
  419. add 1000 to player's balance
  420. send ""
  421. send "&aFoi depositado 1 mil em sua conta..."
  422. send ""
  423.  
  424. on right click:
  425. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f5,000||&f":
  426. remove 1 paper named "&eCheque" with lore "||&7Valor: &f5,000||&f" from player
  427. add 5000 to player's balance
  428. send ""
  429. send "&aFoi depositado 5 mil em sua conta..."
  430. send ""
  431.  
  432.  
  433. on right click:
  434. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f10,000||&f":
  435. remove 1 paper named "&eCheque" with lore "||&7Valor: &f10,000||&f" from player
  436. add 10000 to player's balance
  437. send ""
  438. send "&aFoi depositado 10 mil em sua conta..."
  439. send ""
  440.  
  441. on right click:
  442. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f100,000||&f":
  443. remove 1 paper named "&eCheque" with lore "||&7Valor: &f100,000||&f" from player
  444. add 100000 to player's balance
  445. send ""
  446. send "&aFoi depositado 100 mil em sua conta..."
  447. send ""
  448. on right click:
  449. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f500,000||&f":
  450. remove 1 paper named "&eCheque" with lore "||&7Valor: &f500,000||&f" from player
  451. add 500000 to player's balance
  452. send ""
  453. send "&aFoi depositado 500 mil em sua conta..."
  454. send ""
  455.  
  456. on right click:
  457. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f1,000,000||&f":
  458. remove 1 paper named "&eCheque" with lore "||&7Valor: &f1,000,000||&f" from player
  459. add 1000000 to player's balance
  460. send ""
  461. send "&aFoi depositado 1 milhão em sua conta..."
  462. send ""
  463.  
  464. on right click:
  465. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f10,000,000||&f":
  466. remove 1 paper named "&eCheque" with lore "||&7Valor: &f10,000,000||&f" from player
  467. add 10000000 to player's balance
  468. send ""
  469. send "&aFoi depositado 10 milhões em sua conta..."
  470. send ""
  471.  
  472. on right click:
  473. if tool of player is paper named "&eCheque" with lore "||&7Valor: &f20,000,000||&f":
  474. remove 1 paper named "&eCheque" with lore "||&7Valor: &f20,000,000||&f" from player
  475. add 20000000 to player's balance
  476. send ""
  477. send "&aFoi depositado 20 milhões em sua conta..."
  478. send ""
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489. command /acessaromenudesacarrnobancario:
  490. trigger:
  491. set {_setiverconta} to pegarConta(player)
  492. if "%{_setiverconta}%" = "true":
  493. play "NOTE_PLING" to player at volume 0.5
  494. open chest with 4 row named "&8Banqueiro - Sacar" to player
  495. wait 4 tick
  496. format slot 10 of player with paper named "&eSacar 1 mil" with lore "||&7Você pode sacar 1 mil de||&7sua conta bancaria.||&f" to run [make player execute command "sacar1milnobancodocaraconfirmacao"]
  497. format slot 12 of player with paper named "&eSacar 5 mil" with lore "||&7Você pode sacar 5 mil de||&7sua conta bancaria.||&f" to run [make player execute command "sacar5milnobancodocaraconfirmacao"]
  498. format slot 14 of player with paper named "&eSacar 10 mil" with lore "||&7Você pode sacar 10 mil de||&7sua conta bancaria.||&f" to run [make player execute command "sacar10milnobancodocaraconfirmacao"]
  499. format slot 16 of player with paper named "&eSacar 100 mil" with lore "||&7Você pode sacar 100 mil de||&7sua conta bancaria.||&f" to run [make player execute command "sacar100milnobancodocaraconfirmacao"]
  500. format slot 19 of player with paper named "&eSacar 500 mil" with lore "||&7Você pode sacar 500 mil de||&7sua conta bancaria.||&f" to run [make player execute command "sacar500milnobancodocaraconfirmacao"]
  501. format slot 21 of player with paper named "&eSacar 1 milhão" with lore "||&7Você pode sacar 1 milão de||&7sua conta bancaria.||&f" to run [make player execute command "sacar1milaonobancodocaraconfirmacao"]
  502. format slot 23 of player with paper named "&eSacar 10 milhões" with lore "||&7Você pode sacar 10 milhões de||&7sua conta bancaria.||&f" to run [make player execute command "sacar10milaonobancodocaraconfirmacao"]
  503. format slot 25 of player with paper named "&eSacar 20 milhões" with lore "||&7Você pode sacar 20 milhões de||&7sua conta bancaria.||&f" to run [make player execute command "sacar20milaonobancodocaraconfirmacao"]
  504. format slot 35 of player with arrow named "&eRetornar" with lore "||&7Clique para retornar ao painel central.||&f" to run [make player execute command "acessarobancopelomenunocomandosecretodalaguinha"]
  505. else:
  506. close player's inventory
  507. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  508.  
  509.  
  510. command /sacar1milnobancodocaraconfirmacao:
  511. trigger:
  512. set {_setiverconta} to pegarConta(player)
  513. if "%{_setiverconta}%" = "true":
  514. play "NOTE_PLING" to player at volume 0.5
  515. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  516. wait 2 tick
  517. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar1knacontadobanco"]
  518. format slot 13 of player with a paper named "&eSacar 1 mil" with lore "||&7Você pode sacar 1 mil de||&7sua conta bancaria.||&f" to be unstealable
  519. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  520. else:
  521. close player's inventory
  522. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  523.  
  524.  
  525. command /sacar1knacontadobanco:
  526. trigger:
  527. set {_setiverconta} to pegarConta(player)
  528. set {_saldojogadorver} to pegarSaldo(player)
  529. if "%{_setiverconta}%" = "true":
  530. if {_saldojogadorver} >= 1000:
  531. add 1000 to player's balance
  532. RemoveSaldo(player, 1000)
  533. send player title "&2Banqueiro" with subtitle "&fVocê sacou 1 mil de sua conta bancaria." for 2 seconds
  534. else:
  535. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  536. else:
  537. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  538.  
  539.  
  540.  
  541. command /sacar5milnobancodocaraconfirmacao:
  542. trigger:
  543. set {_setiverconta} to pegarConta(player)
  544. if "%{_setiverconta}%" = "true":
  545. play "NOTE_PLING" to player at volume 0.5
  546. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  547. wait 2 tick
  548. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar5knacontadobanco"]
  549. format slot 13 of player with a paper named "&eSacar 5 mil" with lore "||&7Você pode sacar 5 mil de||&7sua conta bancaria.||&f" to be unstealable
  550. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  551. else:
  552. close player's inventory
  553. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  554.  
  555.  
  556. command /sacar5knacontadobanco:
  557. trigger:
  558. set {_setiverconta} to pegarConta(player)
  559. set {_saldojogadorver} to pegarSaldo(player)
  560. if "%{_setiverconta}%" = "true":
  561. if {_saldojogadorver} >= 5000:
  562. add 5000 to player's balance
  563. RemoveSaldo(player, 5000)
  564. send player title "&2Banqueiro" with subtitle "&fVocê sacou 5 mil de sua conta bancaria." for 2 seconds
  565. else:
  566. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  567. else:
  568. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  569.  
  570. command /sacar10milnobancodocaraconfirmacao:
  571. trigger:
  572. set {_setiverconta} to pegarConta(player)
  573. if "%{_setiverconta}%" = "true":
  574. play "NOTE_PLING" to player at volume 0.5
  575. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  576. wait 2 tick
  577. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar10knacontadobanco"]
  578. format slot 13 of player with a paper named "&eSacar 10 mil" with lore "||&7Você pode sacar 10 mil de||&7sua conta bancaria.||&f" to be unstealable
  579. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  580. else:
  581. close player's inventory
  582. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  583.  
  584.  
  585. command /sacar10knacontadobanco:
  586. trigger:
  587. set {_setiverconta} to pegarConta(player)
  588. set {_saldojogadorver} to pegarSaldo(player)
  589. if "%{_setiverconta}%" = "true":
  590. if {_saldojogadorver} >= 10000:
  591. add 10000 to player's balance
  592. RemoveSaldo(player, 10000)
  593. send player title "&2Banqueiro" with subtitle "&fVocê sacou 10 mil de sua conta bancaria." for 2 seconds
  594. else:
  595. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  596. else:
  597. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  598.  
  599. command /sacar100milnobancodocaraconfirmacao:
  600. trigger:
  601. set {_setiverconta} to pegarConta(player)
  602. if "%{_setiverconta}%" = "true":
  603. play "NOTE_PLING" to player at volume 0.5
  604. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  605. wait 2 tick
  606. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar100knacontadobanco"]
  607. format slot 13 of player with a paper named "&eSacar 100 mil" with lore "||&7Você pode sacar 100 mil de||&7sua conta bancaria.||&f" to be unstealable
  608. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  609. else:
  610. close player's inventory
  611. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  612.  
  613.  
  614. command /sacar100knacontadobanco:
  615. trigger:
  616. set {_setiverconta} to pegarConta(player)
  617. set {_saldojogadorver} to pegarSaldo(player)
  618. if "%{_setiverconta}%" = "true":
  619. if {_saldojogadorver} >= 100000:
  620. add 100000 to player's balance
  621. RemoveSaldo(player, 100000)
  622. send player title "&2Banqueiro" with subtitle "&fVocê sacou 100 mil de sua conta bancaria." for 2 seconds
  623. else:
  624. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  625. else:
  626. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  627.  
  628. command /sacar500milnobancodocaraconfirmacao:
  629. trigger:
  630. set {_setiverconta} to pegarConta(player)
  631. if "%{_setiverconta}%" = "true":
  632. play "NOTE_PLING" to player at volume 0.5
  633. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  634. wait 2 tick
  635. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar500knacontadobanco"]
  636. format slot 13 of player with a paper named "&eSacar 500 mil" with lore "||&7Você pode sacar 500 mil de||&7sua conta bancaria.||&f" to be unstealable
  637. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  638. else:
  639. close player's inventory
  640. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  641.  
  642.  
  643. command /sacar500knacontadobanco:
  644. trigger:
  645. set {_setiverconta} to pegarConta(player)
  646. set {_saldojogadorver} to pegarSaldo(player)
  647. if "%{_setiverconta}%" = "true":
  648. if {_saldojogadorver} >= 500000:
  649. add 500000 to player's balance
  650. RemoveSaldo(player, 500000)
  651. send player title "&2Banqueiro" with subtitle "&fVocê sacou 500 mil de sua conta bancaria." for 2 seconds
  652. else:
  653. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  654. else:
  655. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  656.  
  657.  
  658. command /sacar1milaonobancodocaraconfirmacao:
  659. trigger:
  660. set {_setiverconta} to pegarConta(player)
  661. if "%{_setiverconta}%" = "true":
  662. play "NOTE_PLING" to player at volume 0.5
  663. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  664. wait 2 tick
  665. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar1mnacontadobanco"]
  666. format slot 13 of player with a paper named "&eSacar 1 milhão" with lore "||&7Você pode sacar 1 milhão de||&7sua conta bancaria.||&f" to be unstealable
  667. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  668. else:
  669. close player's inventory
  670. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  671.  
  672.  
  673. command /sacar1mnacontadobanco:
  674. trigger:
  675. set {_setiverconta} to pegarConta(player)
  676. set {_saldojogadorver} to pegarSaldo(player)
  677. if "%{_setiverconta}%" = "true":
  678. if {_saldojogadorver} >= 1000000:
  679. add 1000000 to player's balance
  680. RemoveSaldo(player, 1000000)
  681. send player title "&2Banqueiro" with subtitle "&fVocê sacou 1 milhão de sua conta bancaria." for 2 seconds
  682. else:
  683. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  684. else:
  685. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  686.  
  687.  
  688.  
  689. command /sacar10milaonobancodocaraconfirmacao:
  690. trigger:
  691. set {_setiverconta} to pegarConta(player)
  692. if "%{_setiverconta}%" = "true":
  693. play "NOTE_PLING" to player at volume 0.5
  694. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  695. wait 2 tick
  696. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar10mnacontadobanco"]
  697. format slot 13 of player with a paper named "&eSacar 10 milhões" with lore "||&7Você pode sacar 10 milhões de||&7sua conta bancaria.||&f" to be unstealable
  698. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  699. else:
  700. close player's inventory
  701. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  702.  
  703.  
  704. command /sacar10mnacontadobanco:
  705. trigger:
  706. set {_setiverconta} to pegarConta(player)
  707. set {_saldojogadorver} to pegarSaldo(player)
  708. if "%{_setiverconta}%" = "true":
  709. if {_saldojogadorver} >= 10000000:
  710. add 10000000 to player's balance
  711. RemoveSaldo(player, 10000000)
  712. send player title "&2Banqueiro" with subtitle "&fVocê sacou 10 milhões de sua conta bancaria." for 2 seconds
  713. else:
  714. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  715. else:
  716. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  717.  
  718.  
  719.  
  720. command /sacar20milaonobancodocaraconfirmacao:
  721. trigger:
  722. set {_setiverconta} to pegarConta(player)
  723. if "%{_setiverconta}%" = "true":
  724. play "NOTE_PLING" to player at volume 0.5
  725. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  726. wait 2 tick
  727. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o saque.||&7(Clique aqui).||&f" to close then run [make player execute command "sacar20mnacontadobanco"]
  728. format slot 13 of player with a paper named "&eSacar 20 milhões" with lore "||&7Você pode sacar 20 milhões de||&7sua conta bancaria.||&f" to be unstealable
  729. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o saque||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  730. else:
  731. close player's inventory
  732. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  733.  
  734.  
  735. command /sacar20mnacontadobanco:
  736. trigger:
  737. set {_setiverconta} to pegarConta(player)
  738. set {_saldojogadorver} to pegarSaldo(player)
  739. if "%{_setiverconta}%" = "true":
  740. if {_saldojogadorver} >= 20000000:
  741. add 20000000 to player's balance
  742. RemoveSaldo(player, 20000000)
  743. send player title "&2Banqueiro" with subtitle "&fVocê sacou 20 milhões de sua conta bancaria." for 2 seconds
  744. else:
  745. send player title "&2Banqueiro" with subtitle "&fSeu saldo bancario é insuficiente..." for 2 seconds
  746. else:
  747. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  748.  
  749.  
  750.  
  751. command /depositar1milnobancodocaraconfirmacao:
  752. trigger:
  753. set {_setiverconta} to pegarConta(player)
  754. if "%{_setiverconta}%" = "true":
  755. play "NOTE_PLING" to player at volume 0.5
  756. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  757. wait 2 tick
  758. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar1knacontadobanco"]
  759. format slot 13 of player with a paper named "&eDepositar 1 mil" with lore "||&7Você pode depositar 1 mil em||&7sua conta bancaria.||&f" to be unstealable
  760. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  761. else:
  762. close player's inventory
  763. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  764.  
  765.  
  766. command /depositar1knacontadobanco:
  767. trigger:
  768. set {_setiverconta} to pegarConta(player)
  769. if "%{_setiverconta}%" = "true":
  770. if player's balance is more or equal to 1000:
  771. remove 1000 from player's balance
  772. AddSaldo(player, 1000)
  773. send player title "&2Banqueiro" with subtitle "&fVocê depositou 1 mil em sua conta bancaria." for 2 seconds
  774. else:
  775. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  776. else:
  777. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  778.  
  779.  
  780. command /depositar5milnobancodocaraconfirmacao:
  781. trigger:
  782. set {_setiverconta} to pegarConta(player)
  783. if "%{_setiverconta}%" = "true":
  784. play "NOTE_PLING" to player at volume 0.5
  785. open chest with 3 row named "&8Bancario - Confirmação" to player
  786. wait 2 tick
  787. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar5knacontadobanco"]
  788. format slot 13 of player with a paper named "&eDepositar 5 mil" with lore "||&7Você pode depositar 5 mil em||&7sua conta bancaria.||&f" to be unstealable
  789. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  790. else:
  791. close player's inventory
  792. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  793.  
  794.  
  795. command /depositar5knacontadobanco:
  796. trigger:
  797. set {_setiverconta} to pegarConta(player)
  798. if "%{_setiverconta}%" = "true":
  799. if player's balance is more or equal to 5000:
  800. remove 5000 from player's balance
  801. AddSaldo(player, 5000)
  802. send player title "&2Banqueiro" with subtitle "&fVocê depositou 5 mil em sua conta bancaria." for 2 seconds
  803. else:
  804. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  805. else:
  806. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  807.  
  808.  
  809. command /depositar10milnobancodocaraconfirmacao:
  810. trigger:
  811. set {_setiverconta} to pegarConta(player)
  812. if "%{_setiverconta}%" = "true":
  813. play "NOTE_PLING" to player at volume 0.5
  814. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  815. wait 2 tick
  816. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar10knacontadobanco"]
  817. format slot 13 of player with a paper named "&eDepositar 10 mil" with lore "||&7Você pode depositar 10 mil em||&7sua conta bancaria.||&f" to be unstealable
  818. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  819. else:
  820. close player's inventory
  821. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  822.  
  823.  
  824. command /depositar10knacontadobanco:
  825. trigger:
  826. set {_setiverconta} to pegarConta(player)
  827. if "%{_setiverconta}%" = "true":
  828. if player's balance is more or equal to 10000:
  829. remove 10000 from player's balance
  830. AddSaldo(player, 10000)
  831. send player title "&2Banqueiro" with subtitle "&fVocê depositou 10 mil em sua conta bancaria." for 2 seconds
  832. else:
  833. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  834. else:
  835. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  836.  
  837.  
  838. command /depositar100milnobancodocaraconfirmacao:
  839. trigger:
  840. set {_setiverconta} to pegarConta(player)
  841. if "%{_setiverconta}%" = "true":
  842. play "NOTE_PLING" to player at volume 0.5
  843. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  844. wait 2 tick
  845. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar100knacontadobanco"]
  846. format slot 13 of player with a paper named "&eDepositar 100 mil" with lore "||&7Você pode depositar 100 mil em||&7sua conta bancaria.||&f" to be unstealable
  847. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  848. else:
  849. close player's inventory
  850. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  851.  
  852.  
  853. command /depositar100knacontadobanco:
  854. trigger:
  855. set {_setiverconta} to pegarConta(player)
  856. if "%{_setiverconta}%" = "true":
  857. if player's balance is more or equal to 100000:
  858. remove 100000 from player's balance
  859. AddSaldo(player, 100000)
  860. send player title "&2Banqueiro" with subtitle "&fVocê depositou 100 mil em sua conta bancaria." for 2 seconds
  861. else:
  862. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  863. else:
  864. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  865.  
  866.  
  867.  
  868. command /depositar500milnobancodocaraconfirmacao:
  869. trigger:
  870. set {_setiverconta} to pegarConta(player)
  871. if "%{_setiverconta}%" = "true":
  872. play "NOTE_PLING" to player at volume 0.5
  873. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  874. wait 2 tick
  875. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar500knacontadobanco"]
  876. format slot 13 of player with a paper named "&eDepositar 500 mil" with lore "||&7Você pode depositar 500 mil em||&7sua conta bancaria.||&f" to be unstealable
  877. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  878. else:
  879. close player's inventory
  880. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  881.  
  882.  
  883. command /depositar500knacontadobanco:
  884. trigger:
  885. set {_setiverconta} to pegarConta(player)
  886. if "%{_setiverconta}%" = "true":
  887. if player's balance is more or equal to 500000:
  888. remove 500000 from player's balance
  889. AddSaldo(player, 500000)
  890. send player title "&2Banqueiro" with subtitle "&fVocê depositou 500 mil em sua conta bancaria." for 2 seconds
  891. else:
  892. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  893. else:
  894. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  895.  
  896. command /depositar1milhaonobancodocaraconfirmacao:
  897. trigger:
  898. set {_setiverconta} to pegarConta(player)
  899. if "%{_setiverconta}%" = "true":
  900. play "NOTE_PLING" to player at volume 0.5
  901. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  902. wait 2 tick
  903. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar1milhaonacontadobanco"]
  904. format slot 13 of player with a paper named "&eDepositar 1 milhão" with lore "||&7Você pode depositar 1 milhão em||&7sua conta bancaria.||&f" to be unstealable
  905. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  906. else:
  907. close player's inventory
  908. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  909.  
  910.  
  911. command /depositar1milhaonacontadobanco:
  912. trigger:
  913. set {_setiverconta} to pegarConta(player)
  914. if "%{_setiverconta}%" = "true":
  915. if player's balance is more or equal to 1000000:
  916. remove 1000000 from player's balance
  917. AddSaldo(player, 1000000)
  918. send player title "&2Banqueiro" with subtitle "&fVocê depositou 1 milhão em sua conta bancaria." for 2 seconds
  919. else:
  920. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  921. else:
  922. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  923.  
  924.  
  925. command /depositar10milhaonobancodocaraconfirmacao:
  926. trigger:
  927. set {_setiverconta} to pegarConta(player)
  928. if "%{_setiverconta}%" = "true":
  929. play "NOTE_PLING" to player at volume 0.5
  930. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  931. wait 2 tick
  932. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar10milhaonacontadobanco"]
  933. format slot 13 of player with a paper named "&eDepositar 10 milhões" with lore "||&7Você pode depositar 10 milhões em||&7sua conta bancaria.||&f" to be unstealable
  934. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  935. else:
  936. close player's inventory
  937. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  938.  
  939.  
  940. command /depositar10milhaonacontadobanco:
  941. trigger:
  942. set {_setiverconta} to pegarConta(player)
  943. if "%{_setiverconta}%" = "true":
  944. if player's balance is more or equal to 10000000:
  945. remove 10000000 from player's balance
  946. AddSaldo(player, 10000000)
  947. send player title "&2Banqueiro" with subtitle "&fVocê depositou 10 milhões em sua conta bancaria." for 2 seconds
  948. else:
  949. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  950. else:
  951. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  952.  
  953. command /depositar20milhaonobancodocaraconfirmacao:
  954. trigger:
  955. set {_setiverconta} to pegarConta(player)
  956. if "%{_setiverconta}%" = "true":
  957. play "NOTE_PLING" to player at volume 0.5
  958. open chest with 3 row named "&8Banqueiro - Confirmação" to player
  959. wait 2 tick
  960. format slot 11 of player with light green wool named "&aConfirmar" with lore "||&7Se deseja confirmar o deposito.||&7(Clique aqui).||&f" to close then run [make player execute command "depositar20milhaonacontadobanco"]
  961. format slot 13 of player with a paper named "&eDepositar 20 milhões" with lore "||&7Você pode depositar 20 milhões em||&7sua conta bancaria.||&f" to be unstealable
  962. format slot 15 of player with red wool named "&cCancelar" with lore "||&7Se deseja cancelar o deposito||&7(Clique aqui)||" to close then run [make player execute command "cancelarcomprardoshop"]
  963. else:
  964. close player's inventory
  965. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
  966.  
  967.  
  968. command /depositar20milhaonacontadobanco:
  969. trigger:
  970. set {_setiverconta} to pegarConta(player)
  971. if "%{_setiverconta}%" = "true":
  972. if player's balance is more or equal to 20000000:
  973. remove 20000000 from player's balance
  974. AddSaldo(player, 20000000)
  975. send player title "&2Banqueiro" with subtitle "&fVocê depositou 20 milhões em sua conta bancaria." for 2 seconds
  976. else:
  977. send player title "&2Banqueiro" with subtitle "&fSeu saldo é insuficiente..." for 2 seconds
  978. else:
  979. send player title "&cVocê não possui" with subtitle "&cuma conta bancaria." for 2 seconds
Advertisement
Add Comment
Please, Sign In to add comment