Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. variables:
  2. {smartwatch::%player%::konto} = 0
  3. options:
  4. # --- możliwość zmiany ---
  5. tag: &8[&3SmartWatch&8]
  6. koszt: 2
  7. koszt.dol: 5
  8. # --- brak możliwość zmiany ---
  9. aliases:
  10. blackglass = 160:15
  11. on rightclick with clock:
  12. if {smartwatch::%player%::pinSet} is true:
  13. send "{@tag} &6Podaj kod PIN Wpisz na chat swój pin."
  14. set {smartwatch::%player%::pinChat} to true
  15. stop
  16. else:
  17. send "{@tag} &cUstaw swój kod pin! /swpin <kod>"
  18. stop
  19. on chat:
  20. if {smartwatch::%player%::pinChat} is true:
  21. if message is {smartwatch::%player%::pin}:
  22. send "{@tag} &aPIN jest poprawny!"
  23. set {smartwatch::%player%::pinOk} to true
  24. set {smartwatch::%player%::pinChat} to false
  25. execute player command "swopen"
  26. cancel event
  27. else:
  28. send "{@tag} &cZły PIN. Jeśli chcesz przestać próbować wpisz (idealnie jak jest tutaj): quit"
  29. cancel event
  30. if message is "quit":
  31. cancel event
  32. send "{@tag} &aWyszedłeś z trybu wpisywania hasła."
  33. set {smartwatch::%player%::pinChat} to false
  34. command /swpin [<text>]:
  35. trigger:
  36. if arg 1 is set:
  37. send "{@tag} &aTwój pin: &6%arg 1%"
  38. set {smartwatch::%player%::pin} to arg 1
  39. set {smartwatch::%player%::pinSet} to true
  40. command /swopen:
  41. trigger:
  42. if {smartwatch::%player%::pinOk} is true:
  43. play raw sound "random.pop" at player with pitch 1 volume 5
  44. set {smartwatch::%player%::pinOk} to false
  45. open chest with 3 rows named "&6SmartWatch - &9%now%" to player
  46. wait 1 tick
  47.  
  48. loop 9 times:
  49. format slot loop-number - 1 of player with 1 of blackglass named "&6" to close
  50. format slot 17 + loop-number - 1 of player with 1 of blackglass named "&6" to close
  51.  
  52. format slot 9 of player with 1 of blackglass named "&6" to close
  53. format slot 18 of player with 1 of blackglass named "&6" to close
  54.  
  55. format slot 17 of player with 1 of blackglass named "&6" to close
  56. format slot 26 of player with 1 of blackglass named "&6" to close
  57.  
  58.  
  59. 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%"
  60. 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%"
  61. 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
  62.  
  63. command /swsms [<player>]:
  64. trigger:
  65. if arg 1 is set:
  66. send "{@tag} &cWzór komendy: /swsend <gracz> <wiadomość>" to arg 1
  67. send json "{@tag} &eKliknij tutaj, aby wysłać SMS" suggest "/swsend " to arg 1
  68. set {smartwatch::%player-arg%::cmdUse} to true
  69. command /swaddmoney [<player>]:
  70. trigger:
  71. if arg 1 is set:
  72. if player-arg's balance is greater than {@koszt.dol}-1:
  73. send "{@tag} &aZakupiłeś doładowanie 6zł za {@koszt.dol}" to player-arg
  74. add 6 to {smartwatch::%player-arg%::konto}
  75. remove {@koszt.dol} from player-arg's balance
  76. else:
  77. send "{@tag} &cNie stać Cię." to player-arg
  78. command /swsend [<player>] [<text>]:
  79. trigger:
  80. if {smartwatch::%player-arg%::cmdUse} is true:
  81. if arg 1 is set:
  82. if arg 2 is set:
  83. if {smartwatch::%player-arg%::konto} is greater than {@koszt}-1:
  84. set {smartwatch::%player-arg%::cmdUse} to false
  85. add -{@koszt} to {smartwatch::%player-arg%::konto}
  86. play raw sound "note.bass" at player with pitch 1 volume 5
  87. 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
  88. wait 5 tick
  89. 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
  90. play raw sound "note.bass" at player with pitch 1 volume 5
  91. wait 5 tick
  92. 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
  93. play raw sound "note.bass" at player with pitch 1 volume 5
  94. wait 5 tick
  95. 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
  96. play raw sound "note.bass" at player with pitch 1 volume 5
  97. wait 5 tick
  98. 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
  99. play raw sound "note.bass" at player with pitch 1 volume 5
  100. wait 5 tick
  101. 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
  102. play raw sound "note.bass" at player with pitch 1 volume 5
  103. wait 5 tick
  104. 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
  105. play raw sound "note.bass" at player with pitch 1 volume 5
  106. wait 5 tick
  107. 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
  108. play raw sound "note.bass" at player with pitch 1 volume 5
  109. wait 5 tick
  110. 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
  111. play raw sound "note.bass" at player with pitch 2 volume 5
  112. wait 5 tick
  113. send action bar from "&e&LWYSYŁANIE &6 &d[ &a|||||||||&a|&c|&c|&c|&c|&c|&c| &d] &6 &e&LWYSYŁANIE" to player
  114. play raw sound "note.bass" at player with pitch 2 volume 5
  115. wait 5 tick
  116. send action bar from "&4&LWYSYŁANIE &6 &d[ &a||||||||||&a|&c|&c|&c|&c|&c| &d] &4 &4&LWYSYŁANIE" to player
  117. play raw sound "note.bass" at player with pitch 2 volume 5
  118. wait 5 tick
  119. send action bar from "&6&LWYSYŁANIE &6 &d[ &a|||||||||||&a|&c|&c|&c|&c| &d] &6 &6&LWYSYŁANIE" to player
  120. play raw sound "note.bass" at player with pitch 2 volume 5
  121. wait 5 tick
  122. send action bar from "&b&LWYSYŁANIE &6 &d[ &a||||||||||||&a|&c|&c|&c| &d] &b &b&LWYSYŁANIE" to player
  123. play raw sound "note.bass" at player with pitch 2 volume 5
  124. wait 5 tick
  125. send action bar from "&a&LWYSYŁANIE &6 &d[ &a|||||||||||||&a|&c|&c| &d] &a &a&LWYSYŁANIE" to player
  126. play raw sound "note.bass" at player with pitch 2 volume 5
  127. wait 5 tick
  128. send action bar from "&3&LWYSYŁANIE &6 &d[ &a||||||||||||||&a|&c| &d] &3 &3&LWYSYŁANIE" to player
  129. play raw sound "note.bass" at player with pitch 2 volume 5
  130. wait 5 tick
  131. send action bar from "&2&LWYSYŁANIE &6 &d[ &a|||||||||||||||| &d] &2 &2&LWYSYŁANIE" to player
  132. play raw sound "note.bass" at player with pitch 2 volume 5
  133. wait 5 tick
  134. play raw sound "random.levelup" at player with pitch 1 volume 5
  135. send "{@tag} "
  136. send "{@tag} "
  137. send "{@tag} &6Wysłano SMS do &o%player-arg%&r&6 !"
  138. send "{@tag} "
  139. send "{@tag} "
  140. wait 1 seconds
  141. send "{@tag} "
  142. send "{@tag} "
  143. send "{@tag} &6Dostałeś SMSa!" to player-arg
  144. send "{@tag} &6Nadawca: &f%player%" to player-arg
  145. send "{@tag} &6Treść: &f%arg 2%" to player-arg
  146. send "{@tag} "
  147. send "{@tag} "
  148. play raw sound "random.levelup" at player with pitch 2 volume 5
  149. wait 5 ticks
  150. play raw sound "random.levelup" at player with pitch 2 volume 5
  151. wait 5 ticks
  152. play raw sound "random.levelup" at player with pitch 1 volume 5
  153. wait 5 ticks
  154. play raw sound "random.levelup" at player with pitch 2 volume 5
  155. else:
  156. send "{@tag} &cBrak środków na koncie."
  157. else:
  158. send "{@tag} &cTakiego gracza nie ma na serwerze."
  159. on quit:
  160. set {smartwatch::%player%::cmdUse} to false
  161. set {smartwatch::%player%::pinChat} to false
  162. on join:
  163. set {smartwatch::%player%::cmdUse} to false
  164. set {smartwatch::%player%::pinChat} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement