#========================================================================================================# # sChat by GregorGrand # #========================================================================================================# # LICENCJA # #========================================================================================================# # ZAKAZ: # # * Modyfikowania treści skryptu (Jedynie opcje!) # # * Przywłaszczania sobie autorstwa skryptu # # * Zarabiania na skrypcie # # * Udostepniania skryptu w swoich paczkach serwerowych # # * Usuwania tresci zawierajacych informacje o autorze # # * Podszywania sie pod autora # # * Udostepniania skryptu w paczkach plikow serwerowch itp # # * Usuwania tresci zawierajacych autora # # * Dopisywania wszelkich dodatków typu strona www # #========================================================================================================# # POZWOLENIA: # # * Modyfikowanie wiadomości skryptu na wlasne potrzeby # # * Dopisywanie fragmentow na wlasne potrzeby # #========================================================================================================# # Mylnie odczytana licencja nie zwalnia z jej przestrzegania. # #========================================================================================================# on load: set {_version} to content of file "plugins/Skript/scripts/%script%" set {_v} to index of "##" in {_version} set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version}) set {_v3} to index of "##" in {_v2} set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3}) set {_version} to result of connect to "https://code.skript.pl/XjUf8qJw" set {_v} to index of "##" in {_version} set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version}) set {_v3} to index of "##" in {_v2} set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3}) {version} is not {version.new}: download "https://code.skript.pl/XjUf8qJw" to "plugins/Skript/scripts/%script%" variables: {chat} = true {chat.%player%} = true {spam.%player%} = true {cenzura} = true {slowmode} = true {emotikony} = true {chatx::%player%} = 0 {msg.%player%} = 0 {anticapslock} = true options: # Wiadomosc przy czyszczeniu chatu. messageclear: &9Chat zostal wyczyszczony przez &7%player% # Wiadomosc przy wylaczeniu chatu. messageoff: &9Chat zostal wylaczony przez &7%player% # Wiadomosc przy wlaczeniu chatu. messageon: &9Chat zostal wlaczony przez &7%player% # Wiadomosc wysylana do gracza podczas kiedy gracz pisze na wylaczonym chacie. messageoffplayer: &cChat jest aktualnie wylaczony! # Wiadomosc przy zablokowaniu gracza. messagelock: &9Gracz &7%player-arg% &9Zostal zablokowany przez &7%player% &9Z powodu: &7%arg 2% # Wiadomosc przy odblokowaniu gracza. messageunlock: &9Gracz &7%player-arg% &9Zostal odblokowany przez &7%player% # Wiadomosc wysylana do gracza podczas kiedy jest zablokowany. messagelockplayer: &9Jestes zablokowany # Czas slowmode'a w sekundach slowmodetime: 3 # Wiadomosc przy wylaczeniu slowmode'a. messageslowmodeoff: &9Slowmode zostal wylaczony !! # Wiadomosc przy wlaczeniu slowmode'a. messageslowmodeon: &9Slowmode zostal wlaczony !! # Zmiana tekstu kiedy gracz napisze jakąś cenzure. cenzura: *** # Wiadomosc przy wylaczeniu cenzury. Censormessageoff: &9Cenzura zostala wylaczona !! # Wiadomosc przy wlaczeniu cenzury. Censormessageon: &9Cenzura zostala wlaczona !! # Wiadomosc przy wlaczeniu emotikon. messagebuzkion: &9Emotikony zostal wlaczone !! # Wiadomosc przy wylaczeniu emotikon. messagebuzkioff: &9Emotikony zostaly wylaczone !! # Wiadomosc przy wlaczeniu anticapslock'a. anticapslockon: &9antiCAPSLOCK zostal wlaczony przez &7%player% # Wiadomosc przy wylaczeniu anticapslock'a. anticapslockoff: &9antiCAPSLOCK zostal wylaczony przez &7%player% # Wyglad prywatnej wiadomosci. msg: &9[%player% -> %player-arg%]&7 %arg 2% command /chat [] [] []: permission: chat.admin permission message: &cNie masz uprawnien do tej komendy! trigger: if arg 1 is not set: send "&cWszyskie komendy znajdziesz pod: &9/chat pomoc 1/2" stop if arg 1 is "pomoc" or "help": if arg 2 is "1": send "&0-----------&7[&aStrona &c1&7/&a2&7]&0-----------" send "&9/chat wyczysc &7- Czysci chat." send "&9/chat wylacz &7- Wylacza chat." send "&9/chat wlacz &7- Wlacza chat." send "&9/chat zablokuj &7- Blokuje gracza." send "&9/chat odblokuj potwierdzam &7- Odblokowuje gracza gracza." send "&9/chat slowmode wlacz &7- Wlacza slowmode'a." send "&9/chat slowmode wylacz &7- Wylacza slowmode'a." send "&9/chat info &7- Informacje o skripcie." send "&9/chat spam &7- Spamuje u wszyskich graczy ta sama wiadomoscia." send "&9/chat emotikony wlacz &7- Wlacza emotikony." send "&9/chat emotikony wylacz &7- Wylacza emotikony." stop if arg 2 is "2": send "&0-----------&7[&aStrona &c2&7/&a2&7]&0-----------" send "&9/cenzura wlacz &7- Wlacza cenzure." send "&9/cenzura wylacz &7- Wylacza cenzure." send "&9/cenzura dodaj &7- Dodaje cenzure." send "&9/cenzura usun &7- Usun z spisu cenzur cenzure." send "&9/cenzura spis &7- Pokazuje spis cenzur." send "&9/chat statystyki &7- Statystyki dot. chatu." send "&9/chat reload &7- Przeladowywuje skrypt." send "&9/chat anticapslock wlacz &7- Wlacza antiCAPSLOCK'a." send "&9/chat anticapslock wylacz &7- Wylacza antiCAPSLOCK'a." stop if arg 1 is "wyczysc" or "clear": loop 100 times: broadcast " " broadcast "{@messageclear}" stop if arg 1 is "info": send "&7Informacje:" send "&7Wersja: &91.2" send "&7Autor: &9Flotek" send "&7Link: &9http://youtube.com/user/MinecraftFlotek" stop if arg 1 is "wylacz" or "off": if {chat} is true: set {chat} to false broadcast "{@messageoff}" else: send "&9Chat jest juz wylaczony!" stop if arg 1 is "wlacz" or "on": if {chat} is false: set {chat} to true broadcast "{@messageon}" else: send "&9Chat jest juz wlaczony!" stop if arg 1 is "zablokuj" or "lock": if arg 2 is set: if arg 3 is set: if {chat.%player-arg%} is true: set {chat.%player-arg%} to false broadcast "{@messagelock}" else: send "&9Ten gracz jest juz zablokowany!" else: send "&9Podaj nick gracza!" else: send "&9Podaj powod!" stop if arg 1 is "odblokuj" or "unlock": if arg 2 is "potwierdzam" or "confirm": if arg 3 is set: if {chat.%player-arg%} is false: set {chat.%player-arg%} to true broadcast "{@messageunlock}" else: send "&9Ten gracz nie jest zablokowany!" else: send "&9Podaj nick gracza!" stop if arg 1 is "slowmode": if arg 2 is "wylacz" or "off": if {slowmode} is true: set {slowmode} to false broadcast "{@messageslowmodeoff}" else: send "&9Slowmode jest wylaczony!" stop if arg 2 is "wlacz" or "on": if {slowmode} is false: set {slowmode} to true broadcast "{@messageslowmodeon}" else: send "&9Slowmode jest wlaczony!" stop if arg 1 is "emotikony" or "buzki": if arg 2 is "wlacz" or "on": if {emotikony} is false: set {emotikony} to true broadcast "{@messagebuzkion}" else: send "&9Emotikony sa juz wlaczone!" stop if arg 2 is "wylacz" or "off": if {emotikony} is true: set {emotikony} to false broadcast "{@messagebuzkioff}" else: send "&9Emotikony sa juz wylaczone!" stop if arg 1 is "spam": if arg 2 is set: loop 20 times: broadcast "%colored arg 2%" broadcast "" stop if arg 1 is "statystyki" or "staty": if arg 2 is player: send "&6Statystyki gracza %arg 2%" send "&7Napisane wiadomosci: &9%{chatx::%player%}%" send "&7Wiadomosci prytawne: &9%{msg.%player%}%" else: send "&9Podaj nick gracza." stop if arg 1 is "przeladuj" or "reload": execute player command "sk reload %script%" stop if arg 1 is "anticapslock" or "anticl" or "acl": if arg 2 is "wlacz" or "on": set {anticapslock} to true broadcast "{@anticapslockon}" stop if arg 2 is "wylacz" or "off": set {anticapslock} to false broadcast "{@anticapslockoff}" stop command /msg [] []: trigger: if arg 1 is set: if arg 2 is set: send "{@msg}" to player-arg send "&aPoprawnie wyslano wiadomosc" add 1 to {msg.%player%} else: send "&9Poprawne uzycie: &9/msg " else: send "&9Poprawne uzycie: &9/msg " stop command /cenzura [] []: permission: chat.admin permission message: &cNie masz uprawnien do tej komendy! trigger: if arg 1 is "wlacz" or "on": if {cenzura} is false: set {cenzura} to true broadcast "{@Censormessageon}" else: send "&9Cenzura jest juz wlaczona" stop if arg 1 is "wylacz" or "off": if {cenzura} is true: set {cenzura} to false broadcast "{@Censormessageoff}" else: send "&9Cenzura jest juz wlaczona" stop if arg 1 is "dodaj" or "add": if arg 2 is set: if {cenzura.%arg 2%} is not set: add "%arg 2%" to {censor::*} set {cenzura.%arg 2%} to "%arg 2%" send "&9Do cenzury dodales slowo: &7%arg 2%" else: send "&9W spisie cenzur juz jest taka cenzura." else: send "&9Podaj cenzure!" stop if arg 1 is "usun" or "remove" or "delete": if arg 2 is set: if {cenzura.%arg 2%} is set: remove "%arg 2%" from {censor::*} set {cenzura.%arg 2%} to "" send "&9Z cenzury usunales slowo: &7%arg 2%" else: send "&9W spisie cenzur nie ma takiej cenzury." else: send "&9Podaj cenzure!" stop if arg 1 is "lista" or "list" or "spis": if {censor::*} is not set: send "&cSpis cenzur: &7Brak cenzur." else: send "&cSpis cenzur: &7%{censor::*}%" stop command /! []: aliases: @, chatvip, cv permission: chat.vip permission message: &cNie masz uprawnien do tej komendy! trigger: if arg 1 is set: if player has permission "chat.vip": loop all players: if loop-player have permission "chat.vip": broadcast "&aChat VIP -> %player%: &7%arg 1%" else: send "&cNie masz uprawnien do tej komendy!" else: send "&cPodaj wiadomosc!" stop on chat: if {chat} is false: if player don't have permission "chat.admin": cancel event send "{@messageoffplayer}" stop on chat: if {chat.%player%} is false: cancel event send "{@messagelockplayer}" stop on chat: if {slowmode} is true: if player don't have permission "chat.admin": if {spam.%player%} is true: cancel event send "&9Zaczekaj &7{@slowmodetime} &9 Za nim znow napiszesz wiadomosc" set {spam.%player%} to true wait {@slowmodetime} seconds set {spam.%player%} to false stop on chat: if {cenzura} is true: replace all {censor::*} with "{@cenzura}" in the message stop on chat: if {emotikony} is true: replace all ":)" and "(:" in message with "☺" replace all "):" and ":(" in message with "☹" replace all "-_*" in message with "ツ" replace all "<3" in message with "❤" replace all "*mail" in message with "✉" replace all "*music" in message with "♪♫♫♪" replace all "*sun" in message with "☼" replace all "*fm" in message with "♀" replace all "*m" in message with "♂" replace all "*3" in message with "ω" replace all "*airplane" in message with "✈" replace all "*phone" in message with "☎" replace all "*radioactive" in message with "☢" replace all "*bio" in message with "☣" replace all "*?" in message with "�" replace all "*scizz" in message with "✂" replace all "*arrow" in message with "➳" replace all "*8" in message with "☃" replace all "*flower" in message with "✿" replace all "*o" in message with "•" replace all "*hospital" and "*+" in message with "✚" replace all "*v" in message with "✔" replace all "*x" in message with "✘" replace all "*[]" in message with "☐" replace all "*[v]" and "[v]" in message with "☑" replace all "*[x]" and "[x]" in message with "☒" replace all "*c" in message with "©" replace all "*r" in message with "®" replace all "->" and "*->" in message with "→" replace all "<-" and "*<-" in message with "←" replace all "\/" and "*\/" in message with "↓" replace all "/\" and "*/\" in message with "↑" replace all ">>" and "*>>" in message with "»" replace all "<<" and "*<<" in message with "«" replace all "*<" in message with "◄" replace all "*>" in message with "►" replace all "[]" in message with "█" stop on chat: if {anticapslock} is true: if player don't have permission "chat.admin": replace all "A" with "a" in the message replace all "B" with "b" in the message replace all "C" with "c" in the message replace all "D" with "d" in the message replace all "E" with "e" in the message replace all "F" with "f" in the message replace all "G" with "g" in the message replace all "H" with "h" in the message replace all "I" with "i" in the message replace all "J" with "j" in the message replace all "K" with "k" in the message replace all "L" with "l" in the message replace all "M" with "m" in the message replace all "N" with "n" in the message replace all "O" with "o" in the message replace all "P" with "p" in the message replace all "R" with "r" in the message replace all "S" with "s" in the message replace all "T" with "t" in the message replace all "U" with "u" in the message replace all "W" with "w" in the message replace all "Y" with "y" in the message replace all "Z" with "z" in the message stop on join: {chatx::%player%} is not set: set {chatx::%player%} to 0 {nickx.%player%} is not set: set {nickx.%player%} to uncolored display name of player on chat: if {slowmode} is false: if {chat.%player%} is true: if {chat} is true: add 1 to {chatx::%player%} stop command /top []: trigger: set {_stronyx} to rounded up (size of {chatx::*} / 5) arg is between 1 and {_stronyx}: send "&6Ranking najwiekszych pisarzy:" loop {chatx::*}: set {_listax::%loop-index%} to loop-value set {_numx} to size of {_listax::*} set {_maxx} to arg * 5 set {_minx} to {_maxx} - 4 loop {_maxx} times: loop {_listax::*}: {_wartoscx.%loop-number%} is not set: set {_wartoscx.%loop-number%} to loop-value set {_nazwax.%loop-number%} to loop-index loop-value is more than {_wartoscx.%loop-number%}: set {_wartoscx.%loop-number%} to loop-value set {_nazwax.%loop-number%} to loop-index remove {_wartoscx.%loop-number%} from {_listax::*} loop {_maxx} times: loop-number is between {_minx} and {_maxx} loop-number <= {_numx}: send "&7%loop-number%. &9%{nickx.%{_nazwax.%loop-number%}%}% (&a%{_wartoscx.%loop-number%}%&9)" {_maxx} is more than {_numx}: set {_rx} to {_numx} loop {_maxx} - {_numx} times: add 1 to {_rx} send "&7%{_rx}%. &cbrak" send "&7Strona: &9%arg% &7z &9%{_stronyx}%" stop {_stronyx} is 1: send "&7Wyniki mieszcza sie na 1 stronie." stop send "&7Wyniki mieszcza sie na &9%{_stronyx}% &7stronach." stop on load: send "==============================" to console send "= sChat by GregorGrand. =" to console send "= Zostal poprawnie wlaczony! =" to console send "==============================" to console stop