Skocz do zawartości
  • 0

SKRYPT NA GUI


gnomq

Pytanie

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /gui [<text>]:
  	trigger:
  		open chest with 1 row named "gui dla gnomq" to player
  		wait 4 tick
  		set player's current inventory's slot 0 to stone named "nazwa" with lore "opis"
  
on inventory click:
  	if inventory name of current inventory of player is "gui dla gnomq":
  		cancel event
  

 

Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197877
Udostępnij na innych stronach

  • 0
8 minut temu, LjayPL789 napisał:

command /gui [<text>]:
  	trigger:
  		open chest with 1 row named "gui dla gnomq" to player
  		wait 4 tick
  		set player's current inventory's slot 0 to stone named "nazwa" with lore "opis"
  
on inventory click:
  	if inventory name of current inventory of player is "gui dla gnomq":
  		cancel event
  

 

Nie pokazuje przedmiotu w GUI. 0 błędów

Edytowane przez gnomq2000
Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197882
Udostępnij na innych stronach

  • 0

Hmm...
A format slot Ci będzie działał (tak wiem, nie powinno się tego używać).
 

command /gui [<text>]:
  	trigger:
  		set {klik::%player%} to true
  		open chest with 1 row named "gui dla gnomq" to player
  		wait 4 tick
		format slot 4 of player with 1 of stone named "nazwa" with lore "opis" to be unstealable
  
on inventory click:
  	if inventory name of current inventory of player is "gui dla gnomq":
		if clicked slot is 4:
  			cancel event
  			set {klik::%player%} to false
  
on inventory close:
  	if inventory name of current inventory of player is "gui dla gnomq":
  		set {klik::%player%} to false
  
on rightclick with chest:
	if {klik::%player%} is true:
  		cancel event
  		send "&4&lUWAGA! &7%player% &cbuguje /gui!" to all ops



 

Edytowane przez LjayPL789
Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197883
Udostępnij na innych stronach

  • 0
12 minut temu, LjayPL789 napisał:

Hmm...
A format slot Ci będzie działał (tak wiem, nie powinno się tego używać).
 


command /gui [<text>]:
  	trigger:
  		set {klik::%player%} to true
  		open chest with 1 row named "gui dla gnomq" to player
  		wait 4 tick
		format slot 4 of player with 1 of stone named "nazwa" with lore "opis" to be unstealable
  
on inventory click:
  	if inventory name of current inventory of player is "gui dla gnomq":
		if clicked slot is 4:
  			cancel event
  			set {klik::%player%} to false
  
on inventory close:
  	if inventory name of current inventory of player is "gui dla gnomq":
  		set {klik::%player%} to false
  
on rightclick with chest:
	if {klik::%player%} is true:
  		cancel event
  		send "&4&lUWAGA! &7%player% &cbuguje /gui!" to all ops



 

To samo. Nie widać itemu

Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197889
Udostępnij na innych stronach

  • 0
Gość Usunięty#5541
command /gui:
    trigger:
        open virtual chest inventory named "GUI" to player
        set {_przedmiot} to dirt named "Nazwa"
        set line 1 of lore of {_przedmiot} to "Opis"
        format gui slot 0 of player with {_przedmiot}

Proszę bardzo, wymagany plugin TuSke.

Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197891
Udostępnij na innych stronach

  • 0
12 minut temu, BrixNW napisał:

command /gui:
    trigger:
        open virtual chest inventory named "GUI" to player
        set {_przedmiot} to dirt named "Nazwa"
        set line 1 of lore of {_przedmiot} to "Opis"
        format gui slot 0 of player with {_przedmiot}

Proszę bardzo, wymagany plugin TuSke.

Jak dodać do tego żeby po kliknięciu wykonywało mi akcje?

Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197895
Udostępnij na innych stronach

  • 0
Gość Usunięty#5541

Masz, wybierz co potrzebujesz:

        format gui slot 0 of player with stone named "It won't do anything"
        format gui slot 1 of player with stone named "It will just close" to close
        format gui slot 2 of player with stone named "It will just close but only with pressing a number key" to close using number key
        format gui slot 3 of player with stone named "It will make the player execute a command, but he might not have permission" to run player command "/gui"
        format gui slot 4 of player with stone named "It will make the player execute a command with ""*"" permission" to run player command "/gui" with permission "*"
        format gui slot 5 of player with stone named "It will make the console execute a command" to run console command "/gui"
        format gui slot 6 of player with stone named "It will run the function doSomething()" to run function doSomething()
        format gui slot 7 of player with stone named "It will close and then run the function doSomething()" to close then run function doSomething()
        format gui slot 8 of player with stone named "It will run doSomething() if you click on it with a stone" to run function doSomething() with cursor stone
        format gui slot 9 of player with stone named "It will run the gui event" to run gui event

 

Odnośnik do komentarza
https://skript.pl/temat/30209-skrypt-na-gui/#findComment-197897
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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