# !Beta skrypt na rekrutacje! # !Zmiana informacji stanie rekrutacji z poziomu serwera (/rekru ustaw ): beta! # !Config: beta! # !Zgloszenia: beta! 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» &7Informacje dotyczace rekrutacji&8:" send " &8• &7%{info_1}%" send " &8• &7%{info_2}%" send " &8• &7%{info_3}%" send " &8• &7%{info_4}%" send " &8• &7%{info_5}%" send "" send " &8» &7Aby zglosic siebie do rekrutacji wpisz &e/rekru dolacz" send " &8» &7Zglosilo sie juz&8: &e%{score}% &7osob" send "" send "&8»------- &eRekrutacjaNN &8-------«" send "" #Dla administracji 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!" 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!" 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» &7Napisz na chacie swoje imie!" send "" else: send " &8» &4Wypelniles juz pytania!" on chat: if {rek.%player%.chat} is true: cancel event if {rek.%player%.pyt1} is not set: send "&6Imie&8: &7%message%" set yaml value "Nick" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%player%" set yaml value "Imie" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt1} to true wait 25 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7Napisz czym sie interesujesz!" send "" else: if {rek.%player%.pyt2} is not set: send "&6Zainteresowanie&8: &7%message%" set yaml value "Zainteresowanie" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt2} to true wait 25 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7Napisz swoj wiek!" send "" else: if {rek.%player%.pyt3} is not set: send "&6Wiek&8: &7%message%" set yaml value "Wiek" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt3} to true wait 25 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7Napisz nam cos o sobie (3-4 zdania)!" send "" else: if {rek.%player%.pyt4} is not set: send "&6Cos o sobie&8: &7%message%" set yaml value "Cos o sobie" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt4} to true wait 25 tick loop 50 times: send " " send "" send " &6Info &8» &7Na czas pytan nikt nie widzi twoich wiadomosci na chacie!" send "" send " &8» &7Napisz ile godzin dziennie mozesz spedzac na serwerze!" send "" else: if {rek.%player%.pyt5} is not set: send "&6Dostepny czas&8: &7%message%" set yaml value "Dostepny czas" from file "plugins/SzataNN/RekrutacjaNN/Zgloszenia/%player%.yml" to "%message%" set {rek.%player%.pyt5} to true wait 25 tick loop 50 times: send " " send "" send " &8» &7Dziekujemy za odpowiedzi!" send " &8» &aZgloszenie ukonczone!" set {rek.%player%.chat} to false send "" on load: set {lista_rek::*} to yaml list "rekrutanci" from file "plugins/SzataNN/RekrutacjaNN/rekrutanci.yml" if {rekrutacja} is not set: set {rekrutacja} to "&cZamknieta" set {info_1} to yaml value "info_1" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {info_2} to yaml value "info_2" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {info_3} to yaml value "info_3" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {info_4} to yaml value "info_4" from file "plugins/SzataNN/RekrutacjaNN/config.yml" set {info_5} to yaml value "info_5" from file "plugins/SzataNN/RekrutacjaNN/config.yml" if {load_config_rek} is not set: #set {load_config_rek} to true #Config info set yaml value "info_1" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "&6Do zmiany /plugins/SzataNN/RekrutacjaNN/config.yml (info_1)" set yaml value "info_2" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "&6Do zmiany /plugins/SzataNN/RekrutacjaNN/config.yml (info_2)" set yaml value "info_3" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "&6Do zmiany /plugins/SzataNN/RekrutacjaNN/config.yml (info_3)" set yaml value "info_4" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "&6Do zmiany /plugins/SzataNN/RekrutacjaNN/config.yml (info_4)" set yaml value "info_5" from file "plugins/SzataNN/RekrutacjaNN/config.yml" to "&6Do zmiany /plugins/SzataNN/RekrutacjaNN/config.yml (info_5)" #Inne send " §eRekrutacjaNN§8: §2Config zostal zaladowany!" to console