Tworzę skrypt na nohitdelay i chcę zrobić żeby ustawiał damage delay z pliku yml.
Próbowałem już to zrobić ale zawsze wyskakuje ten błąd
[18:35:03 INFO]: [Skript] Reloading nohd.sk...
[18:35:03 ERROR]: [maximum] damage delay of %entity% can't be set to '{nhd} tick' because the latter is not a time span (nohd.sk, line 27: set maximum damage delay of victim to {nhd} tick')
Kod tworzenia pliku YML:
on load:
if folder "plugins/NoHitDelay" doesn't exists:
create folder "plugins/NoHitDelay"
if file "plugins/NoHitDelay/config.yml" doesn't exists:
create file "plugins/NoHitDelay/config.yml"
wf "NoHitDelay: '1'" to "plugins/NoHitDelay/config.yml"
wait 30 ticks
broadcast ""
broadcast " &8[&eNo&6Hit&eDelay&8]"
broadcast "&8» &aKonfiguracja przebiegła pomyslnie!"
broadcast "&8» &eAutor: &c***"
broadcast "&8» &eWersja: &61.0"
broadcast "&8» &aWpisz &c/nohd help &aaby zobaczyc liste komend!"
broadcast ""
Wait 10 ticks
execute console command "/sk reload %script%"
else:
set {nhd} to single value "NoHitDelay" get of "plugins/NoHitDelay/config.yml" parsed as text
Kod który odpowiada za damage delay
on damage:
set maximum damage delay of victim to {nhd} tick
Pytanie
Gość Hitman112
Hej.
Tworzę skrypt na nohitdelay i chcę zrobić żeby ustawiał damage delay z pliku yml.
Próbowałem już to zrobić ale zawsze wyskakuje ten błąd
[18:35:03 INFO]: [Skript] Reloading nohd.sk... [18:35:03 ERROR]: [maximum] damage delay of %entity% can't be set to '{nhd} tick' because the latter is not a time span (nohd.sk, line 27: set maximum damage delay of victim to {nhd} tick')
Kod tworzenia pliku YML:
on load: if folder "plugins/NoHitDelay" doesn't exists: create folder "plugins/NoHitDelay" if file "plugins/NoHitDelay/config.yml" doesn't exists: create file "plugins/NoHitDelay/config.yml" wf "NoHitDelay: '1'" to "plugins/NoHitDelay/config.yml" wait 30 ticks broadcast "" broadcast " &8[&eNo&6Hit&eDelay&8]" broadcast "&8» &aKonfiguracja przebiegła pomyslnie!" broadcast "&8» &eAutor: &c***" broadcast "&8» &eWersja: &61.0" broadcast "&8» &aWpisz &c/nohd help &aaby zobaczyc liste komend!" broadcast "" Wait 10 ticks execute console command "/sk reload %script%" else: set {nhd} to single value "NoHitDelay" get of "plugins/NoHitDelay/config.yml" parsed as text
Kod który odpowiada za damage delay
on damage: set maximum damage delay of victim to {nhd} tick
Proszę o pomoc
Edytowane przez Hitman112Odnośnik do komentarza
Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi