Skocz do zawartości
  • 0

Przejscie i Komenda


megabeka
 Udostępnij

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
every 1 second:
	set {_x} to location at 10, 20, 30
	loop all players in radius 2 of {_x}:
		set {_helm} to "%helmet of loop-player%" parsed as item
		set {_klata} to "%chestplate of loop-player%" parsed as item
		set {_spodnie} to "%leggings of loop-player%" parsed as item
		set {_buty} to "%boots of loop-player%" parsed as item
		set helmet slot of loop-player to air
		set chestplate slot of loop-player to air
		set leggings slot of loop-player to air
		set boots slot of loop-player to air
		if loop-player has 1 air:
			add {_helm} to loop-player
			add {_klata} to loop-player
			add {_spodnie} to loop-player
			add {_buty} to loop-player
		else:
			drop {_helm} at loop-player
			drop {_klata} at loop-player
			drop {_spodnie} at loop-player
			drop {_buty} at loop-player

Nie testowałem

#edit
jak czasami nie wyłapuje gracza to zmień every 1 second: na np. every 0.5 second:

Edytowane przez TroPeK
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

@megabeka

options:
	world: world
every 1 second:
	set {_x} to location at 10, 20, 30
	loop all players in radius 2 of {_x}:
		if world of loop-player is "{@world}":
			set {_helm} to "%helmet of loop-player%" parsed as item
			set {_klata} to "%chestplate of loop-player%" parsed as item
			set {_spodnie} to "%leggings of loop-player%" parsed as item
			set {_buty} to "%boots of loop-player%" parsed as item
			set helmet slot of loop-player to air
			set chestplate slot of loop-player to air
			set leggings slot of loop-player to air
			set boots slot of loop-player to air
			if loop-player has 4 air:
				add {_helm} to loop-player
				add {_klata} to loop-player
				add {_spodnie} to loop-player
				add {_buty} to loop-player
			else:
				drop {_helm} at loop-player
				drop {_klata} at loop-player
				drop {_spodnie} at loop-player
				drop {_buty} at loop-player

 

Edytowane przez TroPeK
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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