AxonGaming

Untitled

Aug 12th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. #
  2. # SDT - Skript Development Team
  3. # http://skript.pl
  4. #
  5. # "Chat+" v1.0
  6. # - - - - - - -
  7. # [PiratJaskiniowy, sebafudi, warpath124]
  8. #
  9.  
  10.  
  11. on chat:
  12.  
  13. # emotikony i obrazki
  14. player has permission "chatplus.emotki":
  15. replace all ":)" and "(:" in message with "☺"
  16. replace all "):" and ":(" in message with "☹"
  17. replace all "-_*" in message with "ツ"
  18.  
  19. replace all "<3" in message with "❤"
  20. replace all "*mail" in message with "✉"
  21. replace all "*music" in message with "♪♫♫♪"
  22. replace all "*sun" in message with "☼"
  23. replace all "*fm" in message with "♀"
  24. replace all "*m" in message with "♂"
  25. replace all "*3" in message with "ω"
  26. replace all "*airplane" in message with "✈"
  27. replace all "*phone" in message with "☎"
  28. replace all "*radioactive" in message with "☢"
  29. replace all "*bio" in message with "☣"
  30. replace all "*?" in message with "�"
  31. replace all "*scizz" in message with "✂"
  32. replace all "*arrow" in message with "➳"
  33. replace all "*8" in message with "☃"
  34. replace all "*flower" in message with "✿"
  35. replace all "*o" in message with "•"
  36. replace all "*hospital" and "*+" in message with "✚"
  37.  
  38. replace all "*v" in message with "✔"
  39. replace all "*x" in message with "✘"
  40. replace all "*[]" in message with "☐"
  41. replace all "*[v]" and "[v]" in message with "☑"
  42. replace all "*[x]" and "[x]" in message with "☒"
  43.  
  44. replace all "*c" in message with "©"
  45. replace all "*r" in message with "®"
  46.  
  47. replace all "->" and "*->" in message with "→"
  48. replace all "<-" and "*<-" in message with "←"
  49. replace all "\/" and "*\/" in message with "↓"
  50. replace all "/\" and "*/\" in message with "↑"
  51. replace all ">>" and "*>>" in message with "»"
  52. replace all "<<" and "*<<" in message with "«"
  53. replace all "*<" in message with "◄"
  54. replace all "*>" in message with "►"
  55.  
  56. replace all "[\" and "[/" in message with "░"
  57. replace all "[}" and "{]" and "}]" in message with "▒"
  58. replace all "[|" and "|]" in message with "▓"
  59. replace all "[]" in message with "█"
  60.  
  61. # lokacja gracza
  62. player has permission "chatplus.loc":
  63. replace all ":loc:" in message with "&f[&e%rounded x location of player%&f|&e%rounded y location of player%&f|&e%rounded z location of player%&f]"
  64.  
  65. # tęczowy tekst
  66. # (wymaga dodania możliwości pogrubienia teksu)
  67. player has permission "chatplus.tecza":
  68. set {_zabezpieczenie} to 0
  69. while message contains "&t":
  70. add 1 to {_zabezpieczenie}
  71. {_zabezpieczenie} is more than 10:
  72. stop
  73. set {_t} to first index of "&t" in message # pozycja tagu (&t) do formatowania
  74.  
  75. set {_tf} to subtext of message from character ({_t}) to character (length of message) # tekst do formatowania łącznie z tekstem po nim
  76. replace "&t" in {_tf} with "" # usuwanie tagu z tekstu do formatowania
  77.  
  78. set {_nc1} to (first index of "&" in {_tf} - 1) # pozycja ewentualnego nastepnego tagu
  79. {_nc1} is -1: # gdyby nie było następnego tagu
  80. set {_nc1} to (length of {_tf}) # przypisywana jest pozycja ostatniego znaku tekstu
  81. set {_nc2} to (first index of "@" in {_tf} - 1)
  82. {_nc2} is -1:
  83. set {_nc2} to (length of {_tf})
  84. set {_nc3} to (first index of "&f[&e%rounded x location of player%&f|&e%rounded y location of player%&f|&e%rounded z location of player%&f]" in {_tf} - 1)
  85. {_nc3} is -1:
  86. set {_nc3} to (length of {_tf})
  87.  
  88. {_nc1} is less than {_nc2} and {_nc3}:
  89. set {_nc} to {_nc1}
  90. {_nc2} is less than {_nc3} and {_nc1}:
  91. set {_nc} to {_nc2}
  92. {_nc3} is less than {_nc1} and {_nc2}:
  93. set {_nc} to {_nc3}
  94.  
  95. set {_tf} to subtext of {_tf} from characters 1 to ({_nc}) # usuwanie tekstu do formatowania od następnego tagu
  96.  
  97. set {_tf::*} to {_tf} split at ""
  98. set {_nr} to 1 # predefiniowanie
  99. set {_w} to "" # pomocniczych zmiennych
  100. loop {_tf::*}:
  101. loop-value is "":
  102. delete {_tf::%loop-index%}
  103. loop-value is " ":
  104. set {_w} to "%{_w}% "
  105. loop-value is not "" or " ":
  106. {_nr} is 1:
  107. set {_c} to "&5"
  108. {_nr} is 2:
  109. set {_c} to "&1"
  110. {_nr} is 3:
  111. set {_c} to "&9"
  112. {_nr} is 4:
  113. set {_c} to "&2"
  114. {_nr} is 5:
  115. set {_c} to "&a"
  116. {_nr} is 6:
  117. set {_c} to "&e"
  118. {_nr} is 7:
  119. set {_c} to "&6"
  120. {_nr} is 8:
  121. set {_c} to "&c"
  122. {_nr} is 9:
  123. set {_c} to "&4"
  124. set {_w} to "%{_w}%%{_c}%%loop-value%"
  125. add 1 to {_nr}
  126. {_nr} is 10:
  127. set {_nr} to 1
  128. replace "&t%{_tf}%" in message with "%{_w}%&r"
  129.  
  130. # oznaczanie graczy
  131. player has permission "chatplus.oznacz":
  132. loop all players:
  133. message contains "@%loop-player%":
  134. replace "@%loop-player%" in message with "&b@%loop-player%&r"
  135. execute console command "playsound random.pop %loop-player%"
  136.  
  137. # kolorowanie wiadomości
  138. player has permission "chatplus.kolory":
  139. set message to colored message
  140.  
  141. # komenda pomocy
  142. command /chatplus [<text>]:
  143. aliases: chat+, c+
  144. trigger:
  145. arg is "4":
  146. send "&9█&2█&a█&e█&6█&c█&4█&5█&1█ &f&lChat+"
  147. send "&1█ &f/\&7, &f*/\ &7- ↑"
  148. send "&5█ &f>>&7, &f*>> &7- »"
  149. send "&4█ &f<<&7, &f*<< &7- «"
  150. send "&c█ &f*< &7- ◄"
  151. send "&6█ &f*> &7- ►"
  152. send "&e█ &f[\&7, &f[/ &7- ░"
  153. send "&a█ &f[}&7, &f{]&7, &f}] &7- ▒"
  154. send "&9█ &f[|&7, &f|] &7- ▓"
  155. send "&1█ &f[] &7- █"
  156. send "&5█ SDT - Skript Development Team (skript.pl)"
  157. send "&4█ &5PiratJaskiniowy, sebafudi, warpath124"
  158. send "&c█&6█&e█ &e(4/4)"
  159. stop
  160. arg is "3":
  161. send "&9█&2█&a█&e█&6█&c█&4█&5█&1█ &f&lChat+"
  162. send "&1█ &f*hospital&7, &f*+ &7- ✚"
  163. send "&5█ &f*v &7- ✔"
  164. send "&4█ &f*x &7- ✘"
  165. send "&c█ &f*[] &7- ☐"
  166. send "&6█ &f*[v]&7, &f[v] &7- ☑"
  167. send "&e█ &f*[x]&7, &f[x] &7- ☒"
  168. send "&a█ &f*c &7- ©"
  169. send "&9█ &f*r &7- ®"
  170. send "&1█ &f->&7, &f*-> &7- →"
  171. send "&5█ &f<-&7, &f*<- &7- ←"
  172. send "&4█ &f\/&7, &f*\/ &7- ↓"
  173. send "&c█&6█&e█ &e(3/4) » /c+ 4"
  174. stop
  175. arg is "2":
  176. send "&9█&2█&a█&e█&6█&c█&4█&5█&1█ &f&lChat+"
  177. send "&1█ &f*3 &7- ω"
  178. send "&5█ &f*airplane &7- ✈"
  179. send "&4█ &f*phone &7- ☎"
  180. send "&c█ &f*radioactive &7- ☢"
  181. send "&6█ &f*bio &7- ☣"
  182. send "&e█ &f*? &7- �"
  183. send "&a█ &f*scizz &7- ✂"
  184. send "&9█ &f*arrow &7- ➳"
  185. send "&1█ &f*8 &7- ☃"
  186. send "&5█ &f*flower &7- ✿"
  187. send "&4█ &f*o &7- •"
  188. send "&c█&6█&e█ &e(2/4) » /c+ 3"
  189. stop
  190. send "&9█&2█&a█&e█&6█&c█&4█&5█&1█ &f&lChat+"
  191. send "&1█ &f&t &7- teczowy tekst, &f@nick &7- oznacza gracza"
  192. send "&5█ &f:loc: &7- lokacja gracza"
  193. send "&4█ &f:)&7, &f(: &7- ☺"
  194. send "&c█ &f:(&7, &f): &7- ☹"
  195. send "&6█ &f-_* &7- ツ"
  196. send "&e█ &f<3 &7- ❤"
  197. send "&a█ &f*mail &7- ✉"
  198. send "&9█ &f*music &7- ♪♫♫♪"
  199. send "&1█ &f*sun &7- ☼"
  200. send "&5█ &f*fm &7- ♀"
  201. send "&4█ &f*m &7- ♂"
  202. send "&c█&6█&e█ &e(1/4) » /c+ 2"
Advertisement
Add Comment
Please, Sign In to add comment