ApisEK12

chat

Oct 3rd, 2014
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. #2.2#
  2. on script load:
  3. set {_version} to content of file "plugins/Skript/scripts/chat.sk"
  4. send "&6[&ckod&6]&7 Sprawdzam wersje..." to console
  5. set {_v} to index of "##" in {_version}
  6. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  7. set {_v3} to index of "##" in {_v2}
  8. set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  9. set {_version} to result of connect to "https://raw.githubusercontent.com/ApisEK12/skript/master/chat.sk"
  10. set {_v} to index of "##" in {_version}
  11. set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
  12. set {_v3} to index of "##" in {_v2}
  13. set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
  14. {version} is not {version.new}:
  15. send "&6[&ckod&6]&7 Znaleziono aktualizacje! Instalowanie..." to console
  16. download "https://raw.githubusercontent.com/ApisEK12/skript/master/chat.sk" to "plugins/Skript/scripts/chat.sk"
  17. else:
  18. send "&6[&ckod&6]&7 Nie znaleziono nowych aktualizacji." to console
  19. set {characters::1} to "a"
  20. set {bulion::bulion} to "p"
  21. set {characters::2} to "b"
  22. set {characters::3} to "c"
  23. set {characters::4} to "d"
  24. set {bulion::test} to "g"
  25. set {characters::5} to "e"
  26. set {characters::6} to "f"
  27. set {characters::7} to "g"
  28. set {characters::8} to "h"
  29. set {characters::9} to "i"
  30. set {characters::10} to "j"
  31. set {characters::11} to "k"
  32. set {characters::12} to "l"
  33. set {characters::13} to "m"
  34. set {characters::14} to "n"
  35. set {characters::15} to "o"
  36. set {characters::16} to "p"
  37. set {characters::17} to "q"
  38. set {characters::18} to "r"
  39. set {characters::19} to "s"
  40. set {characters::20} to "t"
  41. set {characters::21} to "v"
  42. set {characters::22} to "u"
  43. set {characters::23} to "w"
  44. set {characters::24} to "x"
  45. set {characters::25} to "y"
  46. set {characters::26} to "z"
  47. set {characters::27} to "A"
  48. set {characters::28} to "B"
  49. set {characters::29} to "C"
  50. set {characters::30} to "D"
  51. set {characters::31} to "E"
  52. set {characters::32} to "F"
  53. set {characters::33} to "G"
  54. set {characters::34} to "H"
  55. set {characters::35} to "I"
  56. set {characters::36} to "J"
  57. set {characters::37} to "K"
  58. set {characters::38} to "L"
  59. set {characters::39} to "M"
  60. set {characters::40} to "N"
  61. set {characters::41} to "O"
  62. set {characters::42} to "P"
  63. set {characters::43} to "Q"
  64. set {characters::44} to "R"
  65. set {characters::45} to "S"
  66. set {characters::46} to "T"
  67. set {characters::47} to "V"
  68. set {characters::48} to "U"
  69. set {characters::49} to "W"
  70. set {characters::50} to "X"
  71. set {characters::51} to "Y"
  72. set {characters::52} to "Z"
  73. set {characters::53} to "1"
  74. set {characters::54} to "2"
  75. set {characters::55} to "3"
  76. set {characters::56} to "4"
  77. set {characters::57} to "5"
  78. set {characters::58} to "6"
  79. set {characters::59} to "7"
  80. set {characters::60} to "8"
  81. set {characters::61} to "9"
  82. set {characters::62} to "0"
  83. set {dlugosc::ciagu} to 8
  84. set {prezent::2} to diamond
  85. set {prezent::3} to emerald
  86. set {prezent::4} to tnt
  87. set {prezent::5} to iron ingot
  88. set {prezent::ilosc::2} to 1
  89. set {prezent::ilosc::3} to 2
  90. set {prezent::ilosc::4} to 3
  91. set {prezent::ilosc::5} to 4
  92. every 10 minutes:
  93. broadcast "&3Za 10 sekund rozpocznie sie konkurs!"
  94. wait 1 second
  95. broadcast "&3Za 9"
  96. wait 1 second
  97. broadcast "&3Za 8"
  98. wait 1 second
  99. broadcast "&3Za 7"
  100. wait 1 second
  101. broadcast "&3Za 6"
  102. wait 1 second
  103. broadcast "&3Za 5"
  104. wait 1 second
  105. broadcast "&3Za 4"
  106. wait 1 second
  107. broadcast "&3Za 3"
  108. wait 1 second
  109. broadcast "&3Za 2"
  110. wait 1 second
  111. broadcast "&3Za 1"
  112. set {ciag::caly} to ""
  113. loop 8 times:
  114. set {ciag::caly} to "%{ciag::caly}%%{characters::%random integer from 1 to 62%}%"
  115. set {konkurs::czas} to true
  116. loop all players:
  117. execute console command "playsound random.levelup %loop-player%"
  118. broadcast "&3Kod to &6&l%{ciag::caly}%&3. Napisz &6&l/kod %{ciag::caly}% &3aby wygrac konkurs!"
  119. wait 20 seconds
  120. if {konkurs::czas} is true:
  121. set {konkurs::czas} to false
  122. broadcast "&c&lKonkurs sie skonczyl!"
  123. loop all players:
  124. execute console command "playsound mob.irongolem.death %loop-player%"
  125. command /kod [<text>]:
  126. trigger:
  127. if {konkurs::czas} is true:
  128. if arg 1 is "%{ciag::caly}%":
  129. set {konkurs::czas} to false
  130. loop all players:
  131. execute console command "playsound mob.wither.spawn %loop-player%"
  132. set {_ilosc} to {prezent::ilosc::%random integer from 1 to 5%}
  133. set {_typ} to {prezent::%random integer from 1 to 5%}
  134. give {_ilosc} of {_typ} to player's inventory
  135. if {_typ} is emerald:
  136. broadcast "&a&l%player% &3wygral konkurs i dostal &6%{_ilosc}% &2szmaragdow&3!"
  137. if {_typ} is diamond:
  138. broadcast "&a&l%player% &3wygral konkurs i dostal &6%{_ilosc}% &bdiamontow&3!"
  139. if {_typ} is iron ingot:
  140. broadcast "&a&l%player% &3wygral konkurs i dostal &6%{_ilosc}% &7sztabek zelaza&3!"
  141. if {_typ} is tnt:
  142. broadcast "&a&l%player% &3wygral konkurs i dostal &6%{_ilosc}% &cTNT&3!"
  143. else:
  144. send "&cZly kod!"
  145. else:
  146. send "&cKonkurs sie jeszcze nie rozpoczol!"
  147. command /itemy:
  148. trigger:
  149. send "&6⭐ &764x &bDiamenty"
  150. send "&6⭐ &764x &2Slimeballi"
  151. send "&6⭐ &75x &6Koxów"
  152. send "&6⭐ &764x &cTNT"
  153. send "&6⭐ &716x &3enderpereł"
  154. send "&6⭐ &732x &6bookshelfów"
  155. send "&6⭐ &764x &4Rotten Fleshy"
Advertisement
Add Comment
Please, Sign In to add comment