Skocz do zawartości
  • 0

Skrypt na teleport


Uzi
 Udostępnij

Pytanie

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on right click:
	if type of player's tool is paper:
		if name of player's tool is "&6Teleport":
			if player is sneaking:
				set lore of player's tool to "&7Teleportuje do: ||&c%location of player%"
				send "&7Ustawiono nowy punkt!"
			else:
				if line 2 of lore of player's tool is set:
					set {_L} to uncolored line 2 of lore of player's tool
					replace all "x" and "z" and "y" and ":" and " " with "" in {_L}
					set {_L::*} to {_L} split at ","
					loop {_L::*}:
						set {_L::%loop-index%} to loop-value parsed as number
					teleport player to location at ({_L::1}, {_L::2}, {_L::3})
					send "&7Teleportowano!"
command /s:
	trigger:
		add paper named "&6Teleport" to player

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 minutę temu, Uzi napisał:

Bardziej wolałbym aby miejsce teleportu dało się ustawić komendą ;)
Da się to zrobić? Bardzo proszę...

on right click:
	if type of player's tool is paper:
		if name of player's tool is "&6Teleport":
			if line 2 of lore of player's tool is set:
				set {_L} to uncolored line 2 of lore of player's tool
				replace all "x" and "z" and "y" and ":" and " " with "" in {_L}
				set {_L::*} to {_L} split at ","
				loop {_L::*}:
					set {_L::%loop-index%} to loop-value parsed as number
				teleport player to location at ({_L::1}, {_L::2}, {_L::3})
				send "&7Teleportowano!"
			else:
				send "&7nie ustawiles punktu"
command /ustaw [<text>]:
	trigger:
		if type of player's tool is paper:
			if name of player's tool is "&6Teleport":
				set lore of player's tool to "&7Teleportuje do: ||&c%location of player%"
				send "&7Ustawiono nowy punkt!"
			else:
				send "&7Nie masz papieru"
command /s:
	trigger:
		add paper named "&6Teleport" to player

oznaczaj jak cos

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
21 godzin temu, xAxee napisał:
on right click:
	if type of player's tool is paper:
		if name of player's tool is "&6Teleport":
			if line 2 of lore of player's tool is set:
				set {_L} to uncolored line 2 of lore of player's tool
				replace all "x" and "z" and "y" and ":" and " " with "" in {_L}
				set {_L::*} to {_L} split at ","
				loop {_L::*}:
					set {_L::%loop-index%} to loop-value parsed as number
				teleport player to location at ({_L::1}, {_L::2}, {_L::3})
				send "&7Teleportowano!"
			else:
				send "&7nie ustawiles punktu"
command /ustaw [<text>]:
	trigger:
		if type of player's tool is paper:
			if name of player's tool is "&6Teleport":
				set lore of player's tool to "&7Teleportuje do: ||&c%location of player%"
				send "&7Ustawiono nowy punkt!"
			else:
				send "&7Nie masz papieru"
command /s:
	trigger:
		add paper named "&6Teleport" to player

oznaczaj jak cos

@xAxee nie działa teleport ;/
Piszę, że teleportowano ale nic się nie dzieje ;/
Wersja 1.8.8 + chciałbym aby tylko admin mógł to ustawić coś na zasadzie warp tylko w inne miejsce się teleportują ;)

Odnośnik do komentarza
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

 Udostępnij

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

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