Skocz do zawartości
  • 0

PREMIUM CASE + KLUCZE


xPatrykPlayX
 Udostępnij

Pytanie

Witam, napisalby ktos mi skrypt na Premium Case + Klucze. Skrypt by mial sluzyc do uzytku do serwera ale szczegolnie ItemShop. Consola ma rozpoznawac komendy /premiumcase give NICK i /premiumcase key NICK . A skrypt ma polegac ze gdy  gracz postawi skrzynke otwiera sie GUI i losuje sie ITEM :)

 

Prosze o pomoc

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Wymaga pluginu Skript i skQuery:

on rightclick:
	if player is holding tripwire hook named "&9Klucz do Chroma Case II":
		if player have chest named "&9Chroma Case II":
			remove 1 chest named "&9Chroma Case II" from the player
			remove 1 tripwire hook named "&9Klucz do Chroma Case II" from the player
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of diamond named "Diament ze skrzynki" to close then run "give %player% diamond"
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of emerald named "Szmaragd ze skrzynki" to close then run "give %player% emerald"
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of stone named "Kamien ze skrzynki" to close then run "give %player% stone"
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of dirt named "Ziemia ze skrzynki" to close then run "give %player% dirt"
		else:
			send "&9Aby to zrobic, potrzebujesz skrzynki!" to player
	else:
		stop

on rightclick:
	if player is holding chest named "&9Chroma Case II":
		send "&9Aby otworzyc skrzynke, uzyj klucza!" to player
	else:
		stop

command /dajskrzynie [<player>]:
	permission: daj.skrzynie
	trigger:
		give player chest named "&9Chroma Case II"

command /dajklucz [<player>]:
	permission: daj.klucz
	trigger:
		give player tripwire hook named "&9Klucz do Chroma Case II"

on place of a chest:
	if event-block is chest named "&9Chroma Case II":
		cancel event
	else:
		stop

on place of a tripwire hook:
	if event-block is tripwire hook named "&9Klucz do Chroma Case II":
		cancel event
	else:
		stop

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
14 godzin temu, ICD10 napisał:

Wymaga pluginu Skript i skQuery:

on rightclick:
	if player is holding tripwire hook named "&9Klucz do Chroma Case II":
		if player have chest named "&9Chroma Case II":
			remove 1 chest named "&9Chroma Case II" from the player
			remove 1 tripwire hook named "&9Klucz do Chroma Case II" from the player
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of diamond named "Diament ze skrzynki" to close then run "give %player% diamond"
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of emerald named "Szmaragd ze skrzynki" to close then run "give %player% emerald"
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of stone named "Kamien ze skrzynki" to close then run "give %player% stone"
			chance of 25%:
				open chest with 1 row named "&9Chroma Case II" to player
				wait 1 tick
				format slot 4 of player with 1 of dirt named "Ziemia ze skrzynki" to close then run "give %player% dirt"
		else:
			send "&9Aby to zrobic, potrzebujesz skrzynki!" to player
	else:
		stop

on rightclick:
	if player is holding chest named "&9Chroma Case II":
		send "&9Aby otworzyc skrzynke, uzyj klucza!" to player
	else:
		stop

command /dajskrzynie [<player>]:
	permission: daj.skrzynie
	trigger:
		give player chest named "&9Chroma Case II"

command /dajklucz [<player>]:
	permission: daj.klucz
	trigger:
		give player tripwire hook named "&9Klucz do Chroma Case II"

on place of a chest:
	if event-block is chest named "&9Chroma Case II":
		cancel event
	else:
		stop

on place of a tripwire hook:
	if event-block is tripwire hook named "&9Klucz do Chroma Case II":
		cancel event
	else:
		stop

 

Okej a nie moglbys dodac ze skrzynke trzeba stawiac a nie klucz i ze itemy dropia na ziemia tak jak na DragonSurviva l?

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