Skocz do zawartości
  • 0

SKlep w gui


Usunięty#1209
 Udostępnij

Pytanie

command /sklep:
	trigger:
		open chest with 5 rows named "&e» &aSklep" to player
		wait 1 tick
		format slot 0 of player with 1 of Diamond helmet named "&e» &aDiamentowy Helm" with lore "&e» &aCena : &e8500$||&e» &aProt 4 ||&e» &aUnbreaking 3 " to close then run "/ssklep %player% dh4"
command /ssklep [<player>] [<text>]:
	trigger:
		if arg 1 is player:
			if arg 2 is "dh4":
				if {monet::%player-arg%} is bigger than 8500:
					add 1 diamond helmet of protection 4 and unbreaking 3 to player-arg
					remove 8500 from {monet::%player-arg%}
				else:
					send "Nie masz pieniedzy"

Problem polega na tym ze nie dodaje itemku po zakupie
Moze ktos to naprawic

 

~~Z gory dzieki

Odnośnik do komentarza
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Nadal nic

command /sklep:
	trigger:
		open chest with 5 rows named "&e» &aSklep" to player
		wait 1 tick
		format slot 0 of player with 1 of Diamond helmet named "&e» &aDiamentowy Helm" with lore "&e» &aCena : &e8500$||&e» &aProt 4 ||&e» &aUnbreaking 3 " to close then run "/ssklep %player% dh4"
command /ssklep [<player>] [<text>]:
	trigger:
		if arg 2 is "dh4":
			if {monet::%player-arg%} is bigger than 8500:
				add 1 diamond helmet of protection 4 and unbreaking 3 to player-arg
				remove 8500 from {monet::%player-arg%}
			else:
				send "Nie masz pieniedzy" to player-arg

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /sklep:
	trigger:
		open chest with 5 rows named "&e» &aSklep" to player
		wait 1 tick
		format slot 0 of player with 1 of Diamond helmet named "&e» &aDiamentowy Helm" with lore "&e» &aCena : &e8500$||&e» &aProt 4 ||&e» &aUnbreaking 3 " to close then run [execute player command "/ssklep dh4"]
command /ssklep [<text>]:
	trigger:
		if arg 1 is "dh4":
			if {monet::%player%} >= 8500:
				add 1 diamond helmet of protection 4 and unbreaking 3 to player
				remove 8500 from {monet::%player%}
			else:
				send "Nie masz pieniedzy"

 

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ę...