Skocz do zawartości
  • 0

Pomocy - Sklep Gui


Ekipa Szymka i Bananka
 Udostępnij

Pytanie

Gdzie tu jest błąd?

command /sklep [<text>]:
    trigger:
        if argument 1 is not set:
            open chest with 1 rows named "&a&lSKLEP" to player
            wait 1 tick
            format slot 1 of player with 1 of 310 of protection 10 named "&bZajebisty Chelm" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem diaxee"]
            format slot 2 of player with 1 of 311 of protection 10 named "&bZajebista Klata" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem diaxeee"]
            format slot 3 of player with 1 of 312 of protection 10 named "&bZajebiste Spodnie" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem kupszklo"]
            format slot 4 of player with 1 of 313 of protection 10 named "&bZajebiste Buty" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem kupblokkwarcu"]
            format slot 7 of player with 1 of 276 of protection 10 named "&bZajebisty Miecz" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem kupkowadlo"]
			
#Chełm		
command /sklepitem [<text>]:
    trigger:
        if arg 1 is "diaxee":
            if player have 128 diamond:
                remove 128 diamond from player
                give diamond helmet named "&bZajebisty Chelm" to player
				send "ZdobyłeŚ &bZajebisty Chelm!" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop
				
		if arg 1 is "diaxeee":
            if player have 128 diamond:
                remove 128 diamond from player
                give diamond chestplate named "&bZajebista Klata" to player
				send "ZdobyłeŚ &bZajebista Klate" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop
				

Nie moge kupić klatki piersiowej

Edytowane przez Ekipa Szymka i Bananka
Odnośnik do komentarza
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Poprawiłem, i działa jak należy!:

command /sklep [<text>]:
    trigger:
        if argument 1 is not set:
            open chest with 1 rows named "&a&lSKLEP" to player
            wait 1 tick
            format slot 1 of player with 1 of 310 of protection 10 named "&bZajebisty Chelm" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem helm"]
            format slot 2 of player with 1 of 311 of protection 10 named "&bZajebista Klata" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem klata"]
            format slot 3 of player with 1 of 312 of protection 10 named "&bZajebiste Spodnie" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem spodnie"]
            format slot 4 of player with 1 of 313 of protection 10 named "&bZajebiste Buty" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem buty"]
            format slot 7 of player with 1 of 276 of protection 10 named "&bZajebisty Miecz" with lore "&bCena&7: &7>>&8128 &bDiaxy" to run [make player execute "/sklepitem miecz"]
			
#Chełm		
command /sklepitem [<text>]:
    trigger:
        if arg 1 is "helm":
            if player has 128 diamond:
                remove 128 diamond from player's inventory
                give diamond helmet named "&bZajebisty Chelm" to player
                send "ZdobyłeŚ &bZajebisty Chelm!" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop
				
        if arg 1 is "klata":
            if player has 128 diamond:
                remove 128 diamond from player's inventory
                give diamond chestplate named "&bZajebista Klata" to player
                send "ZdobyłeŚ &bZajebista Klate!" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop
                
        if arg 1 is "spodnie":
            if player has 128 diamond:
                remove 128 diamond from player's inventory
                give diamond Leggings named "&bZajebiste Spodnie" to player
                send "ZdobyłeŚ &bZajebiste Spodnie!" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop
                
        if arg 1 is "buty":
            if player has 128 diamond:
                remove 128 diamond from player's inventory
                give diamond boots named "&bZajebiste Buty" to player
                send "ZdobyłeŚ &bZajebiste Buty!" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop
                
        if arg 1 is "miecz":
            if player has 128 diamond:
                remove 128 diamond from player's inventory
                give diamond sword named "&bZajebisty Miecz" to player
                send "ZdobyłeŚ &bZajebisty Miecz!" to player
                stop
            else:
                send "&cMusisz posiadac 128 Diamentów w ekwipunku!"
                stop

 

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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