Skocz do zawartości
  • 0

Skrypt na top 10 graczy


Pytanie

Witam
Chciałbym skrypt na top 10 graczy na serwerze w gui. Chce, żeby tam było Top 10 rankingów Pvp, Top 10 kopaczy oraz top 10 kupujących rzeczy w itemshopie (jeśli się to jakoś da zrobić)

Posiadam na serwerze plugin funnyguilds to trochę komuś ułatwi sprawę.

Odnośnik do komentarza
https://skript.pl/temat/25331-skrypt-na-top-10-graczy/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Tylko, że coś nie działa
Jak zabije kogoś i wpisze top to pisze, ze nikt nikogo nie zabił :/

on death of player:
    attacker is player
    if {stats.killl::%attacker%} is not set:
        set {stats.killl::%attacker%} to 1
        stop
    add 1 to {stats.killl::%attacker%}
command /top [<integer=1>]:
    trigger:
        set {_strony} to rounded up (size of {stats.killl::*} / 54)
        if arg is between 1 and {_strony}:
            open chest with 6 rows named "&6Top kille &8(&3%arg%&8)" to player
            wait 2 tick
            loop {stats.kill::*}:
                set {_lista::%loop-index%} to loop-value
            set {_num} to size of {_lista::*}
            set {_max} to arg * 53 #54 slot -> przejście na kolejną stronę.
            set {_min} to {_max} - 52
            loop {_max} times:
                loop {_lista::*}:
                    if {_v.%loop-number%} is not set:
                        set {_v.%loop-number%} to loop-value
                        set {_n.%loop-number%} to loop-index
                    if loop-value is larger than {_v.%loop-number%}:
                        set {_v.%loop-number%} to loop-value
                        set {_n.%loop-number%} to loop-index
                delete {_lista::%{_n.%loop-number%}%}
            set {_i} to 0
            if (arg + 1) is larger than {_strony}:
                set player's current inventory's slot 53 to nether star named "&6Koniec" with lore "&aNie ma juz wiecej stron."
            else:
                set player's current inventory's slot 53 to nether star named "&6Nastepna strona." with lore "&6Przejdz na strone: &c%arg + 1%"
            loop {_max} times:
                loop-number is between {_min} and {_max}
                if loop-number <= {_num}:
                    set player's current inventory's slot {_i} to paper named "&6Miejsce: &c&l%loop-number%" with lore "&aNazwa: &6%{_n.%loop-number%}%||&aPunkty: &6%{_v.%loop-number%}%"
                    add 1 to {_i}
            stop
        send "&cBlad: &6Nikt jeszcze nikogo nie zabil."
        stop
on inventory click:
    if "%inventory name of player's current inventory%" contains "&6Top kille ":
        if slot is smaller than 0:
            stop
        cancel event
        if player's current inventory's slot slot is nether star:
            if name of player's current inventory's slot slot is "&6Nastepna strona.":
                set {_strona} to "%uncoloured inventory name of player's current inventory%"
                replace all "Top kille (" in {_strona} with ""
                replace all ")" in {_strona} with ""
                set {_strona} to {_strona} parsed as integer
                close player's inventory
                wait 2 tick
                execute player command "top %{_strona} + 1%"
                stop
command /fakekills:
    trigger:
        loop 150 times:
            set {stats.killl::wadawd%random integer between 0 and 1000%} to random integer between 0 and 100

Odnośnik do komentarza
https://skript.pl/temat/25331-skrypt-na-top-10-graczy/#findComment-168244
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...