Gdy reloaduje to jest napisane ze 0 błędów, ale działa poprawnie.
Kod skryptu:
options:
world name:Standard
countdown:3
variables:{duel::status::%player%}="before"{duel::player::%player%::kill}=0{duel::player::%player%::death}=0
on damage of player:if attacker is a player:if attacker is in world "{@world name}":if{duel::status::%attacker%} is "before":
cancel event
if{duel::status::%victim%} is "before":if{duel::opponent::%victim%} is "%attacker%":set{duel::status::%attacker%} to "countdown"set{duel::status::%victim%} to "countdown"set{duel::opponent::%victim%} to "%attacker%"set{_sec%attacker%} to {@countdown}
loop {@countdown} times:if{duel::status::%attacker%} is "countdown":
send "&a&lPrzygotuj sie! Walka z &6&l%victim% &a&lZacznie sie za &6&l%{_sec%attacker%}% &a&lsek!" to attacker
send "&a&lPrzygotuj sie! Walka z &6&l%attacker% &a&lZacznie sie za &6&l%{_sec%attacker%}% &a&lsek!" to victim
play raw sound "note.pling" at attacker with pitch 1 volume 5
play raw sound "note.pling" at victim with pitch 1 volume 5
wait 1 seconds
remove 1 from {_sec%attacker%}else:
exit loop
if{duel::status::%attacker%} is "countdown":
play raw sound "note.pling" at attacker with pitch 2 volume 5
play raw sound "note.pling" at victim with pitch 2 volume 5set{duel::status::%attacker%} to "during"set{duel::status::%victim%} to "during"elseif{duel::opponent::%victim%} is not "%attacker%":if{duel::opponent::%attacker%} is not "%victim%":
send "&2Zaproszenie do walki zostalo wyslane do gracza &6&l%victim%" to attacker
send "&2Zostales zaproszony do walki przez gracza &6&l%attacker%" to victim
set{duel::opponent::%attacker%} to "%victim%"elseif{duel::opponent::%attacker%} is "%victim%":
send "&2Ten gracz otrzymal juz zaproszenie do walki!" to attacker
elseif{duel::status::%victim%} is "during" or "countdown":
send "&2Ten gracz jest juz podczas walki!"if{duel::status::%attacker%} is "countdown":
cancel event
if{duel::status::%attacker%} is "during":if"%victim%" is not "%{duel::opponent::%attacker%}%":
cancel event
on death of player:if attacker is a player:if attacker is in world "{@world name}":
launch flickering trailing ball firework colored white at attacker timed 2
clear drops
set{duel::status::%attacker%} to "before"set{duel::status::%victim%} to "before"set{duel::opponent::%victim%} to "none"set{duel::opponent::%attacker%} to "none"
add 1 to {duel::player::%attacker%::kill}
add 1 to {duel::player::%victim%::death}
reveal all players to attacker
reveal all players to victim
send "&6&l%attacker% &c&lzabil &6&l%victim% &7&l(%attacker's health%&4&l❤&7&l)" to all players in world "{@world name}"
heal attacker
on quit:
reveal all players to {duel::status::%{duel::opponent::%player%}%}set{duel::status::%player%} to "before"set{duel::status::%{duel::opponent::%player%}%} to "before"set{duel::opponent::%{duel::opponent::%player%}%} to "none"set{duel::opponent::%player%} to "none"
every 1 seconds:
loop all players:if loop-player is in world "{@world name}":
display board named " &2STATYSTYKI" to loop-player
make score "&eZabojstwa:" in board of loop-player to {duel::player::%loop-player%::kill}
make score "&eZgony:" in board of loop-player to {duel::player::%loop-player%::death}
move display of loop-player to sidebar
Pytanie
Ciatek 0
Gdy reloaduje to jest napisane ze 0 błędów, ale działa poprawnie.
Kod skryptu:
Edytowane przez Ixidi[code]
Odnośnik do komentarza
https://skript.pl/temat/25169-poprawi-kto%C5%9B-skrypt/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi