Skocz do zawartości
  • 0

Problem z SkQuery


TermitCG

Pytanie

Cześć!

Jak pewnie wiecie w skqery kiedy po poleceniu format wpiszemy "[...]to close then run "komenda"" GUI zostanie zamknięte i zostanie wykonana ta komenda...

Przez konsolę. No właśnie. Chciałbym żeby ta komenda została wykonana przez gracza, a nie konsolę.

Oto skrypt z którym mam problem:
 

command /zestawy:
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 0 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run "kitywguigracz"
		format slot 1 of player with 1 of iron boots named "&e&lKIT VIP" to close then run "kitywguivip"
		format slot 2 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run "kitywguisvip"
		format slot 3 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run "kitywguisponsor"
		format slot 4 of player with 1 of white glass pane named " " to be unstealable
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
		format slot 7 of player with 1 of white glass pane named " " to be unstealable
		format slot 8 of player with 1 of white glass pane named " " to be unstealable
command /kitywguigracz:
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 ender chest named "&7&lKIT GRACZ" to player
command /kitywguivip:
	trigger:
		if player has permission "kitywgui.vip":
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 2 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 4 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 4 named "&e&lKIT VIP" to player
			give 1 diamond leggings of protection 4 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 4 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
		else:
			send "&4Brak Permisji!" to player

NAGRODA ZA POMOC: Like.

Edytowane przez Kurotsuwa
Odnośnik do komentarza
https://skript.pl/temat/34253-problem-z-skquery/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Aktualny kod:

command /zestawy:
	trigger:
		open chest with 1 rows named "&8[ &3MDropHC.pl &8] &7- &r&lKITY" to player
		format slot 0 of player with 1 of chainmail boots named "&7&lKIT GRACZ" to close then run [ make player execute command kitywguigracz ]
		format slot 1 of player with 1 of iron boots named "&e&lKIT VIP" to close then run [ make player execute command kitywguivip ]
		format slot 2 of player with 1 of iron boots named "&6&lKIT &e&ls&6&lVIP" to close then run [ make player execute command kitywguisvip ]
		format slot 3 of player with 1 of iron boots named "&3&lKIT SPONSOR" to close then run [ make player execute command kitywguisponsor ]
		format slot 4 of player with 1 of white glass pane named " " to be unstealable
		format slot 5 of player with 1 of white glass pane named " " to be unstealable
		format slot 6 of player with 1 of white glass pane named " " to be unstealable
		format slot 7 of player with 1 of white glass pane named " " to be unstealable
		format slot 8 of player with 1 of white glass pane named " " to be unstealable
command /kitywguigracz:
	trigger:
		give 1 diamond pickaxe of efficiency 3 named "&7&lKIT GRACZ" to player
		give 1 boat named "&7&lKIT GRACZ" to player
		give 1 ender chest named "&7&lKIT GRACZ" to player
command /kitywguivip:
	trigger:
		if player has permission "kitywgui.vip":
			give 1 diamond pickaxe of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond sword of fire aspect 2 named "&e&lKIT VIP" to player
			give 1 diamond shovel of efficiency 5 named "&e&lKIT VIP" to player
			give 1 diamond helmet of protection 4 named "&e&lKIT VIP" to player
			give 1 diamond chestplate of protection 4 named "&e&lKIT VIP" to player
			give 1 diamond leggings of protection 4 named "&e&lKIT VIP" to player
			give 1 diamond boots of protection 4 named "&e&lKIT VIP" to player
			give 3 enchanted golden apple named "&e&lKIT VIP" to player
			give 5 golden apple named "&e&lKIT VIP" to player
		else:
			send "&4Brak Permisji!" to player

NIE PYKA!

Odnośnik do komentarza
https://skript.pl/temat/34253-problem-z-skquery/#findComment-220442
Udostępnij na innych stronach

  • 0

Jeżeli koniecznie chcesz siedzieć przy tym zbugowanym SkQuery to już twoja sprawa. Prawdopodobnie kod zadziała po usunięciu tych spacji przed i po nawiasie kwadratowym.

Gdybyś był ciekawy jak to działa to jest to lambda i możesz do niej znaleźć poradniki na forum.

 

Osobiście polecam gui z TuSKe:

format gui slot %integers% of %player% with %itemstack% to run (player|console) command %string%

 

Edytowane przez ZiemniaQ
Odnośnik do komentarza
https://skript.pl/temat/34253-problem-z-skquery/#findComment-220445
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ę...