Skocz do zawartości
  • 0

Jak zrobić żeby usuwało bilet po teleportowaniu się


Celej

Pytanie

Czy ktoś ma pomysł lub wie jak zrobić żeby po kliknięciu na bilet i teleportowaniu się usuwało bilet i pisało informacje na chat "bilet został wykorzystany"
Tu macie skrypt
Za pomoc bardzo dziękuje jakoś mogę się odwdzięczyć .

 

Edytowane przez HeezQ
HeezQ

Wstawiam kod na code.skript.pl

Notatka dodana przez HeezQ

Odnośnik do komentarza
Udostępnij na innych stronach

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Tu masz całe


 

  chance of 0.1%:

        drop paper named "&5&lBilet &f&lend"

    chance of 1.7%:

        drop paper named "&5&lBilet &c&lNether"

       

command /ustaw [<text>]:

    permission: ustaw

    trigger:

        if arg 1 is "nether":

            set {nether} to location of player

            send "ustawiono nether"

        if arg 1 is "end":

            set {end} to location of player

            send "ustawiono end"

       

command /idz [<text>]:

    permission: idznetherend

    trigger:

        if arg 1 is "nether":

            teleport player to {nether}

        if arg 1 is "end":

            teleport player to {end}

       

on rightclick:

    if player's tool is paper named "&5&lBilet &f&lend":

        set {lokalizacja.%player%} to location of player

        teleport player to {end}

        add 30 to {czas::end::%player%}

        wait 30 minutes

        set {czas::end::%player%} to 0

        teleport player to {lokalizacja.%player%}

    if player's tool is paper named "&5&lBilet &c&lNether":

        set {lokalizacja.%player%} to location of player

        teleport player to {nether}

        add 30 to {czas::nether::%player%}

        wait 30 minutes

        set {czas::nether::%player%} to 0

        teleport player to {lokalizacja.%player%}

        Remove 1 paper named "bilet" from player

        Send "bilet został wykorzystany" to all players

 

Chyba dobrze

Edytowane przez LeQuLa
Nieaktywny

Wstawiam w code.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on break of stone:
    chance of 0.1%:
        drop paper named "&5&lBilet &f&lend"
    chance of 1.7%:
        drop paper named "&5&lBilet &c&lNether"
       
command /ustaw [<text>]:
    permission: ustaw
    trigger:
        if arg 1 is "nether":
            set {nether} to location of player
            send "ustawiono nether"
        if arg 1 is "end":
            set {end} to location of player
            send "ustawiono end"
       
command /idz [<text>]:
    permission: idznetherend
    trigger:
        if arg 1 is "nether":
            teleport player to {nether}
        if arg 1 is "end":
            teleport player to {end}
       
on rightclick with paper:
    if name of player's tool "&5&lBilet &f&lend":
        set {lokalizacja.%player%} to location of player
        teleport player to {end}
        remove 1 paper named "&5&lBilet &f&lend" from player's inventory
        send "Bilet wykorzystany!"
        add 30 to {czas::end::%player%}
        wait 30 minutes
        set {czas::end::%player%} to 0
        teleport player to {lokalizacja.%player%}
    if name of player's tool "&5&lBilet &c&lNether":
        set {lokalizacja.%player%} to location of player
        teleport player to {nether}
        remove 1 paper named "&5&lBilet &c&lNether" from player's inventory
        send "Bilet wykorzystany!"
        add 30 to {czas::nether::%player%}
        wait 30 minutes
        set {czas::nether::%player%} to 0
        teleport player to {lokalizacja.%player%}

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

@LjayPL789
wywaliło serwer i 

>sk reload end
[17:18:46] [Server thread/INFO]: [Skript] Reloading end.sk...
[17:18:46] [Server thread/ERROR]: can't understand this condition: 'name of player's tool "&5&lBilet &f&lend"' (end.sk, line 26: if name of player's tool "&5&lBilet &f&lend":')
[17:18:46] [Server thread/ERROR]: can't understand this condition: 'name of player's tool "&5&lBilet &c&lNether"' (end.sk, line 35: if name of player's tool "&5&lBilet &c&lNether":')
[17:18:46] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading end.sk!
 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on break of stone:
    chance of 0.1%:
        drop paper named "&5&lBilet &f&lend"
    chance of 1.7%:
        drop paper named "&5&lBilet &c&lNether"
       
command /ustaw [<text>]:
    permission: ustaw
    trigger:
        if arg 1 is "nether":
            set {nether} to location of player
            send "ustawiono nether"
        if arg 1 is "end":
            set {end} to location of player
            send "ustawiono end"
       
command /idz [<text>]:
    permission: idznetherend
    trigger:
        if arg 1 is "nether":
            teleport player to {nether}
        if arg 1 is "end":
            teleport player to {end}
       
on rightclick with paper:
    if name of player's tool is "&5&lBilet &f&lend":
        set {lokalizacja.%player%} to location of player
        teleport player to {end}
        remove 1 paper named "&5&lBilet &f&lend" from player's inventory
        send "Bilet wykorzystany!"
        add 30 to {czas::end::%player%}
        wait 30 minutes
        set {czas::end::%player%} to 0
        teleport player to {lokalizacja.%player%}
    if name of player's tool is "&5&lBilet &c&lNether":
        set {lokalizacja.%player%} to location of player
        teleport player to {nether}
        remove 1 paper named "&5&lBilet &c&lNether" from player's inventory
        send "Bilet wykorzystany!"
        add 30 to {czas::nether::%player%}
        wait 30 minutes
        set {czas::nether::%player%} to 0
        teleport player to {lokalizacja.%player%}

No tak... zapomniałem o is.

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.

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

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