Skocz do zawartości
  • 0

wie ktos jak zrobic item w gui ktory otwiera nastepne gui?


APCishere

Pytanie

np /gui otwiera gui z itemem i jak klikniejsz ten item to otwiera drugie gui bez zadnych itemow

 

to moj skrypt i nie wiem czemu nie dziala:

command /quests:
    trigger:
        set {_gui} to a new chest inventory with 5 row with name "Gui Test"
        set slot 0 of {_gui} to stone
        set {_quest1} to a new chest inventory with 5 row with name "Gui Test"
        set slot 0 of {_quest1} to iron ore
        open {_quest1} to player
 
on inventory click:
    if name of event-inventory is "Gui Test":
        if index of event-slot = 0:
            cancel event 
            close player's inventory
            wait 20 ticks
            open {_quest1} to player

Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

command /quests:
    trigger:
        set {gui} to a new chest inventory with 5 row with name "Gui Test"
        set slot 0 of {gui} to stone
        set {quest1} to a new chest inventory with 5 row with name "Gui Test"
        set slot 0 of {quest1} to iron ore
        open {gui} to player
on inventory click:
    if name of event-inventory is "Gui Test":
        if index of event-slot = 0:
            cancel event
            close player's inventory
            wait 20 ticks
            open {quest1} to player
        

oto ci chodzi?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /quests:
	trigger:
		set {_gui} to a chest with 5 rows with name "Gui Test"
		set slot 0 of {_gui} to stone
		set {_quest1} to a chest with 5 rows with name "Gui Test2"
		set slot 0 of {_quest1} to iron ore
		open {quest1} to player
 
on inventory click:
	if name of event-inventory is "Gui Test":
		if index of event-slot = 0:
			event-inventory is not player's inventory
			cancel event 
			close player's inventory
			wait 20 ticks
			open {quest1} to player

Masz XD

Odnośnik do komentarza
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ę...