Skocz do zawartości
  • 0

pomoc z skryptem na invsee


Pytanie

Witam, moglby mi ktos przerobic lekko ten skrypt? chciałbym zeby sie dało komus zabrać/zmienic np. slot itemu no wiadomo powiedzmy chce zamienic graczowi klate zelazna na diaxowa + jesli gracz np. zmieni slot miecza na trzeci z pierwszego to nie musze znowu komende wpisac by mi sie odswiezylo tylko widze ze zmienil odrazu.

command /inspect [<player>]:
    executable by: players
    permission: inspect.players
    permission message: &4Nie posiadasz dostępu do tej komendy.
    trigger:
        if arg 1 is not set:
            send "&cUżycie: &6/inspect <gracz>" to player
            stop
        set {inspectingPlayers::%player%} to true    
        open chest inventory with 6 rows named "inspekcja" 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-1's inventory
            if {_num} is between 9 and 35:
                set slot ({_num} - 9) of player's current inventory to slot {_num} of arg-1'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-1's cursor slot is not air:
            set slot 47 of player's current inventory to arg-1's cursor slot
        else:
            set slot 47 of player's current inventory to white stained glass pane named "&aSlot kursora"
        if arg-1's helmet is not air:
            set slot 47 of player's current inventory to arg-1's helmet
        else:
            set slot 47 of player's current inventory to white stained glass pane named "&aHelm"
        if arg-1's chestplate is not air:
            set slot 48 of player's current inventory to arg-1's chestplate
        else:
            set slot 48 of player's current inventory to white stained glass pane named "&aKlata"
        if arg-1's leggings is not air:
            set slot 50 of player's current inventory to arg-1's leggings
        else:
            set slot 50 of player's current inventory to white stained glass pane named "&aSpodnie"    
        if arg-1's boots is not air:
            set slot 51 of player's current inventory to arg-1's boots
        else:
            set slot 51 of player's current inventory to white stained glass pane named "&aButy"

 

Odnośnik do komentarza
https://skript.pl/temat/49015-pomoc-z-skryptem-na-invsee/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

a i reszta:

on inventory click:
    clicked inventory is not player's inventory
    {inspectingPlayers::%player%} is set
    cancel event
    
on inventory close:
    {inspectingPlayers::%player%} is set
    clear {inspectingPlayers::%player%}

Zeby dalo sie wszystko zamienić oprocz szkła tego czarnego i białego ktore jakby sluzy jako linia odstepu miedzy eq a ekwipunkiem zalozonym.

 

Odnośnik do komentarza
https://skript.pl/temat/49015-pomoc-z-skryptem-na-invsee/#findComment-304851
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ę...