Skocz do zawartości
  • 0

Poprawa skryptu na AntyLogout


_SmileCraft_
 Udostępnij

Pytanie

Cześć! Poprawi mi ktoś skrypt tak że jak gracz uderzy gracza jeszcze raz to odliczanie zaczyna się od nowa. Z góry dziękuje za pomoc osobie która mi to zrobi.

Kod skryptu:

Spoiler
on join:
    set {antylogout::walka::%player%} to false

on damage of player:
    if attacker is a player:
        if {antylogout::walka::%attacker%} is false:
            if {antylogout::walka::%victim%} is false:    
                set {antylogout::walka::%attacker%} to true
                set {antylogout::walka::%victim%} to true
                display "&cANTY-LOG" on bossbar with 100 percent by 10 seconds for victim
                display "&cANTY-LOG (20 sek.)" on bossbar with 100 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (19 sek.)" on bossbar with 95 percent by 10 seconds for victim
                display "&cANTY-LOG (19 sek.)" on bossbar with 95 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (18 sek.)" on bossbar with 90 percent by 10 seconds for victim
                display "&cANTY-LOG (18 sek.)" on bossbar with 90 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (17 sek.)" on bossbar with 85 percent by 10 seconds for victim
                display "&cANTY-LOG (17 sek.)" on bossbar with 85 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (16 sek.)" on bossbar with 80 percent by 10 seconds for victim
                display "&cANTY-LOG (16 sek.)" on bossbar with 80 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (15 sek.)" on bossbar with 75 percent by 10 seconds for victim
                display "&cANTY-LOG (15 sek.)" on bossbar with 75 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (14 sek.)" on bossbar with 70 percent by 10 seconds for victim
                display "&cANTY-LOG (14 sek.)" on bossbar with 70 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (13 sek.)" on bossbar with 65 percent by 10 seconds for victim
                display "&cANTY-LOG (13 sek.)" on bossbar with 65 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (12 sek.)" on bossbar with 60 percent by 10 seconds for victim
                display "&cANTY-LOG (12 sek.)" on bossbar with 60 percent by 10 seconds for attacker
                wait 1 tick
                display "&cANTY-LOG (11 sek.)" on bossbar with 55 percent by 10 seconds for victim
                display "&cANTY-LOG (11 sek.)" on bossbar with 55 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (10 sek.)" on bossbar with 50 percent by 10 seconds for victim
                display "&cANTY-LOG (10 sek.)" on bossbar with 50 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (9 sek.)" on bossbar with 45 percent by 10 seconds for victim
                display "&cANTY-LOG (9 sek.)" on bossbar with 45 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (8 sek.)" on bossbar with 40 percent by 10 seconds for victim
                display "&cANTY-LOG (8 sek.)" on bossbar with 40 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (7 sek.)" on bossbar with 35 percent by 10 seconds for victim
                display "&cANTY-LOG (7 sek.)" on bossbar with 35 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (6 sek.)" on bossbar with 30 percent by 10 seconds for victim
                display "&cANTY-LOG (6 sek.)" on bossbar with 30 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (5 sek.)" on bossbar with 25 percent by 10 seconds for victim
                display "&cANTY-LOG (5 sek.)" on bossbar with 25 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (4 sek.)" on bossbar with 20 percent by 10 seconds for victim
                display "&cANTY-LOG (4 sek.)" on bossbar with 20 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (3 sek.)" on bossbar with 15 percent by 10 seconds for victim
                display "&cANTY-LOG (3 sek.)" on bossbar with 15 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (2 sek.)" on bossbar with 10 percent by 10 seconds for victim
                display "&cANTY-LOG (2 sek.)" on bossbar with 10 percent by 10 seconds for attacker
                wait 1 second
                display "&cANTY-LOG (1 sek.)" on bossbar with 5 percent by 10 seconds for victim
                display "&cANTY-LOG (1 sek.)" on bossbar with 5 percent by 10 seconds for attacker
                wait 1 second
                display "&7Mozesz sie wylogowac" on bossbar with 5 percent by 1 seconds for victim
                display &7Mozesz sie wylogowac" on bossbar with 5 percent by 1 seconds for attacker
                set {antylogout::walka::%attacker%} to false
                set {antylogout::walka::%victim%} to false

 

//Kod pakuję do spoilera ~Derpy

Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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