Skocz do zawartości
  • 0

Zmienianie kolorow zbroi w GUI


Pytanie

Witam. Czy ktos mi przerobi skrypt ... Ten skrypt jest na to ze po komendzie otwiera mi sie gui z leather helmet (Przykladowo) ktory jest zabarwiony na niebiesko a chce zeby bylo tak ze kolor niebieski (czeka 0.5 sekund) kolor czerwony i tak zeby moze bylo w loop zeby tak sie powtarzalo. Oto Skrypt:

command /testy:
    trigger:
        open chest with 6 rows named "Disco XD" to player
        loop 999999999999 times:
            set {_item} to leather helmet
            dye {_item} (0, 0, 255)
            format slot 0 of player with 1 of {_item} named "Tryb :D" to be unstealable

 

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/38327-zmienianie-kolorow-zbroi-w-gui/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /testy:
	trigger:
		open chest with 6 rows named "Disco XD" to player
		set {_kolor} to 1
		set player's current inventory's slot 0 to leather helmet
		while inventory name of current inventory of player is "Disco XD":
			if {_kolor} is 1:
				dye (player's current inventory's slot 0) (0, 0, 255)
			if {_kolor} is 2:
				dye (player's current inventory's slot 0) (0, 255, 0)
			if {_kolor} is 3:
				dye (player's current inventory's slot 0) (255, 0, 0)
			add 1 to {_kolor}
			if {_kolor} is 4:
				set {_kolor} to 1
			wait 0.5 second
on inventory click:
	if inventory name of current inventory of player is "Disco XD":
		cancel event

 

Odnośnik do komentarza
https://skript.pl/temat/38327-zmienianie-kolorow-zbroi-w-gui/#findComment-242078
Udostępnij na innych stronach

  • 0

nie juz dziala chodzi o to ze to musialem przerobic i dziala tylko chcialbym zebys mi zrobil tak aby ciagle sie zmienialo a nie zeby sie zmienilo i juz KOD:

command /testy:
    trigger:
        open chest with 6 rows named "Disco XD" to player
        set {_kolor} to 1
        set {_helm} to leather helmet
        while inventory name of current inventory of player is "Disco XD":
            loop 99999999 times:
                if {_kolor} is 1:
                    dye {_helm} (0, 0, 255)
                    set player's current inventory's slot 0 to {_helm}
                if {_kolor} is 2:
                    dye {_helm} (255, 0, 0)
                    set player's current inventory's slot 0 to {_helm}
                add 1 to {_kolor}
                if {_kolor} is 3:
                    set {_kolor} to 1
                wait 0.5 seconds
on inventory click:
    if inventory name of current inventory of player is "Disco XD":
        cancel event

(TEN KOD DZIALA TAMTEN NIE :P)

 

Temat do zamkniecia :D

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

xAxee

Łącze posty

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/38327-zmienianie-kolorow-zbroi-w-gui/#findComment-242125
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ę...