Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {smartwatch::%player%::konto} = 0
- options:
- # --- możliwość zmiany ---
- tag: &8[&3SmartWatch&8]
- koszt: 2
- koszt.dol: 5
- # --- brak możliwość zmiany ---
- aliases:
- blackglass = 160:15
- on rightclick with clock:
- if {smartwatch::%player%::pinSet} is true:
- send "{@tag} &6Podaj kod PIN Wpisz na chat swój pin."
- set {smartwatch::%player%::pinChat} to true
- stop
- else:
- send "{@tag} &cUstaw swój kod pin! /swpin <kod>"
- stop
- on chat:
- if {smartwatch::%player%::pinChat} is true:
- if message is {smartwatch::%player%::pin}:
- send "{@tag} &aPIN jest poprawny!"
- set {smartwatch::%player%::pinOk} to true
- set {smartwatch::%player%::pinChat} to false
- execute player command "swopen"
- cancel event
- else:
- send "{@tag} &cZły PIN. Jeśli chcesz przestać próbować wpisz (idealnie jak jest tutaj): quit"
- cancel event
- if message is "quit":
- cancel event
- send "{@tag} &aWyszedłeś z trybu wpisywania hasła."
- set {smartwatch::%player%::pinChat} to false
- command /swpin [<text>]:
- trigger:
- if arg 1 is set:
- send "{@tag} &aTwój pin: &6%arg 1%"
- set {smartwatch::%player%::pin} to arg 1
- set {smartwatch::%player%::pinSet} to true
- command /swopen:
- trigger:
- if {smartwatch::%player%::pinOk} is true:
- play raw sound "random.pop" at player with pitch 1 volume 5
- set {smartwatch::%player%::pinOk} to false
- open chest with 3 rows named "&6SmartWatch - &9%now%" to player
- wait 1 tick
- loop 9 times:
- format slot loop-number - 1 of player with 1 of blackglass named "&6" to close
- format slot 17 + loop-number - 1 of player with 1 of blackglass named "&6" to close
- format slot 9 of player with 1 of blackglass named "&6" to close
- format slot 18 of player with 1 of blackglass named "&6" to close
- format slot 17 of player with 1 of blackglass named "&6" to close
- format slot 26 of player with 1 of blackglass named "&6" to close
- format slot 12 of player with 1 of paper named "&6SMS" with lore "&7Kliknij, aby wysłać SMSa||&7Koszt wysłania SMS: &a{@koszt}zł" to run "swsms %player%"
- format slot 13 of player with 1 of paper named "&6Doładuj konto" with lore "&7Kliknij, aby doładować konto.||Koszt doładowania: &a{@koszt.dol}zł" to run "swaddmoney %player%"
- format slot 14 of player with 1 of paper named "&6Stan konta" with lore "&7Twój stan konta: &a%{smartwatch::%player%::konto}%zł" to close
- command /swsms [<player>]:
- trigger:
- if arg 1 is set:
- send "{@tag} &cWzór komendy: /swsend <gracz> <wiadomość>" to arg 1
- send json "{@tag} &eKliknij tutaj, aby wysłać SMS" suggest "/swsend " to arg 1
- set {smartwatch::%player-arg%::cmdUse} to true
- command /swaddmoney [<player>]:
- trigger:
- if arg 1 is set:
- if player-arg's balance is greater than {@koszt.dol}-1:
- send "{@tag} &aZakupiłeś doładowanie 6zł za {@koszt.dol}" to player-arg
- add 6 to {smartwatch::%player-arg%::konto}
- remove {@koszt.dol} from player-arg's balance
- else:
- send "{@tag} &cNie stać Cię." to player-arg
- command /swsend [<player>] [<text>]:
- trigger:
- if {smartwatch::%player-arg%::cmdUse} is true:
- if arg 1 is set:
- if arg 2 is set:
- if {smartwatch::%player-arg%::konto} is greater than {@koszt}-1:
- set {smartwatch::%player-arg%::cmdUse} to false
- add -{@koszt} to {smartwatch::%player-arg%::konto}
- play raw sound "note.bass" at player with pitch 1 volume 5
- send action bar from "&2&LWYSYŁANIE &6 &d[ &a|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &2 &2&LWYSYŁANIE" to player
- wait 5 tick
- send action bar from "&3&LWYSYŁANIE &6 &d[ &a|&a|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &3 &3&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&a&LWYSYŁANIE &6 &d[ &a||&a|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &a &a&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&b&LWYSYŁANIE &6 &d[ &a|||&a|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &b &b&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&6&LWYSYŁANIE &6 &d[ &a||||&a|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &6 &6&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&4&LWYSYŁANIE &6 &d[ &a|||||&a|&c|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &4 &4&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&e&LWYSYŁANIE &6 &d[ &a||||||&a|&c|&c|&c|&c|&c|&c|&c|&c|&c| &d] &6 &e&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&c&LWYSYŁANIE &6 &d[ &a|||||||&a|&c|&c|&c|&c|&c|&c|&c|&c| &d] &6 &c&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 1 volume 5
- wait 5 tick
- send action bar from "&c&LWYSYŁANIE &6 &d[ &a||||||||&a|&c|&c|&c|&c|&c|&c|&c| &d] &6 &c&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&e&LWYSYŁANIE &6 &d[ &a|||||||||&a|&c|&c|&c|&c|&c|&c| &d] &6 &e&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&4&LWYSYŁANIE &6 &d[ &a||||||||||&a|&c|&c|&c|&c|&c| &d] &4 &4&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&6&LWYSYŁANIE &6 &d[ &a|||||||||||&a|&c|&c|&c|&c| &d] &6 &6&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&b&LWYSYŁANIE &6 &d[ &a||||||||||||&a|&c|&c|&c| &d] &b &b&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&a&LWYSYŁANIE &6 &d[ &a|||||||||||||&a|&c|&c| &d] &a &a&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&3&LWYSYŁANIE &6 &d[ &a||||||||||||||&a|&c| &d] &3 &3&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- send action bar from "&2&LWYSYŁANIE &6 &d[ &a|||||||||||||||| &d] &2 &2&LWYSYŁANIE" to player
- play raw sound "note.bass" at player with pitch 2 volume 5
- wait 5 tick
- play raw sound "random.levelup" at player with pitch 1 volume 5
- send "{@tag} "
- send "{@tag} "
- send "{@tag} &6Wysłano SMS do &o%player-arg%&r&6 !"
- send "{@tag} "
- send "{@tag} "
- wait 1 seconds
- send "{@tag} "
- send "{@tag} "
- send "{@tag} &6Dostałeś SMSa!" to player-arg
- send "{@tag} &6Nadawca: &f%player%" to player-arg
- send "{@tag} &6Treść: &f%arg 2%" to player-arg
- send "{@tag} "
- send "{@tag} "
- play raw sound "random.levelup" at player with pitch 2 volume 5
- wait 5 ticks
- play raw sound "random.levelup" at player with pitch 2 volume 5
- wait 5 ticks
- play raw sound "random.levelup" at player with pitch 1 volume 5
- wait 5 ticks
- play raw sound "random.levelup" at player with pitch 2 volume 5
- else:
- send "{@tag} &cBrak środków na koncie."
- else:
- send "{@tag} &cTakiego gracza nie ma na serwerze."
- on quit:
- set {smartwatch::%player%::cmdUse} to false
- set {smartwatch::%player%::pinChat} to false
- on join:
- set {smartwatch::%player%::cmdUse} to false
- set {smartwatch::%player%::pinChat} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement