Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

GUI otwierające drugie menu


malpii

Rekomendowane odpowiedzi

Opublikowano

Witam, mam komende /bh <nick> (czyli opcje bana lub kicka) i chciałbym aby po wpisaniu /bh <nick> otwierało się gui , w którym są dwa przedmioty nazwane "wyrzucenie" oraz "banowanie" gdy kliknie się na "banowanie" otwiera się kolejne gui z wyborą banu itd. Tylko chce wiedziec jak to sie robi nie musicie mi calego skryptu budowac ? Błagam o pomoc.

Opublikowano

Hmm. Dokładnie TuSKe będzie bardzo dobrym dodatkiem do GUI.

 

Na początek wypadałoby przekazać to zmienną z playerem dalej.

A najłatwiej otworzyć drugie EQ:
zrobić command /testoweGUI2: open gui bla bla

a w tym pierwszym execute player command /testowegui2, banalne ?

Opublikowano

@malpii,

Tutaj masz przykład skryptu z użyciem TuSKE:
 

Spoiler

command /drop [<text>]:		
	trigger:			
		if argument 1 is not set:		
			open virtual chest inventory named "&9Menu Dropu" to player
			format gui slot 0 of player with diamond named "&b0.5%%" to close
			format gui slot 1 of player with emerald named "&a0.4%%" to close
			format gui slot 2 of player with gold ingot named "&b1%%" to close
			format gui slot 3 of player with iron ingot named "&a1.2%%" to close
			format gui slot 4 of player with lapis named "&b1.4%%" to close
			format gui slot 5 of player with redstone named "&a1.7%%" to close
			format gui slot 6 of player with coal named "&b2%%" to close
			format gui slot 7 of player with nether quartz named "&a1.2%%" to close
			format gui slot 8 of player with slimeball named "&b0.3%%" to close
			format gui slot 9 of player with apple named "&a1%%" to close
			format gui slot 10 of player with wither skeleton skull named "&b0.01%%" to close
			format gui slot 11 of player with beacon named "&a0.001%%" to close
			format gui slot 23 of player with paper named "&cStatystyki" to close then run player command "/drop stats"
			format gui slot 24 of player with player head named "&cRanking" to close
			format gui slot 25 of player with cobblestone named "&cOn/Off" to close then run player command "/drop stone"
			format gui slot 26 of player with barrier named "&cAdmin Zone" to close then run player command "/drop az"
		if argument 1 is "stone":
			if {stone.%player%} is on:			
				set {stone.%player%} to off
				send player title "&9Cobblestone" with subtitle "&cWyłączony" for 2 seconds
			else:	
				set {stone.%player%} to on
				send player title "&9Cobblestone" with subtitle "&aWłączony" for 2 seconds
		if argument 1 is "stats":	
			open virtual chest inventory named "&9Statystyki Dropu" to player
			format gui slot 0 of player with diamond named "" with lore "&b%{diamond.%player%}%" to close
			format gui slot 1 of player with emerald named "" with lore "&b%{emerald.%player%}%" to close
			format gui slot 2 of player with gold ingot named "" with lore "&b%{gold.%player%}%" to close
			format gui slot 3 of player with iron ingot named "" with lore "&b%{iron.%player%}%" to close
			format gui slot 4 of player with lapis named "" with lore "&b%{lapis.%player%}%" to close
			format gui slot 5 of player with redstone named "" with lore "&b%{redstone.%player%}%" to close
			format gui slot 6 of player with coal named "" with lore "&b%{coal.%player%}%" to close
			format gui slot 7 of player with nether quartz named "" with lore "&b%{quartz.%player%}%" to close
			format gui slot 8 of player with slimeball named "" with lore "&b%{slimeball.%player%}%" to close
			format gui slot 9 of player with apple named "" with lore "&b%{apple.%player%}%" to close
			format gui slot 10 of player with wither skeleton skull named "" with lore "&b%{skull.%player%}%" to close
			format gui slot 11 of player with beacon named "" with lore "&b%{beacon.%player%}%" to close
			format gui slot 26 of player with red stained glass named "&cWstecz" to close then run player command "/drop"
		if argument 1 is "az":
			if player has permission "drop.adminzone":			
				open virtual chest inventory named "&9Admin Zone" to player
				if {procent.drop} is off:		
					format gui slot 0 of player with red concrete named "&aDrop +1%%" to close then run player command "/dpj"
				if {procent.drop} is on:	
					format gui slot 0 of player with red concrete named "&aNormalny drop" to close then run player command "/dpj"

 

Wiem, że to drop, ale tylko taki z mojej kolekcji mogę Ci udostępnić.

  • sk8erace1 zmienił(a) tytuł na GUI otwierające drugie menu

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...