FlotekPL

Po prostu chat :)

Oct 27th, 2014
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.86 KB | None | 0 0
  1. #========================================================================================================#
  2. # LICENCJA #
  3. #========================================================================================================#
  4. # ZAKAZ: #
  5. # * Modyfikowania treści skryptu (Jedynie opcje!) #
  6. # * Przywłaszczania sobie autorstwa skryptu #
  7. # * Zarabiania na skrypcie #
  8. # * Udostepniania skryptu w swoich paczkach serwerowych #
  9. # * Usuwania tresci zawierajacych informacje o autorze #
  10. # * Podszywania sie pod autora #
  11. # * Udostepniania skryptu w paczkach plikow serwerowch itp #
  12. # * Usuwania tresci zawierajacych autora #
  13. # * Dopisywania wszelkich dodatków typu strona www #
  14. #========================================================================================================#
  15. # POZWOLENIA: #
  16. # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
  17. # * Dopisywanie fragmentow na wlasne potrzeby #
  18. #========================================================================================================#
  19. # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
  20. #========================================================================================================#
  21.  
  22. variables:
  23. {chat} = true
  24. {chat.%player%} = true
  25. {spam.%player%} = true
  26. {cenzura} = true
  27. {slowmode} = true
  28. {emotikony} = true
  29.  
  30. options:
  31. # Wiadomosc przy czyszczeniu chatu.
  32. messageclear: &9Chat zostal wyczyszczony przez &7%player%
  33.  
  34. # Wiadomosc przy wylaczeniu chatu.
  35. messageoff: &9Chat zostal wylaczony przez &7%player%
  36.  
  37. # Wiadomosc przy wlaczeniu chatu.
  38. messageon: &9Chat zostal wlaczony przez &7%player%
  39.  
  40. # Wiadomosc wysylana do gracza podczas kiedy gracz pisze na wylaczonym chacie.
  41. messageoffplayer: &cChat jest aktualnie wylaczony!
  42.  
  43. # Wiadomosc przy zablokowaniu gracza.
  44. messagelock: &9Gracz &7%player-arg% &9Zostal zablokowany przez &7%player% &9Z powodu: &7%arg 2%
  45.  
  46. # Wiadomosc przy odblokowaniu gracza.
  47. messageunlock: &9Gracz &7%player-arg% &9Zostal odblokowany przez &7%player%
  48.  
  49. # Wiadomosc wysylana do gracza podczas kiedy jest zablokowany.
  50. messagelockplayer: &9Jestes zablokowany
  51.  
  52. # Czas slowmode'a w sekundach
  53. slowmodetime: 3
  54.  
  55. # Wiadomosc przy wylaczeniu slowmode'a.
  56. messageslowmodeoff: &9Slowmode zostal wylaczony !!
  57.  
  58. # Wiadomosc przy wlaczeniu slowmode'a.
  59. messageslowmodeon: &9Slowmode zostal wlaczony !!
  60.  
  61. # Zmiana tekstu kiedy gracz napisze jakąś cenzure.
  62. cenzura: ***
  63.  
  64. # Wiadomosc przy wylaczeniu cenzury.
  65. Censormessageoff: &9Cenzura zostala wylaczona !!
  66.  
  67. # Wiadomosc przy wlaczeniu cenzury.
  68. Censormessageon: &9Cenzura zostala wlaczona !!
  69.  
  70. # Wiadomosc przy wlaczeniu emotikon.
  71. messagebuzkion: &9Emotikony zostal wlaczone !!
  72.  
  73. # Wiadomosc przy wylaczeniu emotikon.
  74. messagebuzkioff: &9Emotikony zostaly wylaczone !!
  75.  
  76.  
  77. command /chat [<text>] [<text>] [<player>]:
  78. permission: chat.admin
  79. permission message: &cNie masz uprawnien do tej komendy!
  80. trigger:
  81. if arg 1 is not set:
  82. send "&6Dostepne komendy:"
  83. send "&9/chat wyczysc &7- Czysci chat."
  84. send "&9/chat wylacz &7- Wylacza chat."
  85. send "&9/chat wlacz &7- Wlacza chat."
  86. send "&9/chat zablokuj <powod> <nick> &7- Blokuje gracza."
  87. send "&9/chat odblokuj potwierdzam <nick> &7- Odblokowuje gracza gracza."
  88. send "&9/chat slowmode wlacz &7- Wlacza slowmode'a."
  89. send "&9/chat slowmode wylacz &7- Wylacza slowmode'a."
  90. send "&9/chat info &7- Informacje o skripcie."
  91. send "&9/chat spam <infomacja/spam> &7- Spamuje u wszyskich graczy ta sama wiadomoscia."
  92. send "&9/chat emotikony wlacz &7- Wlacza emotikony."
  93. send "&9/chat emotikony wylacz &7- Wylacza emotikony."
  94. send "&9/cenzura wlacz &7- Wlacza cenzure."
  95. send "&9/cenzura wylacz &7- Wylacza cenzure."
  96. send "&9/cenzura dodaj <cenzura> &7- Dodaje cenzure."
  97. send "&9/cenzura usun <cenzura> &7- Usun z spisu cenzur cenzure."
  98. send "&9/cenzura spis &7- Pokazuje spis cenzur."
  99. stop
  100. if arg 1 is "wyczysc" or "clear":
  101. loop 100 times:
  102. broadcast " "
  103. broadcast "{@messageclear}"
  104. stop
  105. if arg 1 is "info":
  106. send "&7Informacje:"
  107. send "&7Wersja: &91.0"
  108. send "&7Autor: &9Flotek"
  109. send "&7Link: &9http://youtube.com/user/MinecraftFlotek"
  110. stop
  111. if arg 1 is "wylacz" or "off":
  112. if {chat} is true:
  113. set {chat} to false
  114. broadcast "{@messageoff}"
  115. else:
  116. send "&9Chat jest juz wylaczony!"
  117. stop
  118. if arg 1 is "wlacz" or "on":
  119. if {chat} is false:
  120. set {chat} to true
  121. broadcast "{@messageon}"
  122. else:
  123. send "&9Chat jest juz wlaczony!"
  124. stop
  125. if arg 1 is "zablokuj" or "lock":
  126. if arg 2 is set:
  127. if arg 3 is set:
  128. if {chat.%player-arg%} is true:
  129. set {chat.%player-arg%} to false
  130. broadcast "{@messagelock}"
  131. else:
  132. send "&9Ten gracz jest juz zablokowany!"
  133. else:
  134. send "&9Podaj nick gracza!"
  135. else:
  136. send "&9Podaj powod!"
  137. stop
  138. if arg 1 is "odblokuj" or "unlock":
  139. if arg 2 is "potwierdzam" or "confirm":
  140. if arg 3 is set:
  141. if {chat.%player-arg%} is false:
  142. set {chat.%player-arg%} to true
  143. broadcast "{@messageunlock}"
  144. else:
  145. send "&9Ten gracz nie jest zablokowany!"
  146. else:
  147. send "&9Podaj nick gracza!"
  148. stop
  149. if arg 1 is "slowmode":
  150. if arg 2 is "wylacz" or "off":
  151. if {slowmode} is true:
  152. set {slowmode} to false
  153. broadcast "{@messageslowmodeoff}"
  154. else:
  155. send "&9Slowmode jest wylaczony!"
  156. stop
  157. if arg 2 is "wlacz" or "on":
  158. if {slowmode} is false:
  159. set {slowmode} to true
  160. broadcast "{@messageslowmodeon}"
  161. else:
  162. send "&9Slowmode jest wlaczony!"
  163. stop
  164. if arg 1 is "emotikony":
  165. if arg 2 is "wlacz" or "on":
  166. if {emotikony} is false:
  167. set {emotikony} to true
  168. broadcast "{@messagebuzkion}"
  169. else:
  170. send "&9Emotikony sa juz wlaczone!"
  171. stop
  172. if arg 2 is "wylacz" or "off":
  173. if {emotikony} is true:
  174. set {emotikony} to false
  175. broadcast "{@messagebuzkioff}"
  176. else:
  177. send "&9Emotikony sa juz wylaczone!"
  178. stop
  179. if arg 1 is "spam":
  180. if arg 2 is set:
  181. loop 20 times:
  182. broadcast "%colored arg 2%"
  183. broadcast ""
  184. stop
  185.  
  186.  
  187. command /cenzura [<text>] [<text>]:
  188. permission: chat.admin
  189. permission message: &cNie masz uprawnien do tej komendy!
  190. trigger:
  191. if arg 1 is "wlacz" or "on":
  192. if {cenzura} is false:
  193. set {cenzura} to true
  194. broadcast "{@Censormessageon}"
  195. else:
  196. send "&9Cenzura jest juz wlaczona"
  197. stop
  198. if arg 1 is "wylacz" or "off":
  199. if {cenzura} is true:
  200. set {cenzura} to false
  201. broadcast "{@Censormessageoff}"
  202. else:
  203. send "&9Cenzura jest juz wlaczona"
  204. stop
  205. if arg 1 is "dodaj" or "add":
  206. if arg 2 is set:
  207. if {cenzura.%arg 2%} is not set:
  208. add "%arg 2%" to {censor::*}
  209. set {cenzura.%arg 2%} to "%arg 2%"
  210. send "&9Do cenzury dodales slowo: &7%arg 2%"
  211. else:
  212. send "&9W spisie cenzur juz jest taka cenzura."
  213. else:
  214. send "&9Podaj cenzure!"
  215. stop
  216. if arg 1 is "usun" or "remove" or "delete":
  217. if arg 2 is set:
  218. if {cenzura.%arg 2%} is set:
  219. remove "%arg 2%" from {censor::*}
  220. set {cenzura.%arg 2%} to ""
  221. send "&9Z cenzury usunales slowo: &7%arg 2%"
  222. else:
  223. send "&9W spisie cenzur nie ma takiej cenzury."
  224. else:
  225. send "&9Podaj cenzure!"
  226. stop
  227. if arg 1 is "lista" or "list" or "spis":
  228. if {censor::*} is not set:
  229. send "&cSpis cenzur: &7Brak cenzur."
  230. else:
  231. send "&cSpis cenzur: &7%{censor::*}%"
  232. stop
  233.  
  234.  
  235.  
  236. on chat:
  237. if {chat} is false:
  238. if player don't have permission "chat.admin":
  239. cancel event
  240. send "{@messageoffplayer}"
  241. stop
  242. on chat:
  243. if {chat.%player%} is false:
  244. cancel event
  245. send "{@messagelockplayer}"
  246. stop
  247. on chat:
  248. if {slowmode} is true:
  249. if player don't have permission "chat.admin":
  250. if {spam.%player%} is true:
  251. cancel event
  252. send "&9Zaczekaj &7{@slowmodetime} &9 Za nim znow napiszesz wiadomosc"
  253. set {spam.%player%} to true
  254. wait {@slowmodetime} seconds
  255. set {spam.%player%} to false
  256. stop
  257. on chat:
  258. if {cenzura} is true:
  259. replace all {censor::*} with "{@cenzura}" in the message
  260. stop
  261. on chat:
  262. if {emotikony} is true:
  263. if player has permission "chat.admin" or "chat.admin" or "chat.gracz":
  264. replace all ":)" and "(:" in message with "☺"
  265. replace all "):" and ":(" in message with "☹"
  266. replace all "-_*" in message with "ツ"
  267. replace all "<3" in message with "❤"
  268. replace all "*mail" in message with "✉"
  269. replace all "*music" in message with "♪♫♫♪"
  270. replace all "*sun" in message with "☼"
  271. replace all "*fm" in message with "♀"
  272. replace all "*m" in message with "♂"
  273. replace all "*3" in message with "ω"
  274. replace all "*airplane" in message with "✈"
  275. replace all "*phone" in message with "☎"
  276. replace all "*radioactive" in message with "☢"
  277. replace all "*bio" in message with "☣"
  278. replace all "*?" in message with "�"
  279. replace all "*scizz" in message with "✂"
  280. replace all "*arrow" in message with "➳"
  281. replace all "*8" in message with "☃"
  282. replace all "*flower" in message with "✿"
  283. replace all "*o" in message with "•"
  284. replace all "*hospital" and "*+" in message with "✚"
  285. replace all "*v" in message with "✔"
  286. replace all "*x" in message with "✘"
  287. replace all "*[]" in message with "☐"
  288. replace all "*[v]" and "[v]" in message with "☑"
  289. replace all "*[x]" and "[x]" in message with "☒"
  290. replace all "*c" in message with "©"
  291. replace all "*r" in message with "®"
  292. replace all "->" and "*->" in message with "→"
  293. replace all "<-" and "*<-" in message with "←"
  294. replace all "\/" and "*\/" in message with "↓"
  295. replace all "/\" and "*/\" in message with "↑"
  296. replace all ">>" and "*>>" in message with "»"
  297. replace all "<<" and "*<<" in message with "«"
  298. replace all "*<" in message with "◄"
  299. replace all "*>" in message with "►"
  300. replace all "[]" in message with "█"
  301. stop
Advertisement
Add Comment
Please, Sign In to add comment