Skocz do zawartości
  • 0

Dlaczego moby się nie usuwają?


Pytanie

every 200 second
	clear {moby::expowisko1::clear}
	stop

command /ustawexp1:
	trigger:
		if player has permission "ustawresp.*":
		set {expowisko1} to location of player
		send "&aUstawiono pomyslnie krysztal!" to player
	else:
		send "&eTa komenda nie istnieje, lub nie masz do niej dostepu!"
		stop
every 60 second:
    chance of 100%:
    	clear {moby::expowisko1::clear}
        spawn 1 Skeleton at {expowisko1}
        set the spawned Skeleton's display name to "&fSzkielet &6(Poziom 1)"
        set the last spawned entity's max health to 50
        heal the last spawned entity
        set helmet of the spawned entity to a iron helmet of protection 50
        set sword of the spawned entity to a diamond sword of protecion 45
        stop

command /ustawexp1:1:
	trigger:
		if player has permission "ustawexp.*":
		set {expowisko1.1} to location of player
		send "&aUstawiono pomyslnie krysztal!" to player
	else:
		send "&eTa komenda nie istnieje, lub nie masz do niej dostepu!" to player
		stop
every 60 second
	chance of 75%:
		clear {moby::expowisko1::clear}
		spawn 1 Skeleton at {expowisko1.1}
		set the spawned skeleton's display name "&fSzkielet &6(Poziom 2)"
		set the last spawned entity's max health to 75
		heal the spawned entity
		set helmet of the spawned entity to a iron helmet of protection 55
		set sword of the spawned entity to a diamond sword of sharpness 50
		stop

command /ustawexp1:2:
	trigger:
		if player has permission "ustawexp.*":
		set {expowisko1.2} to location of player
		send "&aUstawiono pomyslnie krysztal!" to player
	else:
		send "&eTa komenda nie istnieje, lub nie masz do niej dostepu!" to player
		stop
every 60 second
	chance of 75%
		clear {moby::expowisko1::clear}
		spawn 1 Skeleton at {expowisko1.2}
		set the spawned skeleton's display name "&fSzkielet &6(Poziom 3)"
		set the last spawned entity's max health 100
		heal the spawned entity
		set helmet of the spawned entity to a iron helmet of protection 60
		set sword of the spawned entity to a diamond sword of sharpness 55
		stop

Błędy, brak

Odnośnik do komentarza
https://skript.pl/temat/26819-dlaczego-moby-si%C4%99-nie-usuwaj%C4%85/
Udostępnij na innych stronach

15 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 minutę temu, LloydPL napisał:

loop all entities in radius [promień w jakim te moby się znajdują] around [środek tej lokacji]:
    if loop-entity name is "jakaś nazwa":
        kill loop-entity

[promień w jakim te moby się znajdują]  mogę dać 50 kratek?  [środek tej lokacji] nie wiem o co tu chodzi.

Odnośnik do komentarza
https://skript.pl/temat/26819-dlaczego-moby-si%C4%99-nie-usuwaj%C4%85/#findComment-176592
Udostępnij na innych stronach

  • 0
7 minut temu, LloydPL napisał:

środek tej lokacji to środek tego expowiska a promień to odległość od środka do brzegu

środek musi być zmienną lokacji 

a jak mam to napisać, daj jakiś przykład.

Odnośnik do komentarza
https://skript.pl/temat/26819-dlaczego-moby-si%C4%99-nie-usuwaj%C4%85/#findComment-176595
Udostępnij na innych stronach

  • 0
 
command /ustawsrodek:
    trigger:
        set {srodek.loc} to player's location
        send "Ustawiles srodek!"
command /zabij:
    trigger:
        loop all entities in radius 50 around {srodek.loc}:
            if loop-entity name is "jakaś nazwa":
                kill loop-entity
Edytowane przez LloydPL
Odnośnik do komentarza
https://skript.pl/temat/26819-dlaczego-moby-si%C4%99-nie-usuwaj%C4%85/#findComment-176596
Udostępnij na innych stronach

  • 0
W dniu 22.04.2018 o 21:49, LloydPL napisał:

 
command /ustawsrodek:
    trigger:
        set {srodek.loc} to player's location
        send "Ustawiles srodek!"
command /zabij:
    trigger:
        loop all entities in radius 50 around {srodek.loc}:
            if loop-entity name is "jakaś nazwa":
                kill loop-entity

Jest jeden błąd: There's no loop that matches 'loop-entity name' (start.sk, line 89: if loop-entity name is "jakať nazwa":')

Odnośnik do komentarza
https://skript.pl/temat/26819-dlaczego-moby-si%C4%99-nie-usuwaj%C4%85/#findComment-176818
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ę...