Skocz do zawartości
  • 0

Namierzanie gracza


SunSeey

Pytanie

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /namier:
	cooldown: 5 minutes
	trigger:
		set {_} to a random player out of all players
		set {_x} to x-coordinate of {_}
		set {_y} to y-coordinate of {_}
		set {_z} to z-coordinate of {_}
		add (random integer between -20 and 20) to {_x}
		add (random integer between -20 and 20) to {_y}
		add (random integer between -20 and 20) to {_z}
		send "%{_x}% %{_y}% %{_z}%"

 

Edytowane przez CoFFeIN04
Odnośnik do komentarza
https://skript.pl/temat/43839-namierzanie-gracza/#findComment-274614
Udostępnij na innych stronach

  • 0
1 minutę temu, CoFFeIN04 napisał:

command /namier:
	cooldown: 5 minutes
	trigger:
		set {_player} to a random player out of all loop-players
		send "%location of %{_player}%%"

 

a zakres błędu dałoby radę zrobić? żeby nie podawało 1:1 kordów, tylko np. 10-20 kratek dalej

Odnośnik do komentarza
https://skript.pl/temat/43839-namierzanie-gracza/#findComment-274615
Udostępnij na innych stronach

  • 0
57 minut temu, SunSeey napisał:

a zakres błędu dałoby radę zrobić? żeby nie podawało 1:1 kordów, tylko np. 10-20 kratek dalej

Udzieliłem odpowiedź w poprzedniej odpowiedzi 

59 minut temu, CoFFeIN04 napisał:

command /namier:
	cooldown: 5 minutes
	trigger:
		set {_} to a random player out of all loop-players
		set {_x} to x-coordinate of {_}
		set {_y} to y-coordinate of {_}
		set {_z} to z-coordinate of {_}
		add (random integer between -20 and 20) to {_x}
		add (random integer between -20 and 20) to {_y}
		add (random integer between -20 and 20) to {_z}
		send "%{_x}% %{_y}% %{_z}%"

 

 

Odnośnik do komentarza
https://skript.pl/temat/43839-namierzanie-gracza/#findComment-274618
Udostępnij na innych stronach

  • 0

Poprawiam powyższy kod.

command /namierz:
	cooldown: 5 minutes
	trigger:
		set {_} to random player out of all players
		set {_x} to x-coordinate of {_}
		set {_y} to y-coordinate of {_}
		set {_z} to z-coordinate of {_}
		add (random integer between -20 and 20) to {_x}
		add (random integer between -20 and 20) to {_y}
		add (random integer between -20 and 20) to {_z}
		send "%{_x}% %{_y}% %{_z}%"

 

Odnośnik do komentarza
https://skript.pl/temat/43839-namierzanie-gracza/#findComment-274630
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ę...