Witam, mam taki mały skromny skrypcik na turbodropik, prosiłbym o zmiane w nim:
1. Jesli wpisze np. /turbodrop 3600 to da turbodrop na godzine i bedzie czas turbodropa godzina 1 a potem wiadomo np. 59minut 30 sekund itd itp...
Dawanie turbodropu:
command /turbodrop [<number>]:
permission: *
permission message: &4Blad: &cNie posiadasz permisji
trigger:
if arg-1 is set:
loop all players:
set {turbo::%loop-player%} to number-arg
send loop-players title "&6&lTurbo&e&lDrop" with subtitle "&7Caly serwer dostal &6&lTurbo&e&lDrop &7na &6%{turbo::%loop-player%}% sek" for 3 seconds
stop
else:
send "&4Blad: &cMusisz podac czas"
stop
Odliczanie:
on every seconds:
loop all players:
if {turbo::%loop-player%} > 0:
set action bar of loop-player to "&7( &3&lObecnie trwa: &6&lTurboDrop &e&l%{turbo::%loop-player%}% sekund&7 )"
remove 1 from {turbo::%loop-player%}
if "%inventory name of loop-player's current inventory%" is "&2&lDrop z kamienia!":
set loop-player's current inventory's slot 34 to diamond pickaxe named "&8» &6&lTurbo&e&lDrop &8«" with lore "&8» &7Status: &2Wlaczony||&8» &7Zakonczy sie za: &c%{turbo::%loop-player%}% sekund"
wait 1 seconds
if {turbo::%loop-player%} = 0:
stop
Pytanie
Wariat25 0
Witam, mam taki mały skromny skrypcik na turbodropik, prosiłbym o zmiane w nim:
1. Jesli wpisze np. /turbodrop 3600 to da turbodrop na godzine i bedzie czas turbodropa godzina 1 a potem wiadomo np. 59minut 30 sekund itd itp...
Dawanie turbodropu:
Odliczanie:
on every seconds: loop all players: if {turbo::%loop-player%} > 0: set action bar of loop-player to "&7( &3&lObecnie trwa: &6&lTurboDrop &e&l%{turbo::%loop-player%}% sekund&7 )" remove 1 from {turbo::%loop-player%} if "%inventory name of loop-player's current inventory%" is "&2&lDrop z kamienia!": set loop-player's current inventory's slot 34 to diamond pickaxe named "&8» &6&lTurbo&e&lDrop &8«" with lore "&8» &7Status: &2Wlaczony||&8» &7Zakonczy sie za: &c%{turbo::%loop-player%}% sekund" wait 1 seconds if {turbo::%loop-player%} = 0: stop
Edytowane przez LeQuLaUsuwam formatowanie.
Wstawiam w code.
Odnośnik do komentarza
https://skript.pl/temat/37027-odliczanie-czasu/Udostępnij na innych stronach
5 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.