Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # xBot - twoj wirtualny pomocnik. #
- # Autor: Ixidi #
- # Wersja: 1.0 #
- variables:
- {chat} = true
- {zglos.%player%} = false
- command /xbot [<text>] [<text>] [<player>]:
- usage: /xBot
- trigger:
- if player has permission "xbot.admin":
- if arg 1 is "gracz":
- send ""
- send "&c================================================================="
- send "&6/zglos <nick> - Zglasza chetera."
- send "&6/bug <opis> - Zglasza jakis bug."
- send "&6/zapytaj <pytanie> - Pytanie do administracji."
- send "&c================================================================="
- if arg 1 is "auto":
- send ""
- send "&c================================================================="
- send "&6xBot ma wbudowana anty-reklame tzn. Gdy ktos probuje"
- send "&6reklamowac xBot to blokuje."
- send "&6Ma on rowniez funkcje automatycznego odpowiadania na pytania. (z bazy)"
- send "&6Gdy gracz napisze /pytanie <pytanie> otrzyma odpowiedz."
- send "&6Ma tez system zglaszania cheterow (/zglos <nick>)."
- send "&c================================================================="
- if arg 1 is not set:
- send ""
- send "&c================================================================="
- send "&6/xbot czysc - Czysci zgloszenia cheterow, bugow i pytan."
- send "&6/xbot auto - Automatyczne funkcje xBota."
- send "&6/xbot autor - Informacje o autorze."
- send "&6/xbot chat off - Wylacza chat."
- send "&6/xbot chat on - Wlacza chat."
- send "&6/xbot chat czysc - Czysci chat."
- send "&6/xbot echest otworz NICK - Otwiera enderchest gracza."
- send "&6/xbot echest czysc NICK - Czysci enderchest gracza."
- send "&6/xbot ekwipunek otworz NICK - Otwiera ekwipunek gracza."
- send "&6/xbot ekwipunek czysc NICK - Czysci ekwipunek gracza."
- send "&6/xbot gracz - Komendy gracza. ( xbot.gracz )"
- send "&c================================================================="
- if arg 1 is "czysc":
- delete folder "plugins/xBot"
- delete file "plugins/xBot/ktoreklamowal.yml"
- delete file "plugins/xBot/zgloszeniagraczy.yml"
- delete file "plugins/xBot/zgloszeniabugow.yml"
- delete file "plugins/xBot/config.yml"
- delete file "plugins/xBot/pytaniabezodpowiedzi.yml"
- execute player command "sk reload all"
- send "&6Wyczyszczono zgloszenia i informacje z folderu &cxBot&6."
- if arg 1 is "autor":
- send "&6Autorem jest &cIxidi&6."
- if arg 1 is "echest":
- if arg 2 is not set:
- send ""
- send "&c================================================================="
- send "&6/xbot echest otworz NICK - Otwiera enderchest gracza."
- send "&6/xbot echest czysc NICK - Czysci enderchest gracza."
- send "&c================================================================="
- if arg 2 is "otworz":
- if arg 3 is set:
- open the arg-player's ender chest to the player
- send "&6To jest enderchest gracza &c%arg 3%&6."
- else:
- send "&4BLAD: &cPodaj nick gracza."
- if arg 2 is "czysc":
- if arg 3 is set:
- loop all items in arg-player's enderchest:
- clear loop-item
- send "&6Wyczyszczono enderchest gracza &c%arg-player%&6."
- else:
- send "&4BLAD: &cPodaj nick gracza."
- if arg 1 is "ekwipunek":
- if arg 2 is not set:
- send ""
- send "&c================================================================="
- send "&6/xbot ekwipunek otworz NICK - Otwiera ekwipunek gracza."
- send "&6/xbot ekwipunek czysc NICK - Czysci ekwipunek gracza."
- send "&c================================================================="
- if arg 2 is "otworz":
- if arg 3 is set:
- open the arg-player's inventory to the player
- send "&6To jest ekwipunek gracza &c%arg 3%&6."
- else:
- send "&4BLAD: &cPodaj nick gracza."
- if arg 2 is "czysc":
- if arg 3 is set:
- loop all items in arg-player's inventory:
- clear loop-item
- send "&6Wyczyszczono ekwipunek gracza &c%arg-player%&6."
- else:
- send "&4BLAD: &cPodaj nick gracza."
- if arg 1 is "chat":
- if arg 2 is not set:
- send ""
- send "&c================================================================="
- send "&6/xbot chat czysc - Czysci chat."
- send "&6/xbot chat off - Wylacza chat."
- send "&6/xbot chat on - Wlacza chat."
- send "&c================================================================="
- if arg 2 is "on":
- if {chat} is false:
- set {chat} to true
- broadcast ""
- broadcast "&aChat zostal wlaczaony."
- broadcast ""
- else:
- send "&4BLAD: &cChat jest wlaczaony."
- if arg 2 is "off":
- if {chat} is true:
- set {chat} to false
- broadcast ""
- broadcast "&cChat zostal wylaczaony."
- broadcast ""
- else:
- send "&4BLAD: &cChat jest wylaczaony."
- if arg 2 is "czysc":
- loop 100 times:
- broadcast ""
- broadcast "&9Chat zostal wyczyszczony."
- broadcast ""
- else:
- send "&4Brak permisji..."
- command /zglos [<player>]:
- trigger:
- if player has permission "xbot.gracz":
- if {zglos.%player%} is false:
- if arg 1 is not set:
- send "&cPoprawne uzycie: &7/zglos <nick>"
- if arg 1 is set:
- wf "## Gracz %player% zglosil gracza %arg 1%. ##" to "plugins/xBot/zgloszeniagraczy.yml"
- send "&6Zglosiles gracza &c%arg 1%&6."
- set {zglos.%player%} to true
- wait 5 minutes
- set {zglos.%player%} to false
- else:
- send "&cPoczekaj przez zgloszeniem kolejnej osoby lub buga."
- else:
- send "&4Brak permisji..."
- command /bug [<text>]:
- trigger:
- if player has permission "xbot.gracz":
- if {zglos.%player%} is false:
- if arg 1 is not set:
- send "&cPoprawne uzycie: &7/bug <opisbuga>"
- if arg 1 is set:
- wf "## Gracz %player% zglosil buga. Opis %arg 1%. ##" to "plugins/xBot/zgloszeniabugow.yml"
- send "&6Zglosiles buga! Opis: &c%arg 1%&6."
- set {zglos.%player%} to true
- wait 5 minutes
- set {zglos.%player%} to false
- else:
- send "&cPoczekaj przez zgloszeniem kolejnej osoby lub buga."
- else:
- send "&4Brak permisji..."
- command /zapytaj [<text>]:
- trigger:
- if player has permission "xbot.gracz":
- if arg 1 is not set:
- send "&cPoprawne uzycie: &7/zapytaj <pytanie>"
- if arg 1 is set:
- set {_p1} to single value "pytanie1" get of "plugins/xBot/config.yml"
- set {_p2} to single value "pytanie2" get of "plugins/xBot/config.yml"
- set {_p3} to single value "pytanie3" get of "plugins/xBot/config.yml"
- set {_p4} to single value "pytanie4" get of "plugins/xBot/config.yml"
- set {_p5} to single value "pytanie5" get of "plugins/xBot/config.yml"
- set {_p6} to single value "pytanie6" get of "plugins/xBot/config.yml"
- set {_p7} to single value "pytanie7" get of "plugins/xBot/config.yml"
- set {_p8} to single value "pytanie8" get of "plugins/xBot/config.yml"
- set {_p9} to single value "pytanie9" get of "plugins/xBot/config.yml"
- set {_p10} to single value "pytanie10" get of "plugins/xBot/config.yml"
- set {_p11} to single value "pytanie11" get of "plugins/xBot/config.yml"
- set {_p12} to single value "pytanie12" get of "plugins/xBot/config.yml"
- set {_p13} to single value "pytanie13" get of "plugins/xBot/config.yml"
- set {_p14} to single value "pytanie14" get of "plugins/xBot/config.yml"
- set {_p15} to single value "pytanie15" get of "plugins/xBot/config.yml"
- set {_o1} to single value "odp1" get of "plugins/xBot/config.yml"
- set {_o2} to single value "odp2" get of "plugins/xBot/config.yml"
- set {_o3} to single value "odp3" get of "plugins/xBot/config.yml"
- set {_o4} to single value "odp4" get of "plugins/xBot/config.yml"
- set {_o5} to single value "odp5" get of "plugins/xBot/config.yml"
- set {_o6} to single value "odp6" get of "plugins/xBot/config.yml"
- set {_o7} to single value "odp7" get of "plugins/xBot/config.yml"
- set {_o8} to single value "odp8" get of "plugins/xBot/config.yml"
- set {_o9} to single value "odp9" get of "plugins/xBot/config.yml"
- set {_o10} to single value "odp10" get of "plugins/xBot/config.yml"
- set {_o11} to single value "odp11" get of "plugins/xBot/config.yml"
- set {_o12} to single value "odp12" get of "plugins/xBot/config.yml"
- set {_o13} to single value "odp13" get of "plugins/xBot/config.yml"
- set {_o14} to single value "odp14" get of "plugins/xBot/config.yml"
- set {_o15} to single value "odp15" get of "plugins/xBot/config.yml"
- if arg 1 contains {_p1} or {_p2} or {_p3} or {_p4} or {_p5} or {_p6} or {_p7} or {_p8} or {_p9} or {_p10} or {_p11} or {_p12} or {_p13} or {_p14} or {_p15}:
- if arg contains {_p1}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o1}%"
- if arg 1 contains {_p2}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o2}%"
- if arg 1 contains {_p3}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o3}%"
- if arg 1 contains {_p4}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o4}%"
- if arg 1 contains {_p5}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o5}%"
- if arg 1 contains {_p6}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o6}%"
- if arg 1 contains {_p7}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o7}%"
- if arg 1 contains {_p8}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o8}%"
- if arg 1 contains {_p9}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o9}%"
- if arg 1 contains {_p10}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o10}%"
- if arg 1 contains {_p11}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o11}%"
- if arg 1 contains {_p12}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o12}%"
- if arg 1 contains {_p13}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o13}%"
- if arg 1 contains {_p14}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: &c%{_o14}%"
- if arg 1 contains {_p15}:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- send "&6Odpowiedz: w&c%{_o15}%"
- else:
- send "&6Zadales pytanie: &c%arg 1%"
- wait 4 seconds
- wf "## %player% nie otrzymal odpowiedzi na pytanie: %arg 1% ##" to "plugins/xBot/pytaniabezodpowiedzi.yml"
- send "&6Niestety, tego pytania nie ma w bazie ;( Administracja zostala o nim powiadomiona."
- else:
- send "&4Brak permisji..."
- on chat:
- if {chat} is false:
- if player has permission "xbot.admin":
- stop
- else:
- cancel event
- send "&6Chat jest &cwylaczony&6."
- if message contains "fhmc" or "ench" or "www" or "gomc" or "hostmc" or "http" or "csrv" or "srvmc" or "mcvr" or ".pl" or ".net" or ".com" or ".eu":
- wf "## Reklamowal: %player% Napisal: %message% ##" to "plugins/xBot/ktoreklamowal.yml"
- cancel event
- kick the player due to "&4Nie reklamuj serwerow i stron!!!"
- on script load:
- if folder "plugins/xBot" doesn't exists:
- create folder "plugins/xBot"
- if file "plugins/xBot/config.yml" doesn't exists:
- create file "plugins/xBot/config.yml"
- wf "## Tutaj wpisz pytania i odpowiedzi. ##" to "plugins/xBot/config.yml"
- set "pytanie1" to "tojestpytanie1" in yaml file "plugins/xBot/config.yml"
- set "odp1" to "tojestodpowiedz1" in yaml file "plugins/xBot/config.yml"
- set "pytanie2" to "tojestpytanie2" in yaml file "plugins/xBot/config.yml"
- set "odp2" to "tojestodpowiedz2" in yaml file "plugins/xBot/config.yml"
- set "pytanie3" to "tojestpytanie3" in yaml file "plugins/xBot/config.yml"
- set "odp3" to "tojestodpowiedz3" in yaml file "plugins/xBot/config.yml"
- set "pytanie4" to "tojestpytanie4" in yaml file "plugins/xBot/config.yml"
- set "odp4" to "tojestodpowiedz4" in yaml file "plugins/xBot/config.yml"
- set "pytanie5" to "tojestpytanie5" in yaml file "plugins/xBot/config.yml"
- set "odp5" to "tojestodpowiedz5" in yaml file "plugins/xBot/config.yml"
- set "pytanie6" to "tojestpytanie6" in yaml file "plugins/xBot/config.yml"
- set "odp6" to "tojestodpowiedz6" in yaml file "plugins/xBot/config.yml"
- set "pytanie7" to "tojestpytanie7" in yaml file "plugins/xBot/config.yml"
- set "odp7" to "tojestodpowiedz7" in yaml file "plugins/xBot/config.yml"
- set "pytanie8" to "tojestpytanie8" in yaml file "plugins/xBot/config.yml"
- set "odp8" to "tojestodpowiedz8" in yaml file "plugins/xBot/config.yml"
- set "pytanie9" to "tojestpytanie9" in yaml file "plugins/xBot/config.yml"
- set "odp9" to "tojestodpowiedz9" in yaml file "plugins/xBot/config.yml"
- set "pytanie10" to "tojestpytanie10" in yaml file "plugins/xBot/config.yml"
- set "odp10" to "tojestodpowiedz10" in yaml file "plugins/xBot/config.yml"
- set "pytanie11" to "tojestpytanie11" in yaml file "plugins/xBot/config.yml"
- set "odp11" to "tojestodpowiedz11" in yaml file "plugins/xBot/config.yml"
- set "pytanie12" to "tojestpytanie12" in yaml file "plugins/xBot/config.yml"
- set "odp12" to "tojestodpowiedz12" in yaml file "plugins/xBot/config.yml"
- set "pytanie13" to "tojestpytanie13" in yaml file "plugins/xBot/config.yml"
- set "odp13" to "tojestodpowiedz13" in yaml file "plugins/xBot/config.yml"
- set "pytanie14" to "tojestpytanie14" in yaml file "plugins/xBot/config.yml"
- set "odp14" to "tojestodpowiedz14" in yaml file "plugins/xBot/config.yml"
- set "pytanie15" to "tojestpytanie15" in yaml file "plugins/xBot/config.yml"
- set "odp15" to "tojestodpowiedz15" in yaml file "plugins/xBot/config.yml"
- if file "plugins/xBot/ktoreklamowal.yml" doesn't exists:
- create file "plugins/xBot/ktoreklamowal.yml"
- if file "plugins/xBot/pytaniabezodpowiedzi.yml" doesn't exists:
- create file "plugins/xBot/pytaniabezodpowiedzi.yml"
- if file "plugins/xBot/zgloszeniagraczy.yml" doesn't exists:
- create file "plugins/xBot/zgloszeniagraczy.yml"
- if file "plugins/xBot/zgloszeniabugow.yml" doesn't exists:
- create file "plugins/xBot/zgloszaniabugow.yml"
Advertisement
Add Comment
Please, Sign In to add comment