Skocz do zawartości
  • 0

Problem z bossami


PiTeKLive

Pytanie

Siemaneczko pomógłby ktoś bo nwm czemu nie przywołuje tych bossów jak się klknie na książkę

command /bhard:
   trigger:
      spawn zombie at player
      set last spawned entity's name to "&c&lBoss &4&lHARD"
      set last spawned entity's helmet to diamond helmet of protection 7 and unbreaking 3
      set last spawned entity's chestplate to diamond chestplate of protection 7 and unbreaking 5
      set last spawned entity's leggings to diamond leggings of protection 7 and unbreaking 5
      set last spawned entity's boots to diamond boots of protection 7 and unbreaking 5
      set last spawned entity's tool to diamond sword of sharpness 10 and knockback 3 and fire aspect 2
      set last spawned entity's max health to 40
      heal last spawned entity
      apply fire resistance 9 to spawned entity
      apply haste 1 to spawned entity
      apply speed to the last spawned entity for 999999 seconds
      apply haste to the last spawned entity for 9999 seconds
      apply jump boost 3 to the spawned entity for 9999 seconds
      send "&8» &6Zespawnowales &7obok &c&lBoss &4&lHARD&7!"
command /bmedium:
   trigger:
      spawn skeleton at player
      set last spawned entity's name to "&c&lBoss &6&lMEDIUM"
      set last spawned entity's helmet to diamond helmet of protection 5 and unbreaking 4
      set last spawned entity's chestplate to diamond chestplate of protection 5 and unbreaking 4
      set last spawned entity's leggings to diamond leggings of protection 5 and unbreaking 4
      set last spawned entity's boots to diamond boots of protection 5 and unbreaking 4
      set last spawned entity's tool to bow of power 7 and punch 3 and infinity 1
      set last spawned entity's max health to 40
      heal last spawned entity
      apply fire resistance 9 to spawned entity for 3 days
      apply haste 1 to spawned entity for 3 days
      apply speed to the last spawned entity for 999999 seconds
      send "&8» &6Zespawnowales &7obok &c&lBoss &6&lMEDIUM&7!"
command /beasy:
   trigger:
      spawn zombie at player
      set last spawned entity's name to "&c&lBoss &2&lEASY"
      set last spawned entity's helmet to iron helmet of protection 7 and unbreaking 5
      set last spawned entity's chestplate to iron chestplate of protection 7 and unbreaking 5
      set last spawned entity's leggings to iron leggings of protection 7 and unbreaking 5
      set last spawned entity's boots to iron boots of protection 7 and unbreaking 5
      set last spawned entity's tool to iron sword of knockback 4 and sharpness 7
      set last spawned entity's max health to 25
      heal last spawned entity
      apply fire resistance 9 to spawned entity for 1 days
      apply haste 1 to spawned entity for 1 days
      send "&8» &6Zespawnowales &7obok &c&lBoss &2&lEASY&7!"
command /bossy:
    trigger:
        wait 1 tick
        open chest with 3 rows named "&8»&c&lBOSSY&8«" to player
        wait 1 tick
        format slot 10 of player with book named "&c&lBoss &2&lEASY" with lore "&8» &7Cena: &6150 &7emeraldów" to close then run [make player execute command "/b easy"]
        format slot 13 of player with book named "&c&lBoss &6&lMEDIUM" with lore "&8» &7Cena: &6300 &7emeraldów" to close then run [make player execute command "/b medium"]
        format slot 16 of player with book named "&c&LBoss &4&lHARD" with lore "&8» &7Cena: &6400 &7emeraldów" to close then run [make player execute command "/b hard"]
command /b [<text>]:
    trigger:
        if arg 1 is "easy":
            if player has 150 emeralds:
                remove 150 emeralds from player
                execute console command "/beasy"
                send "&8» &6Kupiles &c&lBoss &2&lEASY"
            else:
                send "&8» &7Nie &6masz &7wystarczajaco &6duzo &7emeraldow! &8(&6150&8)"
        if arg 1 is "medium":
            if player has 300 emeralds:
                remove 300 emeralds from player
                execute console command "/bmedium"
                send "&8» &6Kupiles &c&lBoss &6&lMEDIUM"
            else:
                send "&8» &7Nie &6masz &7wystarczajaco &6duzo &7emeraldow! &8(&6300&8)"
        if arg 1 is "hard":
            if player has 400 emeralds:
                remove 400 emeralds from player
                execute console command "/bhard"
            else:
                send "&8» &7Nie &6masz &7wystarczajaco &6duzo &7emeraldow! &8(&6400&8)"

Odnośnik do komentarza
https://skript.pl/temat/21200-problem-z-bossami/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

execute console command "/beasy"

command /beasy:
   trigger:
      spawn zombie at player

Wykonując polecenie z konsoli, nie masz jak zespawnować na gracza, bo konsola nie jest graczem, ani nie wie o którego Ci chodzi.

Odnośnik do komentarza
https://skript.pl/temat/21200-problem-z-bossami/#findComment-144206
Udostępnij na innych stronach

  • 0
21 minut temu, PiTeKLive napisał:

Czyli co mam zrobić bo niewiem jeśli mógłbyś poprawić i mi dać to dziękuję :)

No dodać argument do komendy [<player>] i zamienić at player na at arg 1

 

Jak nie zadziała to reklamacja Do @Bielecki:kappa:

 

Odnośnik do komentarza
https://skript.pl/temat/21200-problem-z-bossami/#findComment-144256
Udostępnij na innych stronach

  • 0
[15:55:38 INFO]: [Skript] Reloading bossy.sk...
[15:55:38 ERROR]: This command doesn't have any arguments (bossy.sk, line 3: spawn zombie at arg 3')
[15:55:38 ERROR]: This command doesn't have any arguments (bossy.sk, line 20: spawn skeleton at arg 2')
[15:55:38 ERROR]: This command doesn't have any arguments (bossy.sk, line 35: spawn zombie at arg 1')
Odnośnik do komentarza
https://skript.pl/temat/21200-problem-z-bossami/#findComment-144262
Udostępnij na innych stronach

  • 0

No błąd mówi chyba wszystko - powiedziałeś żeby pobrał argument 1/2/3, ale nie podajesz mu go przy wykonywaniu komendy.

Luźny pomysł to taki, żebyś pobrał sobie lokalizację gracza, który wykonuje komendę, zapisał ją w zmiennej i przywołał ją przy wykonywaniu komendy przez konsolę.

 

In fact, czemu ma to wykonywać konsola? Próbujesz skrócić skrypt wywołując jedną komendę inną. Nie łatwiej byłoby Ci zrobić tak?

Zj6ss2h.png

Edytowane przez Bielecki
Odnośnik do komentarza
https://skript.pl/temat/21200-problem-z-bossami/#findComment-144403
Udostępnij na innych stronach

  • 0

Pisze że zespawnowało obok bossa a nie zespawnowało zrobiłem tak jak pokazałeś (0 błędów ,wcale ich nie ma)

Jednak dziala* próbowałem to na spawnie spawnować a tam zapomniałem ,że wyłączyłem spawnowanie mobów

Edytowane przez PiTeKLive
Odnośnik do komentarza
https://skript.pl/temat/21200-problem-z-bossami/#findComment-144443
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ę...