Skocz do zawartości
  • 0

Bonusy do seta


LubieRPG

Pytanie

Siema, posiadam taki skrypt na bonusy do seta zależne od prota:

every 3 seconds:
    loop all players:
#-----------------------------BUTY------------------------#
        set {rpg_buty::%loop-player%} to enchant level of protection of loop-player's boots
        if {rpg_buty::%loop-player%} is higher than 9:
            if {rpg_buty::%loop-player%} is smaller than 20:
                remove speed from loop-player
                apply speed 1 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 19:
            if {rpg_buty::%loop-player%} is smaller than 30:
                remove speed from loop-player
                apply speed 1 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 29:
            if {rpg_buty::%loop-player%} is smaller than 40:
                remove speed from loop-player
                apply speed 2 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 39:
            if {rpg_buty::%loop-player%} is smaller than 50:
                remove speed from loop-player
                apply speed 3 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 49:
            if {rpg_buty::%loop-player%} is smaller than 60:
                remove speed from loop-player
                apply speed 3 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 59:
            if {rpg_buty::%loop-player%} is smaller than 70:
                remove speed from loop-player
                apply speed 4 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 69:
            if {rpg_buty::%loop-player%} is smaller than 80:
                remove speed from loop-player
                apply speed 4 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 79:
            if {rpg_buty::%loop-player%} is smaller than 90:
                remove speed from loop-player
                apply speed 5 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 89:
            if {rpg_buty::%loop-player%} is smaller than 100:
                remove speed from loop-player
                apply speed 5 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 99:
            if {rpg_buty::%loop-player%} is smaller than 110:
                remove speed from loop-player
                apply speed 6 to loop-player for 3.1 second
        if {rpg_buty::%loop-player%} is higher than 109:
            remove speed from loop-player
            apply speed 7 to loop-player for 3.1 second
#---------------------------HELM---------------------------#
        set {rpg_helm::%loop-player%} to enchant level of protection of loop-player's helmet
        if {rpg_helm::%loop-player%} is higher than 9:
            if {rpg_helm::%loop-player%} is smaller than 20:
                remove jump boost from loop-player
                apply jump boost 1 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 19:
            if {rpg_helm::%loop-player%} is smaller than 30:
                remove jump boost from loop-player
                apply jump boost 1 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 29:
            if {rpg_helm::%loop-player%} is smaller than 40:
                remove jump boost from loop-player
                apply jump boost 2 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 39:
            if {rpg_helm::%loop-player%} is smaller than 50:
                remove jump boost from loop-player
                apply jump boost 3 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 49:
            if {rpg_helm::%loop-player%} is smaller than 60:
                remove jump boost from loop-player
                apply jump boost 3 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 59:
            if {rpg_helm::%loop-player%} is smaller than 70:
                remove jump boost from loop-player
                apply jump boost 4 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 69:
            if {rpg_helm::%loop-player%} is smaller than 80:
                remove jump boost from loop-player
                apply jump boost 4 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 79:
            if {rpg_helm::%loop-player%} is smaller than 90:
                remove jump boost from loop-player
                apply jump boost 5 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 89:
            if {rpg_helm::%loop-player%} is smaller than 100:
                remove jump boost from loop-player
                apply jump boost 5 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 99:
            if {rpg_helm::%loop-player%} is smaller than 110:
                remove jump boost from loop-player
                apply jump boost 6 to loop-player for 3.1 second
        if {rpg_helm::%loop-player%} is higher than 109:
            remove jump boost from loop-player
            apply jump boost 7 to loop-player for 3.1 second
#-----------------------SPODNIE--------------------------#
        set {rpg_spodnie::%loop-player%} to enchant level of protection of loop-player's leggings
        if {rpg_spodnie::%loop-player%} is higher than 9:
            if {rpg_spodnie::%loop-player%} is smaller than 20:
                heal the loop-player by 1
        if {rpg_spodnie::%loop-player%} is higher than 19:
            if {rpg_spodnie::%loop-player%} is smaller than 30:
                heal the loop-player by 2
        if {rpg_spodnie::%loop-player%} is higher than 29:
            if {rpg_spodnie::%loop-player%} is smaller than 40:
                heal the loop-player by 3
        if {rpg_spodnie::%loop-player%} is higher than 39:
            if {rpg_spodnie::%loop-player%} is smaller than 50:
                heal the loop-player by 4
        if {rpg_spodnie::%loop-player%} is higher than 49:
            if {rpg_spodnie::%loop-player%} is smaller than 60:
                heal the loop-player by 5
        if {rpg_spodnie::%loop-player%} is higher than 59:
            if {rpg_spodnie::%loop-player%} is smaller than 70:
                heal the loop-player by 6
        if {rpg_spodnie::%loop-player%} is higher than 69:
            if {rpg_spodnie::%loop-player%} is smaller than 80:
                heal the loop-player by 7
        if {rpg_spodnie::%loop-player%} is higher than 79:
            if {rpg_spodnie::%loop-player%} is smaller than 90:
                heal the loop-player by 8
        if {rpg_spodnie::%loop-player%} is higher than 89:
            if {rpg_spodnie::%loop-player%} is smaller than 100:
                heal the loop-player by 9
        if {rpg_spodnie::%loop-player%} is higher than 99:
            if {rpg_spodnie::%loop-player%} is smaller than 110:
                heal the loop-player by 10
        if {rpg_spodnie::%loop-player%} is higher than 109:
            heal the loop-player by 11
#---------------KLATA----------------------------------#
        set {rpg_klata::%loop-player%} to enchant level of protection of loop-player's chestplate
        if {rpg_klata::%loop-player%} is 0:
            set the maximum health of the loop-player to 10
        if {rpg_klata::%loop-player%} is higher than 9:
            if {rpg_klata::%loop-player%} is smaller than 20:
                remove damage resistance from loop-player
                apply damage resistance 1 to loop-player for 3.1 second
                set the maximum health of the loop-player to 12
        if {rpg_klata::%loop-player%} is higher than 19:
            if {rpg_klata::%loop-player%} is smaller than 30:
                remove damage resistance from loop-player
                apply damage resistance 1 to loop-player for 3.1 second
                set the maximum health of the loop-player to 14
        if {rpg_klata::%loop-player%} is higher than 29:
            if {rpg_klata::%loop-player%} is smaller than 40:
                remove damage resistance from loop-player
                apply damage resistance 2 to loop-player for 3.1 second
                set the maximum health of the loop-player to 16
        if {rpg_klata::%loop-player%} is higher than 39:
            if {rpg_klata::%loop-player%} is smaller than 50:
                remove damage resistance from loop-player
                apply damage resistance 3 to loop-player for 3.1 second
                set the maximum health of the loop-player to 18
        if {rpg_klata::%loop-player%} is higher than 49:
            if {rpg_klata::%loop-player%} is smaller than 60:
                remove damage resistance from loop-player
                apply damage resistance 4 to loop-player for 3.1 second
                set the maximum health of the loop-player to 20
        if {rpg_klata::%loop-player%} is higher than 59:
            if {rpg_klata::%loop-player%} is smaller than 70:
                remove damage resistance from loop-player
                apply damage resistance 4 to loop-player for 3.1 second
                set the maximum health of the loop-player to 25
        if {rpg_klata::%loop-player%} is higher than 69:
            if {rpg_klata::%loop-player%} is smaller than 80:
                remove damage resistance from loop-player
                apply damage resistance 4 to loop-player for 3.1 second
                set the maximum health of the loop-player to 30
        if {rpg_klata::%loop-player%} is higher than 79:
            if {rpg_klata::%loop-player%} is smaller than 90:
                remove damage resistance from loop-player
                apply damage resistance 4 to loop-player for 3.1 second
                set the maximum health of the loop-player to 40
        if {rpg_klata::%loop-player%} is higher than 89:
            if {rpg_klata::%loop-player%} is smaller than 100:
                remove damage resistance from loop-player
                apply damage resistance 4 to loop-player for 3.1 second
                set the maximum health of the loop-player to 50
        if {rpg_klata::%loop-player%} is higher than 99:
            if {rpg_klata::%loop-player%} is smaller than 110:
                remove damage resistance from loop-player
                apply damage resistance 4 to loop-player for 3.1 second
                set the maximum health of the loop-player to 60
        if {rpg_klata::%loop-player%} is higher than 109:
            remove damage resistance from loop-player
            apply damage resistance 4 to loop-player for 3.1 second
            set the maximum health of the loop-player to 70

Problem jest taki, że "remove (efekt) from loop-player" działa tak, że jeżeli na trybie Creative mam otwarty ekwipunek i jakiś item trzymam w powietrzu to mi go usuwa. Wie ktoś jak to naprawić?

Odnośnik do komentarza
Udostępnij na innych stronach

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

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ę...