Guest User

srBank

a guest
Dec 9th, 2014
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.30 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # #
  3. # SKRYPT BY SEBXTER #
  4. # #
  5. # # # # # # # # # # # # # # # #
  6.  
  7. options:
  8. tag: &1[&9srBank&1]
  9.  
  10. variables:
  11. {bank.%player%} = 0
  12.  
  13. command /bank:
  14. trigger:
  15. wait 2 tick
  16. open chest with 2 rows named "Bankomat" to player
  17. wait 2 tick
  18. format slot 0 of player with 1 of gold ingot named "&e1zl" with lore "&6Kliknij aby wplacic 1zl" to run "1 %player%"
  19. format slot 1 of player with 1 of gold ingot named "&e10zl" with lore "&6Kliknij aby wplacic 10zl" to run "10 %player%"
  20. format slot 2 of player with 1 of gold ingot named "&e100zl" with lore "&6Kliknij aby wplacic 100zl" to run "100 %player%"
  21. format slot 3 of player with 1 of gold ingot named "&e500zl" with lore "&6Kliknij aby wplacic 500zl" to run "500 %player%"
  22. format slot 4 of player with 1 of black stained glass named " " to run "2 %player%"
  23. format slot 5 of player with 1 of black stained glass named " " to run "2 %player%"
  24. format slot 6 of player with 1 of purple dye named "&aStan towjego konta bankowego to: %{bank.%player%}%" to run "2 %player%"
  25. format slot 7 of player with 1 of black stained glass named " " to run "2 %player%"
  26. format slot 8 of player with 1 of red wool named "&4Wyjscie" to close
  27. format slot 9 of player with 1 of iron ingot named "&a1zl" with lore "&2Kliknij aby wyplacic 1zl" to run "1a %player%"
  28. format slot 10 of player with 1 of iron ingot named "&a10zl" with lore "&2Kliknij aby wyplacic 10zl" to run "10a %player%"
  29. format slot 11 of player with 1 of iron ingot named "&a100zl" with lore "&2Kliknij aby wyplacic 100zl" to run "100a %player%"
  30. format slot 12 of player with 1 of iron ingot named "&a500zl" with lore "&2Kliknij aby wyplacic 500zl" to run "500a %player%"
  31. format slot 13 of player with 1 of black stained glass named " " to run "2 %player%"
  32. format slot 14 of player with 1 of black stained glass named " " to run "2 %player%"
  33. format slot 15 of player with 1 of magenta dye named "&bStan towjego portfela to: %player's balance% " to run "2 %player%"
  34. format slot 16 of player with 1 of black stained glass named " " to run "2 %player%"
  35. format slot 17 of player with 1 of red wool named "&4Wyjscie" to close
  36.  
  37. command /1 [<player>]:
  38. executable by: console
  39. trigger:
  40. if player-arg's money is greater or equal to 1:
  41. remove 1 from player-arg's balance
  42. wait 1 tick
  43. add 1 to {bank.%player-arg%}
  44. play raw sound "note.pling" at player-arg with pitch 1 volume 5
  45. wait 1 tick
  46. close player-arg's inventory
  47. execute player-arg command "bank"
  48. else:
  49. send "{@tag} &cNie masz tyle pieniedzy" to player-arg
  50. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  51. wait 1 tick
  52. close player-arg's inventory
  53. execute player-arg command "bank"
  54.  
  55. command /10 [<player>]:
  56. executable by: console
  57. trigger:
  58. if player-arg's money is greater or equal to 10:
  59. remove 10 from player-arg's balance
  60. wait 1 tick
  61. add 10 to {bank.%player-arg%}
  62. play raw sound "note.pling" at player-arg with pitch 1 volume 5
  63. wait 1 tick
  64. close player-arg's inventory
  65. execute player-arg command "bank"
  66. else:
  67. send "{@tag} &cNie masz tyle pieniedzy" to player-arg
  68. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  69. wait 1 tick
  70. close player-arg's inventory
  71. execute player-arg command "bank"
  72.  
  73. command /100 [<player>]:
  74. executable by: console
  75. trigger:
  76. if player-arg's money is greater or equal to 100:
  77. remove 100 from player-arg's balance
  78. wait 1 tick
  79. add 100 to {bank.%player-arg%}
  80. play raw sound "note.pling" at player-arg with pitch 1 volume 5
  81. wait 1 tick
  82. close player-arg's inventory
  83. execute player-arg command "bank"
  84. else:
  85. send "{@tag} &cNie masz tyle pieniedzy" to player-arg
  86. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  87. wait 1 tick
  88. close player-arg's inventory
  89. execute player-arg command "bank"
  90.  
  91. command /500 [<player>]:
  92. executable by: console
  93. trigger:
  94. if player-arg's money is greater or equal to 500:
  95. remove 500 from player-arg's balance
  96. wait 1 tick
  97. add 500 to {bank.%player-arg%}
  98. play raw sound "note.pling" at player-arg with pitch 1 volume 5
  99. wait 1 tick
  100. close player-arg's inventory
  101. execute player-arg command "bank"
  102. else:
  103. send "{@tag} &cNie masz tyle pieniedzy" to player-arg
  104. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  105. wait 1 tick
  106. close player-arg's inventory
  107. execute player-arg command "bank"
  108.  
  109. command /1a [<player>]:
  110. executable by: console
  111. trigger:
  112. if {bank.%player-arg%} is greater than or equal to 1:
  113. remove 1 from {bank.%player-arg%}
  114. wait 1 tick
  115. add 1 to player-arg's balance
  116. play raw sound "note.snare" at player-arg with pitch 1 volume 5
  117. wait 1 tick
  118. close player-arg's inventory
  119. execute player-arg command "bank"
  120. else:
  121. send "{@tag} &cNie masz tyle pieniedzy w banku" to player-arg
  122. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  123. wait 1 tick
  124. close player-arg's inventory
  125. execute player-arg command "bank"
  126.  
  127. command /10a [<player>]:
  128. executable by: console
  129. trigger:
  130. if {bank.%player-arg%} is greater than or equal to 10:
  131. remove 10 from {bank.%player-arg%}
  132. wait 1 tick
  133. add 10 to player-arg's balance
  134. play raw sound "note.snare" at player-arg with pitch 1 volume 5
  135. wait 1 tick
  136. close player-arg's inventory
  137. execute player-arg command "bank"
  138. else:
  139. send "{@tag} &cNie masz tyle pieniedzy w banku" to player-arg
  140. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  141. wait 1 tick
  142. close player-arg's inventory
  143. execute player-arg command "bank"
  144.  
  145. command /100a [<player>]:
  146. executable by: console
  147. trigger:
  148. if {bank.%player-arg%} is greater than or equal to 100:
  149. remove 100 from {bank.%player-arg%}
  150. wait 1 tick
  151. add 100 to player-arg's balance
  152. play raw sound "note.snare" at player-arg with pitch 1 volume 5
  153. wait 1 tick
  154. close player-arg's inventory
  155. execute player-arg command "bank"
  156. else:
  157. send "{@tag} &cNie masz tyle pieniedzy w banku" to player-arg
  158. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  159. wait 1 tick
  160. close player-arg's inventory
  161. execute player-arg command "bank"
  162.  
  163. command /500a [<player>]:
  164. executable by: console
  165. trigger:
  166. if {bank.%player-arg%} is greater than or equal to 500:
  167. remove 500 from {bank.%player-arg%}
  168. wait 1 tick
  169. add 500 to player-arg's balance
  170. play raw sound "note.snare" at player-arg with pitch 1 volume 5
  171. wait 1 tick
  172. close player-arg's inventory
  173. execute player-arg command "bank"
  174. else:
  175. send "{@tag} &cNie masz tyle pieniedzy w banku" to player-arg
  176. play raw sound "note.bass" at player-arg with pitch 1 volume 20
  177. wait 1 tick
  178. close player-arg's inventory
  179. execute player-arg command "bank"
  180.  
  181. command /2 [<player>]:
  182. executable by: console
  183. trigger:
  184. close player-arg's inventory
  185. execute player-arg command "bank"
  186.  
  187. on sign change:
  188. player has permission "srBank"
  189. line 1 is "bankomat"
  190. set line 1 to "{@tag}"
  191. set line 2 to "&fotworz"
  192. stop
  193.  
  194. on right click on sign:
  195. if line 1 of clicked block is "{@tag}":
  196. execute player command "bank"
  197. play raw sound "tile.piston.in" at player with pitch 1 volume 20
  198. stop
Advertisement
Add Comment
Please, Sign In to add comment