msg: &cTnT oraz Creepery dostępne są w godzinach od (time-on) do (time-off)
# KOMUNIKAT. ZMIENNE: (time-on) = Godzina włączenia TNT / (time-on) = Godzina wylączenia TNT
check: 30 # CZAS W SEKUNDACH, CO ILE MA SPRAWDZAĆ AKTUALNĄ GODZINĘ
tnt-set-on: 7 # O KÓREJ GODZINIE MA ZOSTAĆ WŁĄCZONE TNT (MINUT NIE MA!)
tnt-set-off: 23 # O KTÓREJ GODZINE MA ZOSTAĆ WYŁĄCZONE TNT (MINUT NIE MA!)
# ------------------- #
# KOD SKRYPTU #
# ------------------- #
every {@check} second:
set {_check.time} to "%hour%" parsed as number <----- tu bład mi pokazuje
if {timetnt} is false:
if {_check.time} is equal to {@tnt-set-on}:
set {timetnt} to true
if {timetnt} is true:
if {_check.time} is equal to {@tnt-set-off}:
set {timetnt} to false
on rightclick with a tnt:
if {timetnt} is false:
cancel event
set {_msg} to "{@msg}"
replace all "(time-on)" with "{@tnt-set-on}" in {_msg}
replace all "(time-off)" with "{@tnt-set-off}" in {_msg}
send "{@tag} %{_msg}%"
on place tnt:
if {timetnt} is false:
cancel event
set {_msg} to "{@msg}"
replace all "(time-on)" with "{@tnt-set-on}" in {_msg}
replace all "(time-off)" with "{@tnt-set-off}" in {_msg}
send "{@tag} %{_msg}%"
on explode:
if {timetnt} is false:
cancel event
Pytanie
jndooo 9
on load:
if {timetnt} is not set:
set {timetnt} to true
# ------------------- #
# KONFIGURACJA #
# ------------------- #
options:
tag: &6[&eTimeTnT&6] # PREFIX WIADOMOŚCI
msg: &cTnT oraz Creepery dostępne są w godzinach od (time-on) do (time-off)
# KOMUNIKAT. ZMIENNE: (time-on) = Godzina włączenia TNT / (time-on) = Godzina wylączenia TNT
check: 30 # CZAS W SEKUNDACH, CO ILE MA SPRAWDZAĆ AKTUALNĄ GODZINĘ
tnt-set-on: 7 # O KÓREJ GODZINIE MA ZOSTAĆ WŁĄCZONE TNT (MINUT NIE MA!)
tnt-set-off: 23 # O KTÓREJ GODZINE MA ZOSTAĆ WYŁĄCZONE TNT (MINUT NIE MA!)
# ------------------- #
# KOD SKRYPTU #
# ------------------- #
every {@check} second:
set {_check.time} to "%hour%" parsed as number <----- tu bład mi pokazuje
if {timetnt} is false:
if {_check.time} is equal to {@tnt-set-on}:
set {timetnt} to true
if {timetnt} is true:
if {_check.time} is equal to {@tnt-set-off}:
set {timetnt} to false
on rightclick with a tnt:
if {timetnt} is false:
cancel event
set {_msg} to "{@msg}"
replace all "(time-on)" with "{@tnt-set-on}" in {_msg}
replace all "(time-off)" with "{@tnt-set-off}" in {_msg}
send "{@tag} %{_msg}%"
on place tnt:
if {timetnt} is false:
cancel event
set {_msg} to "{@msg}"
replace all "(time-on)" with "{@tnt-set-on}" in {_msg}
replace all "(time-off)" with "{@tnt-set-off}" in {_msg}
send "{@tag} %{_msg}%"
on explode:
if {timetnt} is false:
cancel event
Odnośnik do komentarza
https://skript.pl/temat/31331-b%C5%82ad-hour/Udostępnij na innych stronach
0 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ą.