Skocz do zawartości
  • 0

Moglby ktos mi przerobic skrypt na limity zeby zamiast wlatywac do schowka wlatywala do enderchestu ?


Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

nastepnym razem dawaj tak ja jak w SPOJLERZE a potem w KOD a nie aby zaslanialo 3/4 strony a pozatym zrobilem tak aby jak gracz ma miejsce to da mu do enderchesta a jak nie ma to do /schowek

Spoiler

#Skrypt by Entify
#Zakaz podawania sie pod autora owego Skryptu
#
#
#          -------------[ SEKCJA KONFIGURACJI ]-------------
#
#
variables:
	{limit.kox} = true
#czy limit koxow ma byc wlaczony
	{limit.ref} = true
#czy limit refow ma byc wlaczony
	{limit.perla} = true
#czy limit perel ma byc wlaczony

	{kox::%player%} = 0
	# nie ruszaj
	{ref::%player%} = 0
	#nie ruszaj
	{perla::%player%} = 0
	#nie ruszaj
	
options:
	limit.koxy: 4
#jaki jest limit koxow
	limit.refy: 12
#jaki jest limit refow
	limit.perla: 3
#jaki jest limit perel
	limit.check: 2
#co ile sekund ma sprawdzac ekwipunek gracza

#
#                ---[    SEKCJA KODU    ]---
#      -- DALEJ NIC NIE DOTYKAJ JAK SIE NIE ZNASZ --
#
every {@limit.check} second:
	loop all players:
		if {limit.ref} is true:
			set {_ref} to number of golden apple:0 in loop-player's inventory
			if {_ref} is more than {@limit.refy}:
				set {_match.ref} to {_ref}-{@limit.refy}
				remove {_match.ref} of golden apple:0 from loop-player
				set {_match.ref} to {_match.ref} parsed as integer
				if loop-player's enderchest have space for {_match.ref} of golden apple:0:
					give {_match.ref} of golden apple:0 to loop-player's enderchest
					send "&8» &7Posiadales przy sobie &a%{_ref}% refili&7, &a%{_match.ref}% &7zostaje odlozone do twojego &aenderchesta." to loop-player
				else:
					add {_match.ref} to {ref::%loop-player%}
					send "&8» &7Posiadales przy sobie &a%{_ref}% refili&7, &a%{_match.ref}% &7zostaje odlozone do twojego &aschowka." to loop-player
		if {limit.kox} is true:
			set {_kox} to number of golden apple:1 in loop-player's inventory
			if {_kox} is more than {@limit.koxy}:
				set {_match.kox} to {_kox}-{@limit.koxy}
				remove {_match.kox} of golden apple:1 from loop-player
				set {_match.kox} to {_match.kox} parsed as integer
				if loop-player's enderchest have space for {_match.kox} of golden apple:1:
					give {_match.kox} of golden apple:1 to loop-player's enderchest
					send "&8» &7Posiadales przy sobie &a%{_kox}% koxow&7, &a%{_match.kox}% &7zostaje odlozone do twojego &aenderchesta." to loop-player			
				else:
					add {_match.kox} to {kox::%loop-player%}
					send "&8» &7Posiadales przy sobie &a%{_kox}% koxow&7, &a%{_match.kox}% &7zostaje odlozone do twojego &aschowka." to loop-player			
		if {limit.perla} is true:
			set {_perla} to number of ender pearl in loop-player's inventory
			if {_perla} is more than {@limit.perla}:
				set {_match.perla} to {_perla}-{@limit.perla}
				remove {_match.perla} of ender pearl from loop-player
				set {_match.perla} to {_match.perla} parsed as integer
				if loop-player's enderchest have space for {_match.perla} of ender pearl:
					give {_match.perla} of ender pearl to loop-player's enderchest
					send "&8» &7Posiadales przy sobie &a%{_perla}% perel&7, &a%{_match.perla}% &7zostaje odlozone do twojego &aenderchesta." to loop-player			
				else:
					add {_match.perla} to {perla::%loop-player%}
					send "&8» &7Posiadales przy sobie &a%{_perla}% perel&7, &a%{_match.perla}% &7zostaje odlozone do twojego &aschowka." to loop-player			
			
command /schowek:
	trigger:
		open chest with 1 rows named "&3&lSCHOWEK" to player
		wait 5 ticks
		format slot 2 of player with 1 of golden apple:0 named "&2&lREFILE" with lore "&8» &7Posiadasz: &a%{ref::%player%}%" to close then run [make player execute command "schowek2 ref"]
		format slot 6 of player with 1 of enchanted golden apple named "&2&lKOXY" with lore "&8» &7Posiadasz: &a%{kox::%player%}%" to close then run [make player execute command "schowek2 kox"]
		format slot 4 of player with 1 of ender pearl named "&2&lPERLY" with lore "&8» &7Posiadasz: &a%{perla::%player%}%" to close then run [make player execute command "schowek2 perla"]
		format slot 0 of player with black glass named " " to close
		format slot 1 of player with black glass named " " to close
		format slot 3 of player with black glass named " " to close
		format slot 5 of player with black glass named " " to close
		format slot 7 of player with black glass named " " to close
		format slot 8 of player with black glass named " " to close
		stop
		
command /schowek2 [<text>]:
	trigger:
		if arg-1 is "kox":			
			send "&8» &7Wyplaciles &a%{kox::%player%}% koxow&7, ze schowka!"
			give {kox::%player%} of golden apple:1 to player		
			clear {kox::%player%}
		if arg-1 is "ref":			
			send "&8» &7Wyplaciles &a%{ref::%player%}% refili&7, ze schowka!"
			give {ref::%player%} of golden apple:0 to player		
			clear {ref::%player%}
		if arg-1 is "perla":			
			send "&8» &7Wyplaciles &a%{perla::%player%}% perel&7, ze schowka!"
			give {perla::%player%} of ender pearl to player		
			clear {perla::%player%}

 

 

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