Skocz do zawartości
  • 0

Skrypt na kity w gui


creepek

Pytanie

Witam mam kolejne pytanie,

jak mogę zrobić aby się dało brać zestawy komendą /kit

Narazie normalnie działa, tylko jak biorę kit (z pluginu essentails, czy jak się to tam pisze) to pisze "Correct usage: /kit"

command /kit:
	trigger:
		open chest with 5 rows named "&6&lKox&2&lMc &8&l>> &cKity" to player
		wait 3 ticks
		set {i::%player%} to 0
		loop 10 times:
			format slot {i::%player%} of player with 1 Red Stained Glass Pane named " " to close
			add 1 to {i::%player%}
		format slot 10 of player with 1 iron chestplate named "&aKit Gracz" to close then run [execute player command "kit gracz"]
		format slot 11 of player with 1 gold chestplate named "&aKit Vip" to close then run [execute player command "kit vip"]
		format slot 12 of player with 1 diamond chestplate named "&aKit SuperVip" to close then run [execute player command "kit supervip"]
		format slot 13 of player with 1 diamond chestplate of protection 99 named "&aKit Sponsor" to close then run [execute player command "kit sponsor"]
		format slot 14 of player with 1 ender chest named "&aKit EnderChest" to close then run [execute player command "kit enderchest"]
		format slot 15 of player with 1 Oak Wood named "&aKit Drewno" to close then run [execute player command "kit drewno"]
		format slot 16 of player with 1 Cooked Chicken named "&aKit Jedzenie" to close then run [execute player command "kit jedzenie"]
		set {i::%player%} to 17
		loop 28 times:
			format slot {i::%player%} of player with 1 Red Stained Glass Pane named "" to close
			add 1 to {i::%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/17343-skrypt-na-kity-w-gui/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 minutę temu, SirGeorge napisał:

zmien /kit na jakas inna komende bo komenda z essentials i skrypt gryza sie.

No ale ja chciałbym /kit aby otwierało gui a nie piasło jakieś "Zestawy: ble, ble, ble" i można było z tego brać zestaw np /kit gracz

Odnośnik do komentarza
https://skript.pl/temat/17343-skrypt-na-kity-w-gui/#findComment-118657
Udostępnij na innych stronach

  • 0

nie trzeba :)

on command "/kit":
	if arg-1 is not set:
		open chest with 5 rows named "&6&lKox&2&lMc &8&l>> &cKity" to player
		wait 3 ticks
		set {i::%player%} to 0
		loop 10 times:
			format slot {i::%player%} of player with 1 Red Stained Glass Pane named " " to close
			add 1 to {i::%player%}
		format slot 10 of player with 1 iron chestplate named "&aKit Gracz" to close then run [execute player command "kit gracz"]
		format slot 11 of player with 1 gold chestplate named "&aKit Vip" to close then run [execute player command "kit vip"]
		format slot 12 of player with 1 diamond chestplate named "&aKit SuperVip" to close then run [execute player command "kit supervip"]
		format slot 13 of player with 1 diamond chestplate of protection 99 named "&aKit Sponsor" to close then run [execute player command "kit sponsor"]
		format slot 14 of player with 1 ender chest named "&aKit EnderChest" to close then run [execute player command "kit enderchest"]
		format slot 15 of player with 1 Oak Wood named "&aKit Drewno" to close then run [execute player command "kit drewno"]
		format slot 16 of player with 1 Cooked Chicken named "&aKit Jedzenie" to close then run [execute player command "kit jedzenie"]
		set {i::%player%} to 17
		loop 28 times:
			format slot {i::%player%} of player with 1 Red Stained Glass Pane named "" to close
			add 1 to {i::%player%}

 

Edytowane przez kaol48s
Odnośnik do komentarza
https://skript.pl/temat/17343-skrypt-na-kity-w-gui/#findComment-118660
Udostępnij na innych stronach

  • 0
10 minut temu, kaol48s napisał:

nie trzeba :)


on command "/kit":
	if arg-1 is not set:
		open chest with 5 rows named "&6&lKox&2&lMc &8&l>> &cKity" to player
		wait 3 ticks
		set {i::%player%} to 0
		loop 10 times:
			format slot {i::%player%} of player with 1 Red Stained Glass Pane named " " to close
			add 1 to {i::%player%}
		format slot 10 of player with 1 iron chestplate named "&aKit Gracz" to close then run [execute player command "kit gracz"]
		format slot 11 of player with 1 gold chestplate named "&aKit Vip" to close then run [execute player command "kit vip"]
		format slot 12 of player with 1 diamond chestplate named "&aKit SuperVip" to close then run [execute player command "kit supervip"]
		format slot 13 of player with 1 diamond chestplate of protection 99 named "&aKit Sponsor" to close then run [execute player command "kit sponsor"]
		format slot 14 of player with 1 ender chest named "&aKit EnderChest" to close then run [execute player command "kit enderchest"]
		format slot 15 of player with 1 Oak Wood named "&aKit Drewno" to close then run [execute player command "kit drewno"]
		format slot 16 of player with 1 Cooked Chicken named "&aKit Jedzenie" to close then run [execute player command "kit jedzenie"]
		set {i::%player%} to 17
		loop 28 times:
			format slot {i::%player%} of player with 1 Red Stained Glass Pane named "" to close
			add 1 to {i::%player%}

 

Nooo... :) i na takie coś czekałem ;) łap lajka i naj ;)

Odnośnik do komentarza
https://skript.pl/temat/17343-skrypt-na-kity-w-gui/#findComment-118662
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ę...