Skocz do zawartości
  • 0

Bugi w prostym scoreboardzie.


Cinu2421

Pytanie

on death:
    if event-entity is not player:
        stop
    broadcast "Gracz &c%victim% &fposypal sie na &cArenie! &7[&c+1 &fPkt.&7]"
    broadcast "Zabijaka byl gracz &c%attacker% &7[&c+1 &fPkt.&7]"
    add 1 to {Kille::%attacker%} 
    add 1 to {Dedy::%victim%}
function ScoreBoard(gracz: player):
    if {_gracz} is offline:
        stop
    wipe {_gracz}'s sidebar
    set name of sidebar of {_gracz} to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lTwoje Staty:" in sidebar of {_gracz} to 7
    set score "  " in sidebar of {_gracz} to 6
    set score "   %{Kolor}%&l» &f&lKille: &f%{Kille::%{_gracz}%}%" in sidebar of {_gracz} to 5
    set score "   %{Kolor}%&l» &f&lDedy: &f%{Dedy::%{_gracz}%}%" in sidebar of {_gracz} to 4
    set score "   %{Kolor}%&l» &f&lPoziom: &f%{DropLvl::%{_gracz}%}%" in sidebar of {_gracz} to 3
    set score "   %{Kolor}%&l» &f&lTrufle: &f%{Hajs::%{_gracz}%}%%{Kolor}%&l☂" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1

Dlaczego zamienia mi miejscami dedy z killami co kilka sekund (Chodzi o same wyniki)?

Mimo tego ze sc nie jest aktualizowany bo uproscilem go wlasnie do tego co widac w tym kodzie.

Dodam ze zaden inny skrypt nie uzywa sc

 

Skript 2.5. (forth beta)

skRayFall+v1.9.21

Skellett(Raczej najnowszy)

+sharpsk, skbee, skript mirror, sk query, misk (Wszystko najnowsze jakie mozna)

Odnośnik do komentarza
Udostępnij na innych stronach

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
function ScoreBoard(gracz: player):
    if {_gracz} is offline:
        stop
    wipe {_gracz}'s sidebar
    set name of sidebar of {_gracz} to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lTwoje Staty:" in sidebar of {_gracz} to 7
    set score "  " in sidebar of {_gracz} to 6
    set score "   %{Kolor}%&l» &f&lKille: &f%{Kille::%{_gracz}%}%" in sidebar of {_gracz} to 5
    set score "   %{Kolor}%&l» &f&lDedy: &f%{Dedy::%{_gracz}%}%" in sidebar of {_gracz} to 4
    set score "   %{Kolor}%&l» &f&lPoziom: &f%{DropLvl::%{_gracz}%}%" in sidebar of {_gracz} to 3
    set score "   %{Kolor}%&l» &f&lTrufle: &f%{Hajs::%{_gracz}%}%%{Kolor}%&l☂" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is offline:
        stop
    wipe {_gracz} 's sidebar
    set name of sidebar of {_gracz}  to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lTopki Graczy" in sidebar of {_gracz} to 7
    set score " "  in sidebar of {_gracz} to 6
    set score "  %{Kolor}%&l» &f&lKille: %{_TopPvp}%" in sidebar of {_gracz} to 5
    set score "  %{Kolor}%&l» &f&lDedy: %{_TopSamobojca}%" in sidebar of {_gracz} to 4
    set score "  %{Kolor}%&l» &f&lGornik: %{_TopGornik}%" in sidebar of {_gracz} to 3
    set score "  %{Kolor}%&l» &f&lBogacz: %{_TopHajs}%" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is offline:
        stop
    wipe {_gracz} 's sidebar
    set name of sidebar of {_gracz}  to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lOgolne" in sidebar of {_gracz} to 7
    set score " "  in sidebar of {_gracz} to 6
    set score "  %{Kolor}%&l» &f&lPing: %{_gracz}'s ping%" in sidebar of {_gracz} to 5
    set score "  %{Kolor}%&l» &f&lOnline: %amount of players%" in sidebar of {_gracz} to 4
    set score "  %{Kolor}%&l» &f&lEvent:" in sidebar of {_gracz} to 3
    set score "  %{Kolor}%&l» &f&lCosCos:" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is offline:
        stop
    wipe {_gracz}'s sidebar
    set name of sidebar of {_gracz} to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 7
    set score "%{Kolor}%&lScoreBoard" in sidebar of {_gracz} to 6
    set score " "  in sidebar of {_gracz} to 5
    set score "   &lAby ukryc" in sidebar of {_gracz} to 4
    set score "   &l tablice" in sidebar of {_gracz} to 3
    set score "   &l wpisz %{Kolor}%&l/sc" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is online:
        ScoreBoard({_gracz})
        

Tu jest ta dluzsza wersja 

Na tej krotszej po pewnym czasie przestalo zmieniac.

Czy moze po restarcie serwera sam juz nie wiem co zrobilem 

Edytowane przez Cinu2421
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
7 minut temu, Cinu2421 napisał:

Tak

Mógłbyś pokazać wcześniejszą wersję skryptu zawierającą automatyczne odświeżanie poprzez wywoływanie funkcji?

EDIT:

Dobra, dzięki panie jasnowidzu.

EDIT:

Chociaż czekaj, daj po prostu wcześniejszą wersję.

Edytowane przez Kormic
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
4 minuty temu, Kormic napisał:

Mógłbyś pokazać wcześniejszą wersję skryptu zawierającą automatyczne odświeżanie poprzez wywoływanie funkcji?

EDIT:

Dobra, dzięki panie jasnowidzu.

EDIT:

Chociaż czekaj, daj po prostu wcześniejszą wersję.

on join:
    wait 10 seconds
    ScoreBoard(player)  

function ScoreBoard(gracz: player):
    if {_gracz} is offline:
        stop
        
    if {TopPvp} is not set:
        set {_TopPvp} to "Brak"
    else:
        set {_TopPvp} to {TopPvp}
    if {TopSamobojca} is not set:
        set {_TopSamobojca} to "Brak"
    else:
        set {_TopSamobojca} to {TopSamobojca}
    if {TopGornik} is not set:
        set {TopGornik} to "Brak"
    else:
        set {_TopGornik} to {TopGornik}
    if {TopHajs} is not set:
        set {_TopHajs} to "Brak"
    else:
        set {_TopHajs} to {TopHajs}
    #replace all "{NICK}" with "%name of player%" in {_chat}
    if {_gracz} is offline:
        stop
    wipe {_gracz}'s sidebar
    set name of sidebar of {_gracz} to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lTwoje Staty:" in sidebar of {_gracz} to 7
    set score "  " in sidebar of {_gracz} to 6
    set score "   %{Kolor}%&l» &f&lKille: &f%{Kille::%{_gracz}%}%" in sidebar of {_gracz} to 5
    set score "   %{Kolor}%&l» &f&lDedy: &f%{Dedy::%{_gracz}%}%" in sidebar of {_gracz} to 4
    set score "   %{Kolor}%&l» &f&lPoziom: &f%{DropLvl::%{_gracz}%}%" in sidebar of {_gracz} to 3
    set score "   %{Kolor}%&l» &f&lTrufle: &f%{Hajs::%{_gracz}%}%%{Kolor}%&l☂" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is offline:
        stop
    wipe {_gracz} 's sidebar
    set name of sidebar of {_gracz}  to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lTopki Graczy" in sidebar of {_gracz} to 7
    set score " "  in sidebar of {_gracz} to 6
    set score "  %{Kolor}%&l» &f&lKille: %{_TopPvp}%" in sidebar of {_gracz} to 5
    set score "  %{Kolor}%&l» &f&lDedy: %{_TopSamobojca}%" in sidebar of {_gracz} to 4
    set score "  %{Kolor}%&l» &f&lGornik: %{_TopGornik}%" in sidebar of {_gracz} to 3
    set score "  %{Kolor}%&l» &f&lBogacz: %{_TopHajs}%" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is offline:
        stop
    wipe {_gracz} 's sidebar
    set name of sidebar of {_gracz}  to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 8
    set score "%{Kolor}%&lOgolne" in sidebar of {_gracz} to 7
    set score " "  in sidebar of {_gracz} to 6
    set score "  %{Kolor}%&l» &f&lPing: %{_gracz}'s ping%" in sidebar of {_gracz} to 5
    set score "  %{Kolor}%&l» &f&lOnline: %amount of players%" in sidebar of {_gracz} to 4
    set score "  %{Kolor}%&l» &f&lEvent:" in sidebar of {_gracz} to 3
    set score "  %{Kolor}%&l» &f&lCosCos:" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is offline:
        stop
    wipe {_gracz}'s sidebar
    set name of sidebar of {_gracz} to "%{Kolor}%&lLiteMc"
    set score "   " in sidebar of {_gracz} to 7
    set score "%{Kolor}%&lScoreBoard" in sidebar of {_gracz} to 6
    set score " "  in sidebar of {_gracz} to 5
    set score "   &lAby ukryc" in sidebar of {_gracz} to 4
    set score "   &l tablice" in sidebar of {_gracz} to 3
    set score "   &l wpisz %{Kolor}%&l/sc" in sidebar of {_gracz} to 2
    set score "&3" in sidebar of {_gracz} to 1
    wait 5 seconds
    if {_gracz} is online:
        ScoreBoard({_gracz})
        

To jest wszystko

Dzialac dzialalo, dopiero teraz zobaczylem ze to przeskakuje jak robilem topki i musialem sobie zmienne podbic na wieksze niz 0

Nie sugeruj sie wygladem wizualnym bo zaczalem ten sc kiedys robic pozniej przestalem i teraz wracam zeby to dokonczyc i zrobic jakos normalniej

Edytowane przez Cinu2421
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
19 godzin temu, PanMaruda napisał:

nie rób scoreboarda w skripcie

weź sobie dobry asynchroniczny plugin (np. scoreboard revision albo TAB premium) i użyj placeholderów ze zmiennymi ze skripta.

Podobno sc w szkielecie i rayfallu sa zle napisane teraz uzywam z skbee ale nie sprawdzalem czy dobrze dziala

Mylisz ze mimo wszystko powinienem z tego zrezygnowac pobrac papi i do tego jeszcze jakis dodatek sk o ile jest wymagany?

Odnośnik do komentarza
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ę...