Skocz do zawartości
  • 0

Problem z szukaniem cordynatów


Pytanie

Siemka. Dawno mnie tu nie było, ale niestety mam problem z którym nie mogę sobie za chiny poradzić. Tutaj jest kod:

every 1 tick:
	loop all players in radius {portal::drewno::radius} of {portal::drewno::location}:
		if loop-player has any diamond armor, any diamond tool, bow, any potion, any chain armor, any gold armor, any iron armor, any iron tool or any gold tool:
			teleport loop-player to spawn of "world"
			send "&4Nie mozesz tu wejsc poniewaz posiadasz nielegalny item !!!" to loop-player
		else:
			send "YEAH !!! drewno" to loop-player
	
	loop all players in radius {portal::lancuch::radius} of {portal::lancuch::location}:
		if loop-player has any diamond armor, any diamond tool, any potion, any gold armor or any gold tool:
			teleport loop-player to spawn of "world"
			send "&4Nie mozesz tu wejsc poniewaz posiadasz nie legalny item !!!" to loop-player
		else:
			send "YEAH !!! lancuch" to loop-player

	loop all players in radius {portal::zelazo::radius} of {portal::zelazo::location}:
		if loop-player has any diamond armor, any diamond tool, any splash potion, any gold armor or any gold tool:
			teleport loop-player to spawn of "world"
			send "&4Nie mozesz tu wejsc poniewaz posiadasz nie legalny item !!!" to loop-player
		else:
			send "YEAH !!! zelazo" to loop-player

	loop all players in radius {portal::diament::radius} of {portal::diament::location}:
		if loop-player has any gold armor or any gold tool:
			teleport loop-player to spawn of "world"
			send "&4Nie mozesz tu wejsc poniewaz posiadasz nie legalny item !!!" to loop-player
		else:
			send "YEAH !!! diament" to loop-player
command /test:
	trigger:
		loop blocks in radius {portal::drewno::radius} around the player:
			if location of loop-block is {portal::drewno::location}:
				broadcast "ok"

Chodzi o to że skryptem najpierw ustawia się jakieś miejsce i ustawia "radius", następnie co tick ma szukać graczy w danej odległości od ustawionego punktu. Brzmi prosto, ale nie działa. Wstawiłem też komendę testową gdzie dałem przykład jak jeszcze to sprawdzałem, ale nic nie działa...

A i jeszcze macie tu coś żeby móc ustawić ten punkt do testów:

command /portal <text> <integer>:
	trigger:
		if player is op:
			if arg 1 is "drewno":
				if arg 2 is integer:
					set {portal::drewno::location} to location of player's head
					set {portal::drewno::radius} to arg 2
					send "%{portal::drewno::location}%" to player
					send "%{portal::drewno::radius}%" to player

Mam nadzieje że uda Wam się mi pomóc :D

Odnośnik do komentarza
https://skript.pl/temat/9905-problem-z-szukaniem-cordynat%C3%B3w/
Udostępnij na innych stronach

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

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ę...