Czesc,
Mam dane gui, a raczej jest to GUI w GUI, czyli po kliknięciu w slot przekierowywuje w inne gui i tak dalej.
Mój problem jest taki, gdy gracz otworzy GUI - X to w tym gui jak kliknie gdziekolwiek otworzy mu GUI - Y
Kod:
command /gui:
trigger:set{_guiCollection} to a new chest inventory with 5 row with name "&2&lMc&6&lSquare&f&l.pl &8| &6Kolekcja"set slot (integers between 0 and 19) and (integers between 25 and 44) of {_guiCollection} to green stained glass pane named "&7"set slot 20 of {_guiCollection} to diamond ore named " &a> &c| &7Kolekcja &bGórnika &c| &a<" with lore "&a> &c| &7Kliknij &aLPM &7i zobacz swoją kolekcje &bGórnika" and "" and "&a> &c| &7Twoje postępy &b- %{progressBar_PlayerMiner.%player%}% &a%{progressPlayerMiner.%player%}% &7| &c14&8)"set slot 21 of {_guiCollection} to oak sapling named " &a> &c| &7Kolekcja &2Drwala &c| &a<" with lore "&a> &c| &7Kliknij &aLPM &7i zobacz swoją kolekcje &2Drwala" and "" and "&a> &c| &7Twoje postępy &b- %{progressBar_PlayerWoodcutter.%player%}% &a%{progressPlayerWoodcutter.%player%}% &7| &c6&8)"set slot 22 of {_guiCollection} to bone named " &a> &c| &7Kolekcja &cWalki &c| &a<" with lore "&a> &c| &7Kliknij &aLPM &7i zobacz swoją kolekcje &cWalki" and "" and "&a> &c| &7Twoje postępy &b- %{progressBar_PlayerCombat.%player%}% &a%{progressPlayerCombat.%player%}% &7| &cMAX&8)"set slot 23 of {_guiCollection} to hay bale named " &a> &c| &7Kolekcja &eFarmera &c| &a<" with lore "&a> &c| &7Kliknij &aLPM &7i zobacz swoją kolekcje &eFarmera" and "" and "&a> &c| &7Twoje postępy &b- %{progressBar_PlayerFarmer.%player%}% &a%{progressPlayerFarmer.%player%}% &7| &cMAX&8)"set slot 24 of {_guiCollection} to wither skeleton skull named " &a> &c| &7Kolekcja &4Bossów &c| &a<" with lore "&a> &c| &7Kliknij &aLPM &7i zobacz swoją kolekcje &4Bossów" and "" and "&a> &c| &7Twoje postępy &b- %{progressBar_PlayerBoss.%player%}% &a%{progressPlayerBoss.%player%}% &7| &cMAX&8)"
open {_guiCollection} to player
Pytanie
TheFightaz 0
Czesc,
Mam dane gui, a raczej jest to GUI w GUI, czyli po kliknięciu w slot przekierowywuje w inne gui i tak dalej.
Mój problem jest taki, gdy gracz otworzy GUI - X to w tym gui jak kliknie gdziekolwiek otworzy mu GUI - Y
Kod:
Co mam zrobic aby jedno GUI było jednym
Wstawiam długi kod na code.skript.pl
Notatka dodana przez Glicz
Odnośnik do komentarza
https://skript.pl/temat/54078-problem-z-gui/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi