Skocz do zawartości
  • 0

pytaie


tiler455

Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0
options:
	perly: 16
	koxy: 3
	refy: 5
command /schowek:
	trigger:
		if {perly.%player%} is not set:
			set {perly.%player%} to 0
		if {koxy.%player%} is not set:
			set {koxy.%player%} to 0
		if {refy.%player%} is not set:
			set {refy.%player%} to 0
		open chest with 1 rows named "schowek gracza %player%" to player
		wait 2 tick
		format slot 0 of player with ender pearl named "&b&ltwoje perly [%{perly.%player%}%]" with lore "kliknij aby wyplacic" to close then run "perla %player%"
		format slot 1 of player with golden apple:1 named "&b&ltwoje koxy [%{koxy.%player%}%]" with lore "kliknij aby wyplacic" to close then run "kox %player%"
		format slot 2 of player with golden apple:0 named "&b&ltwoje refy [%{refy.%player%}%]" with lore "kliknij aby wyplacic" to close then run "ref %player%"
		format slot 8 of player with diamond block named "&b&lWYPLAC WSZYSTKO ILE MOZESZ" with lore "kliknij aby wyplacic wszystko" to close then run "wszystko %player%"		
command /perla [<player>]:
	trigger:
		set {_p1} to amount of ender pearl in player-arg's inventory
		set {_p2} to {@perly}-{_p1}
		if {perly.%player-arg%} > 0:
			loop {_p2} times:
				if player-arg can hold 1 ender pearl:
					if {perly.%player-arg%} > 1:
						give 1 ender pearl to player-arg
						remove 1 from {perly.%player-arg%}
command /kox [<player>]:
	trigger:
		set {_k1} to amount of golden apple:1 in player-arg's inventory
		set {_k2} to {@koxy}-{_k1}
		if {koxy.%player-arg%} > 0:
			loop {_k2} times:
				if player-arg can hold 1 golden apple:1:
					if {koxy.%player-arg%} > 1:
						give 1 golden apple:1 to player-arg
						remove 1 from {koxy.%player-arg%}
command /ref [<player>]:
	trigger:
		set {_r1} to amount of golden apple:0 in player-arg's inventory
		set {_r2} to {@refy}-{_r1}
		if {refy.%player-arg%} > 0:
			loop {_r2} times:
				if player-arg can hold 1 golden apple:0:
					if {refy.%player-arg%} > 1:
						give 1 golden apple:0 to player-arg
						remove 1 from {refy.%player-arg%}					
every 10 second:
	loop all players:
		set {_p1} to amount of ender pearl in loop-player's inventory
		if {_p1} > {@perly}:
			set {_p2} to {_p1}-{@perly}
			loop {_p2} times:
				remove 1 ender pearl from loop-player's inventory
				add 1 to {perly.%loop-player%}					
		set {_k1} to amount of golden apple:1 in loop-player's inventory
		if {_k1} > {@koxy}:
			set {_k2} to {_k1}-{@koxy}
			loop {_k2} times:
				remove 1 golden apple:1 from loop-player's inventory
				add 1 to {koxy.%loop-player%}
		set {_r1} to amount of golden apple:0 in loop-player's inventory
		if {_r1} > {@refy}:
			set {_r2} to {_r1}-{@refy}
			loop {_r2} times:
				remove 1 golden apple:0 from loop-player's inventory
				add 1 to {refy.%loop-player%}				
command /wszystko [<player>]:
	trigger:
		execute player-arg command "perla %player-arg%"
		execute player-arg command "kox %player-arg%"		
		execute player-arg command "ref %player-arg%"

prosze :) licze na plusik

/schowek - pokazuje schowek z koxami,refami i perłami oraz blokiem diax który wypłaca ile tylko może

o options można ustawić ile poszczegulnych reczy można mieć w EQ

co 10 sekund sprawdza czy gracz nie ma więcej w EQ niż powinien

Odnośnik do komentarza
https://skript.pl/temat/16889-pytaie/#findComment-115969
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ę...