command /anvilgui:
trigger:
set {_gui} to a new anvil gui named "anvgui" with text "Type password"
set left item of {_gui} to paper
open anvil gui {_gui} to player
on anvil gui click:
if title of event-anvil gui is "anvgui":
if event-integer is 2:
send "&ccos" to player
close player's inventory
else:
if event-text is not set:
cancel event:
Event cannot be canceled
Chciałbym żeby jak gracz nie ustawił "event-text" to nie będzie mógł wyjść z gui i że jak kliknie w slot 2 to nic się nie stanie
Poprawiam formatowanie kodu i scalam zaraz później opublikowany post z główną treścią tematu
Pytanie
6uzwtenprawdziwy 0
command /anvilgui: trigger: set {_gui} to a new anvil gui named "anvgui" with text "Type password" set left item of {_gui} to paper open anvil gui {_gui} to player on anvil gui click: if title of event-anvil gui is "anvgui": if event-integer is 2: send "&ccos" to player close player's inventory else: if event-text is not set: cancel event:Event cannot be canceled
Chciałbym żeby jak gracz nie ustawił "event-text" to nie będzie mógł wyjść z gui i że jak kliknie w slot 2 to nic się nie stanie
Poprawiam formatowanie kodu i scalam zaraz później opublikowany post z główną treścią tematu
Odnośnik do komentarza
https://skript.pl/temat/56327-skrypt-nie-dzia%C5%82a-anvilgui/Udostępnij na innych stronach
8 odpowiedzi na to pytanie
Rekomendowane odpowiedzi