MrDivo 0 Opublikowano 20 października 2021 Udostępnij Opublikowano 20 października 2021 czesc, pisze poniewaz mam prosbe aby ktos mi napisal skrypt podobny do tego co jest na filmiku czas 1:48. wystarczy tylko ze tabela bedzie ciagle widoczna i na komende mozna resetowac licznik do 0 Blocks: 0 do min. 100M (chce żeby licznik sie nie zerował po wyłaczeniu serwera) Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 hbrt 41 Opublikowano 22 października 2021 Udostępnij Opublikowano 22 października 2021 on break of any blocks: add 1 to {bloki::%player%} every 5 seconds: set {topka::*} to createTop("bloki", 10, "&7[INDEX] &6[PLAYER]&7: &e[VALUE]") on placeholderapi placeholder request for the prefix "topka": if the identifier is "bloki": set the result to "%{topka::*}%" #dodaj placeholder na scoreboardzie {topka_bloki} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} zastosowałem tutaj funkcję pyraTop Reborn nie wiem czy działa ale sprawdź MrDivo 1 Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313175 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MrDivo 0 Opublikowano 24 października 2021 Autor Udostępnij Opublikowano 24 października 2021 (edytowane) W dniu 22.10.2021 o 22:32, hbrt napisał: on break of any blocks: add 1 to {bloki::%player%} every 5 seconds: set {topka::*} to createTop("bloki", 10, "&7[INDEX] &6[PLAYER]&7: &e[VALUE]") on placeholderapi placeholder request for the prefix "topka": if the identifier is "bloki": set the result to "%{topka::*}%" #dodaj placeholder na scoreboardzie {topka_bloki} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} zastosowałem tutaj funkcję pyraTop Reborn nie wiem czy działa ale sprawdź W 1 i 5 linice pokazuje mi ze jest błąd on break of any blocks: on placeholderapi placeholder request for the prefix "topka": Edytowane 24 października 2021 przez MrDivo Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313242 Udostępnij na innych stronach Więcej opcji udostępniania...
0 hbrt 41 Opublikowano 24 października 2021 Udostępnij Opublikowano 24 października 2021 (edytowane) 6 godzin temu, MrDivo napisał: W 1 i 5 linice pokazuje mi ze jest błąd na przyszłość wysyłaj ss błędów, lub ich kopię z konsoli on block break: add 1 to {bloki::%player%} every 5 seconds: set {topka::*} to createTop("bloki", 10, "&7[INDEX] &6[PLAYER]&7: &e[VALUE]") on placeholder request with prefix "topka": if the identifier is "bloki": set the result to "%{topka::*}%" #dodaj placeholder na scoreboardzie {topka_bloki} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} spróbuj teraz Edytowane 24 października 2021 przez hbrt Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313280 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MrDivo 0 Opublikowano 24 października 2021 Autor Udostępnij Opublikowano 24 października 2021 W dniu 24.10.2021 o 21:21, hbrt napisał: na przyszłość wysyłaj ss błędów, lub ich kopię z konsoli on block break: add 1 to {bloki::%player%} every 5 seconds: set {topka::*} to createTop("bloki", 10, "&7[INDEX] &6[PLAYER]&7: &e[VALUE]") on placeholder request with prefix "topka": if the identifier is "bloki": set the result to "%{topka::*}%" #dodaj placeholder na scoreboardzie {topka_bloki} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} spróbuj teraz [Skript] Reloading kop.sk... can't understand this event: 'on placeholder request with prefix "topka" (kop.sk, line 7: on placeholder request with prefix "topka":') [Skript] Encountered 1 error while reloading kop.sk! W dniu 22.10.2021 o 22:32, hbrt napisał: on break of any blocks: add 1 to {bloki::%player%} every 5 seconds: set {topka::*} to createTop("bloki", 10, "&7[INDEX] &6[PLAYER]&7: &e[VALUE]") on placeholderapi placeholder request for the prefix "topka": if the identifier is "bloki": set the result to "%{topka::*}%" #dodaj placeholder na scoreboardzie {topka_bloki} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} musze wpisac komende? /scoreboard objectives add topka ... i co dalej Łączę posty. Notatka dodana przez Glicz Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313286 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 26 października 2021 Udostępnij Opublikowano 26 października 2021 W dniu 24.10.2021 o 22:06, MrDivo napisał: [Skript] Reloading kop.sk... can't understand this event: 'on placeholder request with prefix "topka" (kop.sk, line 7: on placeholder request with prefix "topka":') [Skript] Encountered 1 error while reloading kop.sk! Aby zrozumieć co tutaj piszę, wystarczy podstawowy angielski. Skrypt wymaga dodatku skript-placeholders, dodatkowo powinno być 'on placeholderapi placeholder request for the prefix "topka":' Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313324 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MrDivo 0 Opublikowano 26 października 2021 Autor Udostępnij Opublikowano 26 października 2021 Godzinę temu, Glicz napisał: Aby zrozumieć co tutaj piszę, wystarczy podstawowy angielski. Skrypt wymaga dodatku skript-placeholders, dodatkowo powinno być 'on placeholderapi placeholder request for the prefix "topka":' Działa! dzięki a jaką komendę musze wpisać aby było widać ta tabele? Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313327 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 26 października 2021 Udostępnij Opublikowano 26 października 2021 14 minut temu, MrDivo napisał: Działa! dzięki a jaką komendę musze wpisać aby było widać ta tabele? musisz mieć do tego specjalny plugin na scoreboard, zwykłym tego nie zrobisz Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313328 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MrDivo 0 Opublikowano 26 października 2021 Autor Udostępnij Opublikowano 26 października 2021 17 minut temu, Glicz napisał: musisz mieć do tego specjalny plugin na scoreboard, zwykłym tego nie zrobisz mam tylko nwm co wpisac aby pokazywało mi wynik tego skryptu. Wstawiam kod w code. Notatka dodana przez Glicz Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313329 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 26 października 2021 Udostępnij Opublikowano 26 października 2021 8 minut temu, MrDivo napisał: mam tylko nwm co wpisac aby pokazywało mi wynik tego skryptu. W linijkę, w której chcesz aby było to wyświetlane wpisz '%topka_bloki%' Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313330 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MrDivo 0 Opublikowano 27 października 2021 Autor Udostępnij Opublikowano 27 października 2021 (edytowane) 17 godzin temu, Glicz napisał: W linijkę, w której chcesz aby było to wyświetlane wpisz '%topka_bloki%' da sie jakos ustawic komende ktory by resetowała wynik na 0? i czy da sie zrobic reset tej tabeli? Edytowane 27 października 2021 przez MrDivo Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313332 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 27 października 2021 Udostępnij Opublikowano 27 października 2021 5 godzin temu, MrDivo napisał: da sie jakos ustawic komende ktory by resetowała wynik na 0? i czy da sie zrobic reset tej tabeli? on block break: add 1 to {bloki::%player%} on placeholder request with prefix "topka": if the identifier is "bloki": set the result to "%createTop(""bloki"", 10, ""&7[INDEX] &6[PLAYER]&7: &e[VALUE]"")%" command /cleartop: trigger: clear {bloki::*} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} Chodzi ci o coś takiego? Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313344 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MrDivo 0 Opublikowano 27 października 2021 Autor Udostępnij Opublikowano 27 października 2021 33 minuty temu, Glicz napisał: on block break: add 1 to {bloki::%player%} on placeholder request with prefix "topka": if the identifier is "bloki": set the result to "%createTop(""bloki"", 10, ""&7[INDEX] &6[PLAYER]&7: &e[VALUE]"")%" command /cleartop: trigger: clear {bloki::*} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} Chodzi ci o coś takiego? Tak, tylko ta 4 linike trzeba było zmienic na to co pisales wczesniej na "on placeholderapi placeholder request for the prefix "topka":" i wszystko działa ja powinno. Dzięki bardzo za pomoc! i @hbrt tez Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313345 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 27 października 2021 Udostępnij Opublikowano 27 października 2021 Zlecenie zostało wykonane. Odnośnik do komentarza https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/#findComment-313347 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
MrDivo 0
czesc, pisze poniewaz mam prosbe aby ktos mi napisal skrypt podobny do tego co jest na filmiku czas 1:48.
wystarczy tylko ze tabela bedzie ciagle widoczna i na komende mozna resetowac licznik do 0
Blocks: 0 do min. 100M (chce żeby licznik sie nie zerował po wyłaczeniu serwera)
Odnośnik do komentarza
https://skript.pl/temat/50621-licznik-wszystkich-zniszczonych-blok%C3%B3w/Udostępnij na innych stronach
13 odpowiedzi na to pytanie
Rekomendowane odpowiedzi