Skocz do zawartości
  • 0

Jak to ogarnąć


Wakal

Pytanie

options:
    exp: 50
command /setspawnmob1 [<number>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        if arg 1 is "1":
            set {spawn.mob.1} to location of player
            send "Ustawiono spawn 1"
            stop
            else:
every 60 seconds:
    if {spawn.mob.1} is set:
        spawn 1 zombie at {spawn.mob.1}
        set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
        set the last spawned entity's max health to 20
        heal the last spawned entity
        set tool of last spawned entity to wooden sword of unbreaking 10
    else:        
on death:
    if victim is zombie:
        if name of victim is "&2Lvl.&01 &2Zombie YO":
            chance of 100%:
                if victim can hold 1 chest named "nazwa":
                    give {@exp} xp to the victim
                    add 1 chest named "nazwa" to victim
            chance of 5%:
                if victim can hold 2 chest named "Nazwa":
                    give {@exp} xp to the victim
                    add 2 chest named "Nazwa" to victim

A więc tak: Czemu w tym skrypcie jest 1 błąd? Linijka 7 albo 11 już nie pamiętam.

Pomoże ktoś naprawić? :D

Za szystkie odp z góry dzięki!

Odnośnik do komentarza
https://skript.pl/temat/22139-jak-to-ogarn%C4%85%C4%87/
Udostępnij na innych stronach

12 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

 

3 minuty temu, Lloyd PL napisał:

no weź podaj te błędy, opisz swój problem, nie mam kompajlera w głowie i nie wiem o co ci chodzi

Empty configuration selection! You might want to indent one or more the subsequent lines to make them belong to this selection or remove the colon at the end of the line if you won't this line to start a section. (SpawnMobow1.sk, line 11: else:')

Empty configuration selection! You might want to indent one or more the subsequent lines to make them belong to this selection or remove the colon at the end of the line if you won't this line to start a section. (SpawnMobow1.sk, line 7: if arg 1 is "1":')

10 minut temu, Lloyd PL napisał:

no weź podaj te błędy, opisz swój problem, nie mam kompajlera w głowie i nie wiem o co ci chodzi

Can't compare a number with a text (SpawnMobow.sk, line 7: if arg 1 is "1":')

Odnośnik do komentarza
https://skript.pl/temat/22139-jak-to-ogarn%C4%85%C4%87/#findComment-150978
Udostępnij na innych stronach

  • 0

ten skrypt jest bez sensu ale masz:

options:
    exp: 50
    
command /setspawnmob1 [<text>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        if arg 1 is "1":
            set {spawn.mob.1} to location of player
            send "Ustawiono spawn 1"
            stop
every 60 seconds:
    if {spawn.mob.1} is set:
        spawn 1 zombie at {spawn.mob.1}
        set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
        set the last spawned entity's max health to 20
        heal the last spawned entity
        set tool of last spawned entity to wooden sword of unbreaking 10       
on death:
    if victim is zombie:
        if name of victim is "&2Lvl.&01 &2Zombie YO":
            chance of 100%:
                if victim can hold 1 chest named "nazwa":
                    give {@exp} xp to the victim
                    add 1 chest named "nazwa" to victim
            chance of 5%:
                if victim can hold 2 chest named "Nazwa":
                    give {@exp} xp to the victim
                    add 2 chest named "Nazwa" to victim

Odnośnik do komentarza
https://skript.pl/temat/22139-jak-to-ogarn%C4%85%C4%87/#findComment-150998
Udostępnij na innych stronach

  • 0
7 minut temu, Lloyd PL napisał:

ten skrypt jest bez sensu ale masz:

 


options:
    exp: 50
    
command /setspawnmob1 [<text>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        if arg 1 is "1":
            set {spawn.mob.1} to location of player
            send "Ustawiono spawn 1"
            stop
every 60 seconds:
    if {spawn.mob.1} is set:
        spawn 1 zombie at {spawn.mob.1}
        set the spawned zombie's display name to "&6Lvl. &61. &2Zombie &2YO"
        set the last spawned entity's max health to 20
        heal the last spawned entity
        set tool of last spawned entity to wooden sword of unbreaking 10       
on death:
    if victim is zombie:
        if name of victim is "&2Lvl.&01 &2Zombie YO":
            chance of 100%:
                if victim can hold 1 chest named "nazwa":
                    give {@exp} xp to the victim
                    add 1 chest named "nazwa" to victim
            chance of 5%:
                if victim can hold 2 chest named "Nazwa":
                    give {@exp} xp to the victim
                    add 2 chest named "Nazwa" to victim

 

Dzięki... ale czemu bez sensu? xD

Odnośnik do komentarza
https://skript.pl/temat/22139-jak-to-ogarn%C4%85%C4%87/#findComment-151002
Udostępnij na innych stronach

  • 0
command /setspawnmob1 [<text>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        if arg 1 is "1":
            set {spawn.mob.1} to location of player
            send "Ustawiono spawn 1"
            stop

 

https://code.skript.pl/OCIURYSM/

tu masz poprawione to chyba powinno działać na więcej spawnerów.

 

Odnośnik do komentarza
https://skript.pl/temat/22139-jak-to-ogarn%C4%85%C4%87/#findComment-151007
Udostępnij na innych stronach

  • 0
Godzinę temu, piotrus131102 napisał:

command /setspawnmob1 [<text>]:
    permission: set.spawnmoba
    permission message: &4Nie masz do tego uprawnien...
    trigger:
        if arg 1 is "1":
            set {spawn.mob.1} to location of player
            send "Ustawiono spawn 1"
            stop

 

https://code.skript.pl/OCIURYSM/

tu masz poprawione to chyba powinno działać na więcej spawnerów.

 

Chyba działa, nwm nie sprawdzałem, ale errorów nie ma.

Odnośnik do komentarza
https://skript.pl/temat/22139-jak-to-ogarn%C4%85%C4%87/#findComment-151022
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...