Skocz do zawartości
  • 0

Wyciaganie itemów z Gui


Pytanie

Co trzeba zrobić aby w drugim menu nie można było wyciągać itemów jak sie otwiera z 1 menu. Kiedy wpisuje się osobno te 2 menu to działa normalnie

 

command /Menu:
    trigger:
        if player has permission "Menu.gracz":
            wait 1 tick
            open chest with 4 rows named "&9&lMC&4&lMedival" to player
            format slot 0 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 1 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 2 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 3 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 4 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 5 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 6 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 7 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 8 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 9 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 10 of player with 1 of 328 named "&e&lSzybka Podróz&l&e" with lore "&6&lKliknij, &1&laby udac sie do menu Podrozy&1&l" to run [execute player command "/podroz"]
            format slot 17 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 18 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 26 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 27 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 28 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 29 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 30 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 31 of player with 1 of 166 named "&4&lWyjscie z Menu&l&4" with lore "&6&lKliknij, &1&laby wyjsc z menu&1&l" to close
            format slot 32 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 33 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 34 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 35 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            
#centrum podróży
        
command /podroz:
    trigger:
        if player has permission "Podroz.admin":
            wait 2 tick
            open chest with 1 rows named "&c&lWybiesz Lokacje!" to player
            format slot 0 of player with 1 of 2 named "&4&lNa wlasne Wlosci&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na swoja działeke&1&l" to close then run [execute console command "/warp dzialki %player%"]    
            format slot 1 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 2 of player with 1 of 355 named "&4&lNa spawna&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na spawn serwera&1&l" to close then run [execute console command "/spawn %player%"]
            format slot 3 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 4 of player with 1 of 323 named "&4&lNa rzeczy do zrobienia&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na rzeczy do zrobienia&1&l" to close then run [execute console command "/warp todo %player%"]
            format slot 5 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 6 of player with 1 of 340 named "&4&lNa tutorial&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na tutorial serwera&1&l" to close then run [execute console command "/warp tutorial %player%"]
            format slot 7 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 8 of player with 1 of 54 named "&4&lNa spawna&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na spawn serwera&1&l" to close then run [execute console command "/spawn %player%"]

Odnośnik do komentarza
https://skript.pl/temat/21339-wyciaganie-item%C3%B3w-z-gui/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Latwiutkie jak gwozdz:

command /Menu:
    trigger:
        if player has permission "Menu.gracz":
            open chest with 4 rows named "&9&lMC&4&lMedival" to player
			wait 3 ticks
            format slot 0 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 1 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 2 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 3 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 4 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 5 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 6 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 7 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 8 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 9 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 10 of player with 1 of 328 named "&e&lSzybka Podróz&l&e" with lore "&6&lKliknij, &1&laby udac sie do menu Podrozy&1&l" to run [execute player command "/podroz"]
            format slot 17 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 18 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 26 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 27 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 28 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 29 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 30 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 31 of player with 1 of 166 named "&4&lWyjscie z Menu&l&4" with lore "&6&lKliknij, &1&laby wyjsc z menu&1&l" to close
            format slot 32 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 33 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 34 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 35 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            
#centrum podróży
        
command /podroz:
    trigger:
        if player has permission "Podroz.admin":
			wait 3 ticks
            format slot 0 of player with 1 of 2 named "&4&lNa wlasne Wlosci&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na swoja działeke&1&l" to close then run [execute console command "/warp dzialki %player%"]    
            format slot 1 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 2 of player with 1 of 355 named "&4&lNa spawna&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na spawn serwera&1&l" to close then run [execute console command "/spawn %player%"]
            format slot 3 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 4 of player with 1 of 323 named "&4&lNa rzeczy do zrobienia&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na rzeczy do zrobienia&1&l" to close then run [execute console command "/warp todo %player%"]
            format slot 5 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 6 of player with 1 of 340 named "&4&lNa tutorial&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na tutorial serwera&1&l" to close then run [execute console command "/warp tutorial %player%"]
            format slot 7 of player with 1 of 160:12 named "&6&lPustka&l&6" to be unstealable
            format slot 8 of player with 1 of 54 named "&4&lNa spawna&l&4" with lore "&6&lKliknij, &1&laby Przeniesc sie na spawn serwera&1&l" to close then run [execute console command "/spawn %player%"] 

 

Odnośnik do komentarza
https://skript.pl/temat/21339-wyciaganie-item%C3%B3w-z-gui/#findComment-145423
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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