Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Skrypt na schowek itemów


lukazs001

Rekomendowane odpowiedzi

Opublikowano

#by knugi

every 10 second:
	loop all players:
		set {_koxy} to number of golden apple:1 in the loop-player's inventory
		set {_refile} to number of golden apple:0 in the loop-player's inventory
		set {_perly} to number of ender pearl in the loop-player's inventory
		if {_koxy} is more than 6:
			set {_a} to {_koxy}-6
			remove {_a} of golden apple:1 from loop-player
			add {_a} to {schowek.%loop-player%.koxy}
			send "&cPosiadasz przy sobie wiecej niz 6 koxow, %{_a}% koxow zostaje odlozone do twojego schowka" to loop-player
		if {_refile} is more than 32:
			set {_a} to {_refile}-32
			remove {_a} of golden apple:0 from loop-player
			add {_a} to {schowek.%loop-player%.refile}
			send "&cPosiadasz przy sobie wiecej niz 32 refile, %{_a}% refili zostaje odlozone do twojego schowka" to loop-player
		if {_perly} is more than 16:
			set {_a} to {_perly}-16
			remove {_a} of ender pearl from loop-player
			add {_a} to {schowek.%loop-player%.perly}
			send "&cPosiadasz przy sobie wiecej niz 16 perly, %{_a}% perel zostaje odlozone do twojego schowka" to loop-player
command /schowek [<text>]:
	trigger:
		if arg-1 is not set:
			if {schowek.%player%.koxy} is not set:
				set {schowek.%player%.koxy} to 0
			if {schowek.%player%.refile} is not set:
				set {schowek.%player%.refile} to 0
			if {schowek.%player%.perly} is not set:
				set {schowek.%player%.perly} to 0
			send "&8&l&m-----------[&e &eSCHOWEK &8&l&m]-----------"
			send "&7» &6/schowek koxy &8- &7wyplaca koxy (Posiadasz: %{schowek.%player%.koxy}%)"
			send "&7» &6/schowek refile &8- &7wyplaca refile (Posiadasz: %{schowek.%player%.refile}%)"
			send "&7» &6/schowek perly &8- &7wyplaca perly (Posiadasz: %{schowek.%player%.perly}%)"
			send "&8&l&m-----------[&e &eSCHOWEK &8&l&m]-----------"
			stop
		if arg-1 is "koxy":
			if {schowek.%player%.koxy} is larger than 0:
				if number of golden apple:1 in the player's inventory is larger than or equal to 6:
					send "{@tag} Nie mozesz wyplacic koxow, gdyz masz ich juz limit w ekwipunku."
					stop
				open chest with 1 row named "&9&lSchowek" to player
				wait 2 tick
				set {_a} to 6 - number of golden apple:1 in player's inventory
				if {_a} is larger than {schowek.%player%.koxy}:
					set {_a} to {schowek.%player%.koxy}
				set player's current inventory's slot 4 to golden apple:1 named "&6Wyplac koxy." with lore "&aKliknij aby:||&c* &6wyplacic &c%{_a}% &6koxow.||&6Posiadasz: &3%{schowek.%player%.koxy}%"
				stop
			send "{@tag} Musisz miec koxy w schowku, aby moc je wyplacic!"
			stop
		if arg-1 is "refile":
			if {schowek.%player%.refile} is larger than 0:
				if number of golden apple:0 in the player's inventory is larger than or equal to 32:
					send "{@tag} Nie mozesz wyplacic refili, gdyz masz ich juz limit w ekwipunku!"
					stop
				open chest with 1 row named "&9&lSchowek" to player
				wait 2 tick
				set {_a} to 32 - number of golden apple:0 in player's inventory
				if {_a} is larger than {schowek.%player%.refile}:
					set {_a} to {schowek.%player%.refile}
				set player's current inventory's slot 4 to golden apple:0 named "&6Wyplac refile." with lore "&aKliknij aby:||&c* &6wyplacic &c%{_a}% &6refili.||&6Posiadasz: &3%{schowek.%player%.refile}%"
				stop
			send "{@tag} Musisz miec refile w schowku, aby moc je wyplacic!"
			stop
		if arg-1 is "perly":
			if {schowek.%player%.perly} is larger than 0:
				if number of ender pearl in the player's inventory is larger than or equal to 16:
					send "{@tag} Nie mozesz wyplacic perel, poniewaz masz ich juz limit w ekwipunku."
					stop
				open chest with 1 row named "&9&lSchowek" to player
				wait 2 tick
				set {_a} to 16 - number of ender pearl in player's inventory
				if {_a} is larger than {schowek.%player%.perly}:
					set {_a} to {schowek.%player%.perly}
				set player's current inventory's slot 4 to ender pearl named "&6Wyplac perly." with lore "&aKliknij aby:||&c* &6wyplacic &c%{_a}% &6perel.||&6Posiadasz: &3%{schowek.%player%.perly}%"
				stop
			send "{@tag} Musisz miec perly w schowku, aby moc je wyplacic!"
			stop
on inventory click:
	if "%inventory name of player's current inventory%" contains "Schowek":
		if slot is smaller than 0:
			stop
		cancel event
		set {_lore::*} to lore of player's current inventory's slot slot split at "||"
		set {_amount} to uncoloured {_lore::2}
		replace all "* wyplacic " and " perel." and " refili." and " koxow." in {_amount} with ""
		set {_amount} to {_amount} parsed as integer
		if player's current inventory's slot slot is golden apple:0:
			remove {_amount} from {schowek.%player%.refile}
			send "&7» &6Wyplaciles %{_amount}% refili"
		if player's current inventory's slot slot is golden apple:1:
			remove {_amount} from {schowek.%player%.koxy}
			send "&7» &6Wyplaciles %{_amount}% koxow"
		if player's current inventory's slot slot is ender pearl:
			remove {_amount} from {schowek.%player%.perly}
			send "&7» &6Wyplaciles %{_amount}% perel."
		set {_i} to "%{_amount}% %type of player's current inventory's slot slot%" parsed as item type
		give {_i} to player
		close player's inventory
 

❤ MC.PROPACRAFT.PL 


★ SKRYPTY ★


★ TECHNIK SERWERÓW MINECRAFT ★


✮ Pomogłem? Strzej lajka! ✮


 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...