Skocz do zawartości
  • 0

Efekty do lore


VateqS

Pytanie

mam taki maly problem bo ogolnie znalazlem gdzies skrypt z inventory i mial zepsute efekty i jakos je naprawilem ale sa za duze i sie nie od dzielaja

linijka kodu 54

i tak wgl to takie mniej wazne jak by sie dalo to czy mozna by bylo zrobic tak ze jak wyciagam itemy to graczowi je zabiera?

 

command /inv [<text>] [<player>]:
    executable by: players
    permission: inv.use
    permission message: &4Nie posiadasz dostępu do tej komendy.
    trigger:
        if arg 1 is set:
            if arg 1 is "check":
                if arg 2 is not set:
                    send "&cUżycie: &6/inv check <gracz>" to player
                    stop
                set {inspectingPlayers::%player%} to true    
                open chest inventory with 6 rows named "&eInspekcja gracza &a%arg 2%&e:" to player
                set {_num} to 0
                loop 36 times:
                    if {_num} is between 0 and 8:
                        set slot ({_num} + 27) of player's current inventory to slot {_num} of arg-2's inventory
                    if {_num} is between 9 and 35:
                        set slot ({_num} - 9) of player's current inventory to slot {_num} of arg-2's inventory
                    add 1 to {_num}
                set slot (integers between 36 and 44) of player's current inventory to black stained glass pane named " "
                if arg-2's cursor slot is not air:
                    set slot 47 of player's current inventory to arg-2's cursor slot
                else:
                    set slot 47 of player's current inventory to white stained glass pane named "&aSlot kursora"
                if arg-2's helmet is not air:
                    set slot 47 of player's current inventory to arg-2's helmet
                else:
                    set slot 47 of player's current inventory to white stained glass pane named "&aHelm"
                if arg-2's chestplate is not air:
                    set slot 48 of player's current inventory to arg-2's chestplate
                else:
                    set slot 48 of player's current inventory to white stained glass pane named "&aNapiersnik"
                if arg-2's leggings is not air:
                    set slot 49 of player's current inventory to arg-2's leggings
                else:
                    set slot 49 of player's current inventory to white stained glass pane named "&aNogawice"    
                if arg-2's boots is not air:
                    set slot 50 of player's current inventory to arg-2's boots
                else:
                    set slot 50 of player's current inventory to white stained glass pane named "&aButy"
 
                if arg-2's off hand tool is not air:
                    set slot 45 of player's current inventory to arg-2's off hand tool
                else:
                    set slot 45 of player's current inventory to white stained glass pane named "&aDruga Ręka"
 
                set {_h} to arg-2's health
                set {_hp} to ({_h} * 10)
                set {_f} to arg-2's food level
                set {_fp} to ({_f} * 10)
                set {_l} to arg-2's level
                set {_loc} to arg-2's location
                set {_w} to arg-2's world
                set slot 52 of player's current inventory to dragon breath named "&aEfekty" with lore "&c%potion effects of arg-2%"
                set slot 53 of player's current inventory to book named "&eGracz &b%arg 2%:" with lore " &aZycie: &c%{_h}% (%{_hp}%%%) ", " &aGlod: &c%{_f}% (%{_fp}%%%) ", " &aPoziom: &c%{_l}% " and " &aPozycja: &c%{_loc}% (%{_w}%) "
            if arg 1 is "open"
 
       
on inventory click:
    {inspectingPlayers::%player%} is set
    cancel event
 
on inventory instant move: # addon
    {inspectingPlayers::%player%} is set
    cancel event
 
on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}
Odnośnik do komentarza
https://skript.pl/temat/56738-efekty-do-lore/
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ę...