# # !Autor SzataNN # # !Beta skrypt na rekrutacje! # !Zmiana informacji stanie rekrutacji z poziomu serwera (/rekru ustaw ): beta! # !Config: beta! # !Zgloszenia: beta! # # !Wersja v2 # # !Dodano komende do resetowania zgloszenia gracza!+ # !Dodano modyfikacje pytan w configu!+ # !Dodano modyfikacje wymagan w configu!+ # !Dodano informacji o ilosci zgloszen pod komenda /rekrutacja!+ # !Dodano argument z listą pytan!+ # !Dodano liste rekrutantów pod komendą!+ # !Dodano komende /rekru sprawdz !+ command /rekrutacja [] [] [] []: aliases: rekru, rek trigger: if arg 1 is not set: send "" send "&8»------- &eRekrutacjaNN &8-------«" send "" send " &8» &7Aktualny stan rekrutacji&8: %{rekrutacja}%" send "" send " &8» &7Wymagania dotyczace rekrutacji&8:" send "" loop {wymagania::*}: send " &8• &6%loop-value%" send "" send " &8» &7Aby zglosic swoja osobe do rekrutacji wpisz&8: &e/rekru dolacz" send " &8» &7Zglosilo sie juz&8: &e%{score}% &7osob&8: &e/rekru lista" send "" send "&8»-----------------------------«" send "" #Dla administracji if arg 1 is "reset": if arg 2 is set: delete {rek.%arg 2%.join} delete {rek.%arg 2%.pyt1} delete {rek.%arg 2%.pyt2} delete {rek.%arg 2%.pyt3} delete {rek.%arg 2%.pyt4} delete {rek.%arg 2%.pyt5} delete {rek.%arg 2%.pyt6} delete {rek.%arg 2%.pyt7} send " &8» &aZresetowano pytania dla &e%arg 2%" else: send " &8» &cPodaj nick gracza!" if arg 1 is "ustaw": if player have permission "rek.admin": if arg 2 is not set: send " &8» &cArgument nie zostal podany!" else: if arg 3 is not set: if arg 2 is "Zamknieta": set {rekrutacja} to "&cZamknieta" send " &8» &7Informacje o stanie rekrutacji zostaly edytowane! &8(%{rekrutacja}%&8)" else: if arg 2 is "Otwarta": set {rekrutacja} to "&aOtwarta" send " &8» &7Informacje o stanie rekrutacji zostaly edytowane! &8(%{rekrutacja}%&8)" else: send " &8» &cPodales bledny argument!" else: send " &8» &cW tej informacji mozesz wstawic tylko jedno slowo!" else: send " &8» &cNie posiadasz uprawnien!" #Dla gracza if arg 1 is "lista": send "" send "&8»------- &eRekrutacjaNN &8-------«" send "" send " &8» &7Lista rekrutantow&8:" send "" loop {rekrutanci::*}: send " &8• &6%loop-value%" send "" send "&8»-----------------------------«" send "" if arg 1 is "pytania": send "" send "&8»------- &eRekrutacjaNN &8-------«" send "" send " &8» &7Pytania przy zgloszeniu&8:" send "" loop {pytania::*}: send " &8• &6%loop-value%" send "" send "&8»-----------------------------«" send "" if arg 1 is "dolacz": if {rekrutacja} is "&aOtwarta": if {rek.%player%.join} is not set: set {_player} to "%player%" add "%player%" to yaml list "Rekrutanci" from file "plugins/SzataNN/RekrutacjaNN/rekrutanci.yml" send " &8» &aDolaczyles do rekrutacji!" send " &8» &7Podazaj dalszym instrukcjąm!" add "%player%" to {rekrutanci::*} wait 25 tick set {rek.%player%.chat} to true set {rek.%player%.join} to false loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::1}%" send "" else: send " &8» &cWypelniles juz pytania!" else: send " &8» &cRekrutacja jest zamknieta!" if arg 1 is "sprawdz": if arg 2 is set: set {_pyt1} to yaml value "%{pytania::1}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" set {_pyt2} to yaml value "%{pytania::2}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" set {_pyt3} to yaml value "%{pytania::3}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" set {_pyt4} to yaml value "%{pytania::4}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" set {_pyt5} to yaml value "%{pytania::5}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" set {_pyt6} to yaml value "%{pytania::6}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" set {_pyt7} to yaml value "%{pytania::7}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%arg 2%.yml" send "" send "&8»------- &eRekrutacjaNN &8-------«" send "" send " &8• &7%{pytania::1}%&8: &6%{_pyt1}%" send " &8• &7%{pytania::2}%&8: &6%{_pyt2}%" send " &8• &7%{pytania::3}%&8: &6%{_pyt3}%" send " &8• &7%{pytania::4}%&8: &6%{_pyt4}%" send " &8• &7%{pytania::5}%&8: &6%{_pyt5}%" send " &8• &7%{pytania::6}%&8: &6%{_pyt6}%" send " &8• &7%{pytania::7}%&8: &6%{_pyt7}%" send "" send "&8»-----------------------------«" send "" on chat: if {rek.%player%.chat} is true: cancel event if {rek.%player%.pyt1} is not set: send "&6%{pytania::1}%&8: &7%message%" set yaml value "Nick" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%player%" set yaml value "%{pytania::1}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt1} to true wait 45 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::2}%" send "" else: if {rek.%player%.pyt2} is not set: send "&6%{pytania::2}%&8: &7%message%" set yaml value "%{pytania::2}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt2} to true wait 45 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::3}%" send "" else: if {rek.%player%.pyt3} is not set: send "&6%{pytania::3}%&8: &7%message%" set yaml value "%{pytania::3}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt3} to true wait 45 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::4}%" send "" else: if {rek.%player%.pyt4} is not set: send "&6%{pytania::4}%&8: &7%message%" set yaml value "%{pytania::4}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt4} to true wait 45 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::5}%" send "" else: if {rek.%player%.pyt5} is not set: send "&6%{pytania::5}%&8: &7%message%" set yaml value "%{pytania::5}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt5} to true wait 45 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::6}%" send "" else: if {rek.%player%.pyt6} is not set: send "&6%{pytania::6}%&8: &7%message%" set yaml value "%{pytania::6}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt6} to true wait 45 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7%{pytania::7}%" send "" else: if {rek.%player%.pyt7} is not set: send "&6%{pytania::7}%&8: &7%message%" set yaml value "%{pytania::7}%" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt7} to true wait 45 tick loop 50 times: send " " send "" send " &8» &7Dziekujemy za odpowiedzi!" send " &8» &aZgloszenie ukonczone!" add 1 to {score} set {rek.%player%.chat} to false send "" on load: set {rekrutacjann.toggler} to true set {lista_rek::*} to yaml list "rekrutanci" from file "plugins/SzataNN/RekrutacjaNN/rekrutanci.yml" if {rekrutacja} is not set: set {rekrutacja} to "&cZamknieta" set {pytania::1} to yaml value "pytanie 1" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {pytania::2} to yaml value "pytanie 2" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {pytania::3} to yaml value "pytanie 3" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {pytania::4} to yaml value "pytanie 4" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {pytania::5} to yaml value "pytanie 5" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {pytania::6} to yaml value "pytanie 6" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {pytania::7} to yaml value "pytanie 7" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {wymagania::1} to yaml value "wymaganie 1" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {wymagania::2} to yaml value "wymaganie 2" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {wymagania::3} to yaml value "wymaganie 3" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {wymagania::4} to yaml value "wymaganie 4" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {wymagania::5} to yaml value "wymaganie 5" from file "plugins/SzataNN/RekrutacjaNN/config.yml" if {load_config_rek} is not set: set {load_config_rek} to true #pytania set yaml value "pytanie 1" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Jak masz na imie?" set yaml value "pytanie 2" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Ile masz lat?" set yaml value "pytanie 3" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Czym sie interesujesz?" set yaml value "pytanie 4" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Ile mozesz spedzac godzin na serwerze?" set yaml value "pytanie 5" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Posiadasz teamspeak 3 lub discord?" set yaml value "pytanie 6" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Czemu chcesz zostac czlankiem administracji?" set yaml value "pytanie 7" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Opisz siebie w 2-3 zdaniach!" #Wymagania set yaml value "wymaganie 1" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Ts3/discord" set yaml value "wymaganie 2" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "16 lat (dowod)" set yaml value "wymaganie 3" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Konto facebook (prawdziwe)" set yaml value "wymaganie 4" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Minimum 4h dziennie" set yaml value "wymaganie 5" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "Doswiadczenie" #Inne send " §eRekrutacjaNN§8: §2Config zostal zaladowany!" to console