Skocz do zawartości
  • 0

Pilne Skrypt na fly


mrszmi1233
 Udostępnij

Pytanie

Proszę o napisanie skryptu na kupno fly na spigota 1.12 

Jak się wpisze na czacie /fly to się otwiera GUI z sklepem za złoto np 10 min fly za 20 złota , 2 produkt to fly na 30 min za 60 złota . Jak ktoś umie to może dodać takie coś ze jak się kupi fly to wyświetla się tabelka obok z napisem fly na ilość min . 

Dziękuję za pomoc i mam jeszcze jedną prośbę żebyście napisali jakie do tego skryptu mają być dodatki . 

DZIĘKUJĘ ZA POŚWIĘCONY CZAS !

Odnośnik do komentarza
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /fly [<text="gui">]:
	trigger:
		if argument 1 is "gui":
			open chest with 3 rows named "&8» &6Fly &8«" to player
			format slot 14 of player with 20 gold ingot named "&8» &c10 minut &8«" with lore "&8• &9Koszt: &c20 zlota" to close then run [make player execute command "fly1"]
			format slot 15 of player with 60 gold ingot named "&8» &c30 minut &8«" with lore "&8• &9Koszt: &c60 zlota" to close then run [make player execute command "fly2"]
		if argument 1 is "1":
			if player has 20 gold ingot:
				remobe 20 gold ingot from the player's inventory
				set {fly::timer::minute::%player%} to 9
				set {fly::timer::seconds::%player%} to 59
				set {fly::%player%} to true
				apply flight to the player
				send "&8• &3» &6Fly zostal &aaktywowany &8(&c10 minut&8)" to the player
				stop
			else:
				send "&8• &4&lBlad: &cNie posiadasz 20 zlota" to the player
				stop
		if argument 1 is "2":
			if player has 60 gold ingot:
				remove 60 gold ingot from the player's inventory
				set {fly::timer::minute::%player%} to 29
				set {fly::timer::seconds::%player%} to 59
				set {fly::%player%} to true
				allow flight for player
				send "&8• &3» &6Fly zostal &aaktywowany &8(&c10 minut&8)" to the player
				stop
			else:
				send "&8• &4&lBlad: &cNie posiadasz 60 zlota" to the player
				stop
every seconds:
	loop all players:
		if {fly::%loop-player%} is true:
			subtract 1 from {fly::timer::seconds::%loop-player%}
			if {fly::timer::seconds::%loop-player%} = 0:
				subtract 1 from {fly::timer::minute::%loop-player%}
				if {fly::timer::minute::%loop-player%} = 0:
					set {fly::%loop-player%} to false
					disallow flight for player
					send "&8• ◄ &4Czas sie skonczyl &8► •" to the loop-player
					stop
			display board named "&8• &3&lFLY &8•" to loop-player
			make score "&8 &6Pozostaly czas: &9%{fly::timer::minute::%loop-player%}::%{fly::timer::seconds::%loop-player%}% in board of loop-player to 1
			move display of loop-player to sidebar

Liczę na najlepszą odpowiedź oraz like ;p

Edytowane przez esej
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ę...