Skocz do zawartości
  • 0

expiarka


rafi67000

Pytanie

Hej mam problem ponieważ nie wiem jak zrobić 
jesli gracz wejdzie na płytke ktora jest w lokalizacji {expiarka1}, {expiarka2}, {expiarka3} lub {expiarka4}:

ustaw level gracza na (poziom gracza * 1,5)

Pomoże ktoś?

 

command /setexpiarka [<number>]:
    trigger:
        if player's group is "admin", "headadmin" or "wlasciciel":
            if arg 1 is 1:
                set {expiarka1} to location of player
            if arg 1 is 2:
                set {expiarka2} to location of player
            if arg 1 is 3:
                set {expiarka3} to location of player
            if arg 1 is 4:
                set {expiarka4} to location of player
            else:
                send "&4> &cUzycie &6/setexpiarka <1,2,3,4>" to player
        else:
            send "&4> &cDostepne od rangi &c[ADMIN] lub wyzej!"

command /dajlevel [<player>]:
    trigger:
        if player-arg 1 is at location {expiarka1}, {expiarka2}, {expiarka3} or {expiarka4}:
            set the arg 1 level to (player's level * 1,5)


on step:
    while player's location is {expiarka1}, {expiarka2}, {expiarka3} or {expiarka4}:
        wait 1 second
        execute console command "/dajlevel %player%"
 

Odnośnik do komentarza
https://skript.pl/temat/48954-expiarka/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość Usunięty#35900
command /expiarka:
    trigger:
        if player has permission "exp.give":
            give 1 stone pressure plate named "&eExpiarka" to player

on place:
    if player's tool is stone pressure plate named "&eExpiarka":
        player has permission "exp.place"
        add location of target block to {expiarka::*}

on break of stone pressure plate:
    loop {expiarka::*}:
        if loop-value is location of target block:
            cancel event
            set target block to air
            remove location of target block from {expiarka::*}
            if gamemode of player is survival:
                drop 1 stone pressure plate named "&eExpiarka"
            exit loop

on pressure plate:
    event-block is stone pressure plate
    event-player has permission "exp.use"
    loop {expiarka::*}:
        if loop-value is location of event-block:
            cancel event
            give 10 xp to event-player
            #set {_level} to round(event-player's level * 1.5)
            #set the event-player's level to {_level}
            wait 1 seconds

 

Cytat

ustaw level gracza na (poziom gracza * 1,5)

Nie polecam tego używać 😛

Odnośnik do komentarza
https://skript.pl/temat/48954-expiarka/#findComment-304604
Udostępnij na innych stronach

  • 0
W dniu 28.05.2021 o 12:20, Mushkrem napisał:
command /expiarka:
    trigger:
        if player has permission "exp.give":
            give 1 stone pressure plate named "&eExpiarka" to player

on place:
    if player's tool is stone pressure plate named "&eExpiarka":
        player has permission "exp.place"
        add location of target block to {expiarka::*}

on break of stone pressure plate:
    loop {expiarka::*}:
        if loop-value is location of target block:
            cancel event
            set target block to air
            remove location of target block from {expiarka::*}
            if gamemode of player is survival:
                drop 1 stone pressure plate named "&eExpiarka"
            exit loop

on pressure plate:
    event-block is stone pressure plate
    event-player has permission "exp.use"
    loop {expiarka::*}:
        if loop-value is location of event-block:
            cancel event
            give 10 xp to event-player
            #set {_level} to round(event-player's level * 1.5)
            #set the event-player's level to {_level}
            wait 1 seconds

 

Nie polecam tego używać 😛

dziękuję za pomoc, ale od jakiegoś czasu przestałem korzystać ze skripta (skript mimo wszystko jest lagujący) więc możliwe że już się nie przyda 👀

Odnośnik do komentarza
https://skript.pl/temat/48954-expiarka/#findComment-317219
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ę...