Skocz do zawartości
  • 0

Świecenie postaci po zabiciu innego gracza.


Pytanie

Witam, jak wrzucić do tego skryptu aby po zabiciu innego gracza atakujący się świecił do czasu aż ktoś inny go nie zabije. Tak jak z czaszkami.

Oczywiście po zabiciu przez gracza pokojowego gracza oraz gdy inny gracz zabije gracza z czaszką. 

skrypt:

Spoiler

options:
    czas: 3600
on death:
    if victim and attacker is a player:
        if {skull::%victim%} is set:
            clear {skull::%victim%}
            execute console command "eco give %attacker% 50"
            send subtitle "&eZabiłeś gracza z czaszką! &a+$50" to attacker
            broadcast "&aGracz &a%attacker% &azabił agresywnego gracza &6GRATULACJE! &a &aNagroda: &a+50$"
        else:
            set {skull::%attacker%} to true
            execute console command "eco take %attacker% 50"
            send title "☠" with subtitle "&eZabiłeś pokojowego gracza! &c-$50" to attacker
            broadcast "&cGracz &c%attacker% &czabił pokojowego gracza &c &ckara&c: &c-50$ &ci &cczaszka"
            set {cd::skull::%attacker%} to now
on placeholderapi request for prefix "skript":
    if the identifier is "czaszka":
        if {skull::%player%} is set:                  
            set the result to "☠"
        else:
            set the result to ""
on damage:
    if {skull::%attacker%} is true:
        if difference between {cd::skull::%attacker%} and now is bigger than {@czas} seconds:
            clear {skull::%attacker%}
command /czaszki:
    trigger:
        send "&eLista osób z czaszką:"
        loop {skull::*}:
            add loop-index to {_s::*}
        send "%{_s::*}%"

Próbowałem sam coś zdziałać ale nie rozumiem tego:

Spoiler

[23:44:36] [Server thread/INFO]: [Skript] Reloading czaszki.sk...
[23:44:36] [Server thread/INFO]: Line 11: (czaszki.sk)
[23:44:36] [Server thread/INFO]:     Use 'attacker' and/or 'victim' in damage/death events
[23:44:36] [Server thread/INFO]:     Line: set glowing of player to false
[23:44:36] [Server thread/INFO]:
[23:44:36] [Server thread/INFO]: Line 14: (czaszki.sk)
[23:44:36] [Server thread/INFO]:     Use 'attacker' and/or 'victim' in damage/death events
[23:44:36] [Server thread/INFO]:     Line: set glowing of player to true
[23:44:36] [Server thread/INFO]:
[23:44:36] [Server thread/WARN]: [PlaceholderAPI] Failed to load expansion skript. Identifier is already in use.
[23:44:36] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading czaszki.sk! (167ms)

Tutaj fota tego co kombinowałem: https://imgur.com/a/3p0virJ

 

JUŻ NIE WAŻNE. PORADZIŁEM SOBIE SAM:

Spoiler

options:
    czas: 1000000
on death:
    if victim and attacker is a player:
        if {skull::%victim%} is set:
            clear {skull::%victim%}
            execute console command "effect clear %victim% minecraft:glowing"
            execute console command "eco give %attacker% 50"
            send subtitle "&eZabiłeś gracza z czaszką! &a+$50" to attacker
            broadcast "&aGracz &a%attacker% &azabił agresywnego gracza &6GRATULACJE! &a &aNagroda: &a+50$"
        else:
            set {skull::%attacker%} to true
            execute console command "effect give %attacker% minecraft:glowing 1000000"
            execute console command "eco take %attacker% 50"
            send title "☠" with subtitle "&eZabiłeś pokojowego gracza! &c-$50" to attacker
            broadcast "&cGracz &c%attacker% &czabił pokojowego gracza &c &ckara&c: &c-50$ &ci &cczaszka"
            set {cd::skull::%attacker%} to now
            set glowing of {skull::%attacker%} to true
on placeholderapi request for prefix "skript":
    if the identifier is "czaszka":
        if {skull::%player%} is set:                  
            set the result to "☠"
        else:
            set the result to ""
on damage:
    if {skull::%attacker%} is true:
        if difference between {cd::skull::%attacker%} and now is bigger than {@czas} seconds:
            clear {skull::%attacker%}
command /czaszki:
    trigger:
        send "&eLista osób z czaszką:"
        loop {skull::*}:
            add loop-index to {_s::*}
        send "%{_s::*}%"

 

Edytowane przez TalibKweli25
Poradziłem sobie z problemem sam.
Odnośnik do komentarza
https://skript.pl/temat/54956-%C5%9Bwiecenie-postaci-po-zabiciu-innego-gracza/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

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ę...