Skocz do zawartości
  • 0

Skrypt na losowy teleport przy pierwszym wejściu!


Pytanie

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
    xMin: -1000
    xMax: 4000
    zMin: -1000
    zMax: 4000
    yMin: 65
    yMax: 80
    world: world   
    permissions: ptp.gracz
	
on first join:
    if player has permissions "{@permissions}":
        set {_targetx} to a random integer between {@xMin} and {@xMax}
        set {_targetz} to a random integer between {@zMin} and {@zMax}
        wait 5 ticks
        execute console command "/tppos %player% %{_targetx}% {@yMin} %{_targetz}%"
        stop 

Powinno działać. :P

Edytowane przez HeezQ
Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222708
Udostępnij na innych stronach

  • 0
52 minuty temu, LjayPL789 napisał:

 

[18:38:38] [Server thread/INFO]: �[�Skript�]�[m Reloading �smierc.sk�[m...�
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 3: set {deadlocation} to location of player")
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 4: send "&aPoprawnie ustawiono lokacje." to player")
[18:38:38] [Server thread/ERROR]: indentation error: expected 8 spaces, but found 12 spaces (smierc.sk, line 5: stop")
[18:38:38] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don"t want this line to start a section. (smierc.sk, line 2: trigger:")
[18:38:38] [Server thread/INFO]: �[�Skript�]�[m �Encountered 3 errors while reloading �smierc.sk�[m!�
Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222720
Udostępnij na innych stronach

  • 0
Godzinę temu, LjayPL789 napisał:

 

Sry pomyliłem skrypty:

[18:40:20] [Server thread/INFO]: [Skript][m Reloading aw.sk[m...
[18:40:20] [Server thread/ERROR]: "set {_y} 256" is not a boolean (yes/no) (aw.sk, line 8: set {_y} 256")
[18:40:20] [Server thread/ERROR]: Use "attacker" and/or "victim" in damage events (aw.sk, line 18: if {randomtp::god::%player%} is true:")
[18:40:20] [Server thread/INFO]: [Skript][m Encountered 2 errors while reloading aw.sk[m!

Aktualny błąd 

Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222724
Udostępnij na innych stronach

  • 0
36 minut temu, Uzi napisał:

Sry pomyliłem skrypty:


[18:40:20] [Server thread/INFO]: [Skript][m Reloading aw.sk[m...
[18:40:20] [Server thread/ERROR]: "set {_y} 256" is not a boolean (yes/no) (aw.sk, line 8: set {_y} 256")
[18:40:20] [Server thread/ERROR]: Use "attacker" and/or "victim" in damage events (aw.sk, line 18: if {randomtp::god::%player%} is true:")
[18:40:20] [Server thread/INFO]: [Skript][m Encountered 2 errors while reloading aw.sk[m!

Aktualny błąd 

options:
    x-min: -3000
    x-max: 3000
    z-min: -3000
    z-max: 3000
on first join:
    set {_x} to random integer between {@x-min} and {@x-max}
    set {_y} 256
    set {_z} to random integer between {@z-min} and {@z-max}
    set {_location} to location at {_x}, {_y}, {_z}
    teleport player to {_location}
    send " &8» &7Przeteleportowano w losowe koordynaty &6(x: %{_x}% | z: %{_z}%)&7."

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222729
Udostępnij na innych stronach

  • 0
2 godziny temu, xAxee napisał:

options:
    x-min: -3000
    x-max: 3000
    z-min: -3000
    z-max: 3000
on first join:
    set {_x} to random integer between {@x-min} and {@x-max}
    set {_y} 256
    set {_z} to random integer between {@z-min} and {@z-max}
    set {_location} to location at {_x}, {_y}, {_z}
    teleport player to {_location}
    send " &8» &7Przeteleportowano w losowe koordynaty &6(x: %{_x}% | z: %{_z}%)&7."

 

[21:22:36] [Server thread/INFO]: �[�Skript�]�[m Reloading �aw.sk�[m...�
[21:22:36] [Server thread/ERROR]: "set {_y} 256" is not a boolean (yes/no) (aw.sk, line 8: set {_y} 256")
[21:22:36] [Server thread/INFO]: �[�Skript�]�[m �Encountered 1 error while reloading �aw.sk�[m!�
Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222753
Udostępnij na innych stronach

  • 0
Teraz, Uzi napisał:

[21:22:36] [Server thread/INFO]: �[�Skript�]�[m Reloading �aw.sk�[m...�
[21:22:36] [Server thread/ERROR]: "set {_y} 256" is not a boolean (yes/no) (aw.sk, line 8: set {_y} 256")
[21:22:36] [Server thread/INFO]: �[�Skript�]�[m �Encountered 1 error while reloading �aw.sk�[m!�

xd

options:
    x-min: -3000
    x-max: 3000
    z-min: -3000
    z-max: 3000
on first join:
    set {_x} to random integer between {@x-min} and {@x-max}
    set {_y} to 256
    set {_z} to random integer between {@z-min} and {@z-max}
    set {_location} to location at {_x}, {_y}, {_z}
    teleport player to {_location}
    send " &8» &7Przeteleportowano w losowe koordynaty &6(x: %{_x}% | z: %{_z}%)&7."

 

Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222754
Udostępnij na innych stronach

  • 0
9 minut temu, xAxee napisał:

xd


options:
    x-min: -3000
    x-max: 3000
    z-min: -3000
    z-max: 3000
on first join:
    set {_x} to random integer between {@x-min} and {@x-max}
    set {_y} to 256
    set {_z} to random integer between {@z-min} and {@z-max}
    set {_location} to location at {_x}, {_y}, {_z}
    teleport player to {_location}
    send " &8» &7Przeteleportowano w losowe koordynaty &6(x: %{_x}% | z: %{_z}%)&7."

 

Niestety nie teleportuje i tak ;/

Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222756
Udostępnij na innych stronach

  • 0
1 godzinę temu, Uzi napisał:

Niestety nie teleportuje i tak ;/

Może nie teleportuje bo nie wbijasz pierwszy raz na serwer tylko rejoin robisz,  usun world i zrob nowy swiat,  dopiero wejdz na serwer,  albo z plikow z world i innych usun swoje dane(nicki,  itp.)

Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222763
Udostępnij na innych stronach

  • 0

Nie wiem, czy wiecie, ale na forum jest wyszukiwarka. Jeszcze nie dość, że jest wyszukiwarka, to post widać z wierzchu dosłownie. I teraz pytanie: czemu nie możecie z niego skorzystać?

@ZiemniaQ pozdrawiam

Edytowane przez Rejszpat
Odnośnik do komentarza
https://skript.pl/temat/34629-skrypt-na-losowy-teleport-przy-pierwszym-wej%C5%9Bciu/#findComment-222764
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.

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

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