Skocz do zawartości
  • 0

Teleportacja zmiennymi


MrGoraj
 Udostępnij

Pytanie

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /ustaw:
trigger:
if player has permision "ustaw.pkt":
set {mapa} to location of player
set {mapa} to {mapa} parsed as location
send "&7Ustawiles punkt :D"
 
command /tepni:
trigger:
teleport player to {mapa}
send "&7Teleportuje..."
Edytowane przez MrNygus
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

podaj urywek swojego kodu bo nie kumam w czym tkwi błąd

Mi działa bez problemu wersja:
 

command /ustaw:
    trigger:
        if player has permission "ustaw.pkt":
            set {mapa} to location of player
            send "&7Ustawiles punkt :D"
 
command /tepni:
    trigger:
        teleport player to {mapa}
        send "&7Teleportuje..."

parsowanie nie jest wymagane
Edytowane przez MrNygus
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

@Up twój sposób nie działał i postanowiłem zrobić trochę inny system wydaje mi się że to powinno działać lecz nie wiem po wpisaniu komend nic się nie dzieje

command /zmianamapy:        trigger:                if {mapa} is not set:                        set {mapa} to "1"                        stop                else:                        if {mapa} is 1:                                set {mapa} to "2"                                stop                        if {mapa} is 2:                                set {mapa} to "3"                                stop                        if {mapa} is 3:                                set {mapa} to "4"                                stop                        if {mapa} is 4:                                set {mapa} to "1"                                stop                wait 5 seconds                if {mapa} is 1:                        set {mapa} to {mapa1}                        stop                if {mapa} is 2:                        set {mapa} to {mapa2}                        stop                if {mapa} is 3:                        set {mapa} to {mapa3}                        stop                if {mapa} is 4:                        set {mapa} to {mapa4}                        stopcommand /mapa:	trigger:		if {mapa} is 1:			teleport player to {mapa1}		if {mapa} is 2:			teleport player to {mapa2}		if {mapa} is 3:			teleport player to {mapa3}		if {mapa} is 4:			teleport player to {mapa4}command /ustaw [<text&gt]:	trigger:		if {arg1} is 1:			set {mapa1} to location of player		if {arg1} is 2:			set {mapa2} to location of player		if {arg1} is 3:			set {mapa3} to location of player		if {arg1} is 4:			set {mapa4} to location of player
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /zmianamapy:	trigger:		if {mapka} is not between 1 and 4:			set {mapka} to 1			stop		else:			if {mapka} is equal to 1:				set {mapka} to 2				broadcast "Zmiana mapy na 2"				stop			if {mapka} is equal to 2:				set {mapka} to 3				broadcast "Zmiana mapy na 3"				stop			if {mapka} is equal to 3:				set {mapka} to 4				broadcast "Zmiana mapy na 4"				stop			if {mapka} is equal to 4:				set {mapka} to 1				broadcast "Zmiana mapy na 1"				stopcommand /mapa:	trigger:		if {mapka} is 1:			teleport player to {mapa1}		if {mapka} is 2:			teleport player to {mapa2}		if {mapka} is 3:			teleport player to {mapa3}		if {mapka} is 4:			teleport player to {mapa4}	command /ustaw [<number&gt]:	trigger:		if arg 1 is not set:			message "Usage: /ustaw <1-4>"			stop		if arg 1 is equal to 1:			set {mapa1} to location of player			message "Ustawiono 1"			stop		if arg 1 is equal to 2:			set {mapa2} to location of player			message "Ustawiono 2"			stop		if arg 1 is equal to 3:			set {mapa3} to location of player			message "Ustawiono 3"			stop		if arg 1 is equal to 4:			set {mapa4} to location of player			message "Ustawiono 4"			stop
Edytowane przez MrGoraj
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ę...