aliases: welna = 35:0 on rightclick: name of clicked entity is "Urzednik": set {_p} to "%player%" parsed as offlineplayer open chest with 4 rows named "Imie" to {_p} loop 36 times: set {_n::*} to yml list "imiona" from file "plugins/Skript/scripts/dowody/config.yml" set {_l} to loop-number set {_d} to {_l}-1 format slot {_d} of {_p} with welna named "&a%{_n::%{_l}%}%" to close then run [ set {firstName::%{_p}%} to {_n::%{_l}%} ]->[ execute console command "dowod %{_p}% nazwisko" ] command /dowod []: trigger: set {_p} to offlineplayer-arg arg 2 is not set: open chest with 4 rows named "Imie" to {_p} loop 36 times: set {_n::*} to yml list "imiona" from file "plugins/Skript/scripts/dowody/config.yml" wait 1 tick set {_l} to loop-number set {_d} to {_l}-1 format slot {_d} of {_p} with welna named "&a%{_n::%{_l}%}%" to close then run [ set {firstName::%{_p}%} to {_n::%{_l}%} ]->[execute console command "dowod %{_p}% nazwisko"] arg 2 is "nazwisko": open chest with 4 rows named "Nazwisko" to {_p} loop 36 times: set {_n::*} to yml list "nazwiska" from file "plugins/Skript/scripts/dowody/config.yml" wait 1 tick set {_l} to loop-number set {_d} to {_l}-1 format slot {_d} of {_p} with welna named "&a%{_n::%{_l}%}%" to close then run [ set {lastName::%{_p}%} to {_n::%{_l}%} ]->[ execute console command "dowod %{_p}% wiek" ] arg 2 is "wiek": set {signMode::%{_p}%} to true loop 5 times: send "&aMasz %5 - loop-number% sekundy na podanie wieku!" to {_p} wait 1 second {age::%player%} is set: execute console command "dowod %{_p}% miasto" else: send "&cNie wybrales imienia! Proces rejestracji anulowany!" to {_p} arg 2 is "miasto": open chest with 4 rows named "Nazwisko" to {_p} loop 36 times: set {_n::*} to yml list "miasta" from file "plugins/Skript/scripts/dowody/config.yml" wait 1 tick set {_l} to loop-number set {_d} to {_l}-1 format slot {_d} of {_p} with welna named "&a%{_n::%{_l}%}%" to close then run [ set {city::%{_p}%} to {_n::%{_l}%} ]->[ execute console command "dowod %{_p}% kup" ] arg 2 is "kup": {_p}'s balance >= 100: #cena dowodu remove 100 from {_p}'s balance give paper named "&fDOWOD OSOBISTY" with lore "&aImie: %{firstName::%{_p}%}%||&aNazwisko: %{lastName::%{_p}%}%||&aWiek: %{age::%{_p}%}%||&aMiejsce zamieszkania: %{city::%{_p}%}%" to {_p} on chat: {signMode::%player%} is true: set {_n} to "%message%" parsed as number {_n} is set: set {age::%player%} to {_n}