Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {konto.zalozone.%player%} = false
- [bankomat.otwarty.%player%} = false
- on rightclick on sign:
- if line 1 is "&3[Karta]":
- if line 2 is "Wyrob":
- if line 3 is "15$":
- if {konto.zalozone.%player%} is true:
- add 1 nether portal of unbreaking 50 named "&f&kaa&6&lKarta Kredytowa&f&kaa" to player's inventory
- send "&f[&2Bank&f]&6&lKarta Pomyslnie wyrobiona"
- else:
- send "&f[&2Bank&f]&6&lNajpierw musisz zalozyc konto"
- if line 1 is "&3[Konto]":
- if line 2 is "Zaloz":
- if line 3 is "0$":
- set {konto.zalozone.%player%} to true
- send "&f[&2Bank&f]&6&lKonto pomyslnie zalozone"
- if line 1 is "&3[Bankomat]":
- set {bankomat.otwarty.%player%} to true
- send "&k----------------------------------------------------"
- send "&2&l Bankomat "
- send "&6&lAby sprawdzic stan konta wpisz stan "
- send "&6&lAby wyplacic pieniadze wpisz wyplac ilosc "
- send "&6&lAby wplacic pieniadze wpisz wplac ilosc "
- send "&6&lAby odejsc od bankomatu wpisz odejdz "
- send "&6&lAby zamienic monety wpisz zamien "
- send "&k----------------------------------------------------"
- command /bank [<text>] [<integer>]:
- trigger:
- if {bankomat.otwarty.%player%} is true:
- if arg 1 is "stan":
- execute console command "/money"
- if arg 1 is "wyplac":
- execute console command "/eco take %arg-integer%"
- send "&f[&2Bank&f]&6&lWyplaciles %arg-integer%$"
- give arg-integer gold nugget of unbreaking 51 named "&f&kaa&6&lJeden dolar&f&kaa"
- if arg 1 is "wplac":
- remove arg-integer gold nugget of unbreaking 51 from player
- console command "/eco give %arg-integer%"
- send "&f[&2Bank&f]&6&lWplaciles %arg-integer%$"
- if arg 1 is "odejdz":
- set {bankomat.otwarty.%player%} to false
- send "&f[&2Bank&f]&6&lOdeszΕeΕ od bankomatu"
- if arg 1 is "zamien dolary":
- remove 10 glod nugget of unbreaking 51 from player
- give paper of unbreaking 52 named "&f&kaa&6&lDziesiec Dolarow&f&kaa"
- send "&f[&2Bank&f]&6&lZamieniles 10 dolarow w monetach na papierkowe 10 dolarow"
- if arg 1 is "zamien papierkowe":
- remove paper of unbreaking 52 named "&f&kaa&6&lDziesiec Dolarow&f&kaa"
- give gold nuggets of 10 named "&f&kaa&6&lJeden dolar&f&kaa"
- send "&f[&2Bank&f]&6&lZamieniles papierkowe 10 dolarow na 10 w monetach"
- on walking on stone bricks:
- if {bankomat.otwarty.%player%} is true:
- cancel event
- send "&f[&2Bank&f]&6&lAby moc sie poruszac odejdz od bankomatu jesli nadal nie mozesz wpisz /zbugowany"
- command /zbugowany:
- trigger:
- teleport the player to spawn
- send "&6&lZostales odbugowany!"
Add Comment
Please, Sign In to add comment