Skocz do zawartości
  • 0

Liczenie zabitych mobów, nagroda za zabicie


SzlugPL
 Udostępnij

Pytanie

Pomoże ktoś? ten skrypt nie działa nwm gdzie poprawić... /licznik nie liczy zabitych mobów... nawet nagrody nie dostaje za zabicie...

on death of creature:
    attacker is player
    add 1 to {kills::%attacker%}
    if {kills::%attacker%} = 10:
        give 1 diamond to attacker
    if {kills::%attacker%} = 20:
        give 1 diamond sword to attacker
    if {kills::%attacker%} = 30:
        give 2 enchanted golden apple to attacker
#i tak dalej..

command /licznik:
    trigger:
        if executor is player:
            send "&8-> &7Zabite moby: &a%{kills::%player%}%"
            stop
        else:
            send "&cONLY PLAYER!" to console
            stop
            
variables:
    {kills::%player%} = 0

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

Rekomendowane odpowiedzi

  • 0
sk reload misje.sk
[19:58:55 INFO]: [Skript] Reloading misje.sk...
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 63: if victim is a zombie:')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 64: add 1 to {moby::%attacker%}')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (misje.sk, line 65: if victim is a creeper:')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 66: add 1 to {moby::%attacker%}')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 67: if {moby::%attacker%} is <= 10:')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 68: give 1 diamond to attacker')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found 8 spaces (misje.sk, line 69: if {moby::%attacker%} is <= 20:')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 70: give 2 diamond to attacker')
[19:58:55 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (misje.sk, line 62: if attacker is a player:')
[19:58:55 ERROR]: indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 74: send "Zabite moby: %{moby::%player%}%" to player')
[19:58:55 INFO]: [Skript] Encountered 9 errors while reloading misje.sk!
 
 
#Tak posiadam te 2 pluginy na skrypty
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
sk reload misje.sk
[20:18:46 INFO]: [Skript] Reloading misje.sk...
[20:18:46 ERROR]: indentation error: indent must only consist of either spaces or tabs, but not mixed (found '->____' [-> = tab, _ = space, ? = other whitespace]) (misje.sk, line 62: if attacker is a player:')
[20:18:46 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (misje.sk, line 63: if victim is a zombie:')
[20:18:46 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (misje.sk, line 64: add 1 to {moby::%attacker%}:')
[20:18:46 ERROR]: indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (misje.sk, line 72: send "Zabite moby: %{moby::%player%}%" to player')
[20:18:46 ERROR]: can't understand this condition: 'add 1 to {moby::%attacker%}' (misje.sk, line 64: add 1 to {moby::%attacker%}:')
[20:18:46 INFO]: [Skript] Encountered 3 errors while reloading misje.sk!
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Godzinę temu, konanx napisał:

Masz wytabowane Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Co z tego że wytabowane  jak jest źle?

Godzinę temu, konanx napisał:

Masz wytabowane Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!

Tu masz dobre

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

  • 0

@Bahbros @konanx @kaol48s 

sk reload costam.sk
[19:43:34 INFO]: [Skript] Reloading costam.sk...
[19:43:34 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (costam.sk, line 4: if attacker is a player:')
[19:43:34 INFO]: [Skript] Successfully reloaded costam.sk.
zauważyłem że licznik nie liczy zabitych szkieletów,pajonków, pigzombie...
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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