Skocz do zawartości
  • 0

Kopalnie


nike61

Pytanie

command /sektory [<text>]:
	trigger:
		open chest with 1 rows named "&6Sektory" to player
		set {_s} to 3
		loop ("A", "B", "C"):
			if {sektor::%player%} is loop-value:
				set player's current inventory's slot {_s} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
			else:
				set player's current inventory's slot {_s} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor"
			add 1 to {_s}
on inventory click:
	if inventory name of current inventory of player is "&6Sektory":
		cancel event
		if clicked slot is 3:
			execute console command "Sektor A %player%"
			set {sektor::%player%} to "A"
		if clicked slot is 4:
			execute console command "Sektor B %player%"
			set {sektor::%player%} to "B"
		if clicked slot is 5:
			execute console command "Sektor C %player%"
			set {sektor::%player%} to "C"

 

Pomoże mi ktoś w skrypcie?

Chodzi mi o to aby po kliknięciu przeteleportowało gracza na /warp A, /warp B, /warp C itp.

Edytowane przez BrixNW
formatowanie
TakiJakTy

Temat został zamknięty z powodu braku aktywności autora.

Notatka dodana przez TakiJakTy

Odnośnik do komentarza
https://skript.pl/temat/36603-kopalnie/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
command /sektory [<text>]:
	trigger:
		open chest with 1 rows named "&6Sektory" to player
		set {_s} to 3
		loop ("A", "B", "C"):
			if {sektor::%player%} is loop-value:
				set player's current inventory's slot {_s} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
			else:
				set player's current inventory's slot {_s} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor"
			add 1 to {_s}
on inventory click:
	if inventory name of current inventory of player is "&6Sektory":
		cancel event
		if clicked slot is 3:
			execute console command "warp A %player%"
			set {sektor::%player%} to "A"
		if clicked slot is 4:
			execute console command "warp B %player%"
			set {sektor::%player%} to "B"
		if clicked slot is 5:
			execute console command "warp C %player%"
			set {sektor::%player%} to "C"

 

Odnośnik do komentarza
https://skript.pl/temat/36603-kopalnie/#findComment-233705
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ę...