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

Schowek w GUI


thor332

Rekomendowane odpowiedzi

Opublikowano

Siema, czy jest ktoś w stanie przerobić skrypt (podam poniżej) tak, aby po wpisaniu:

 

/schowek koxy - Wyświetlał się schowek w gui w którym mamy koxy zabrane z limitu.

/schowek refile - Wyświetlał sie schowek w gui w którym mamy refile zabrane z limitu.

/schowek perly - Wyświetlał się schowek w gui w którym mamy perly zabrane z limitu.

 

Skrypt:

 

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 argument 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 "&7---- &6Schowek &7----"
send "&7» &6/schowek koxy &8- &7wyplaca koxy(%{schowek.%player%.koxy}%)"
send "&7» &6/schowek refile &8- &7wyplaca refile(%{schowek.%player%.refile}%)"
send "&7» &6/schowek perly &8- &7wyplaca perly(%{schowek.%player%.perly}%)"
if argument is "koxy":
give {schowek.%player%.koxy} of golden apple:1 to player
send "&cWyplasiles ze schowka &6%{schowek.%player%.koxy}% &ckoxow"
set {schowek.%player%.koxy} to 0
if argument is "refile":
give {schowek.%player%.refile} of golden apple:0 to player
send "&cWyplasiles ze schowka &6%{schowek.%player%.refile}% &crefili"
set {schowek.%player%.koxy} to 0
if argument is "perly":
give {schowek.%player%.perly} of ender pearl to player
send "&8 &cWyplasiles ze schowka &6%{schowek.%player%.perly}% &cperel"
set {schowek.%player%.perly} to 0

 
Za pomoc oczywiście like, a za najbardziej pomocna wiadomo że najlepsza odpowiedź :)
Opublikowano

Daj link, z wytabowanym kodem, mysle ze to latwe. Moge podjac sie przerobienia tego

daj na pastebinie  najlepiej.

@Edit ostatnio szukalem i przypomnialo mi sie, to skrypt tego pana:


Zmieniony kod z gui:

http://pastebin.com/yVuQmGtN
 

❤ MC.PROPACRAFT.PL 


★ SKRYPTY ★


★ TECHNIK SERWERÓW MINECRAFT ★


✮ Pomogłem? Strzej lajka! ✮


 

Opublikowano

@Thardess no prawie xD Jest coś takiego:

'"/eschowekxdd koxy"]' is not a text (LIMIT.sk, line 54: format slot 1 of player with 1 of enchanted golden apple named "&eKOXY" with lore "&7Posiadasz: &b%{schowek.%player%.koxy}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd koxy"]')

'"/eschowekxdd refile"]' is not a text (LIMIT.sk, line 55: format slot 4 of player with 1 of golden apple:0 named "&6REFILE" with lore "&7Posiadasz: &b%{schowek.%player%.refile}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd refile"]')
 '"/eschowekxdd perly"]' is not a text (LIMIT.sk, line 56: format slot 7 of player with 1 of ender pearl named "&9PERLY" with lore "&7Posiadasz: &b%{schowek.%player%.perly}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd perly"]')
 '"/eschowekxdd koxy"]' is not a text (LIMIT.sk, line 60: format slot 1 of player with 1 of enchanted golden apple named "&eKOXY" with lore "&7Posiadasz: &b%{schowek.%player%.koxy}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd koxy"]')
 '"/eschowekxdd refile"]' is not a text (LIMIT.sk, line 61: format slot 4 of player with 1 of golden apple:0 named "&6REFILE" with lore "&7Posiadasz: &b%{schowek.%player%.refile}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd refile"]')
 '"/eschowekxdd perly"]' is not a text (LIMIT.sk, line 62: format slot 7 of player with 1 of ender pearl named "&9PERLY" with lore "&7Posiadasz: &b%{schowek.%player%.perly}%&7, kliknij aby wyplacic." to close then run [make execute player command "/eschowekxdd perly"]')

 [skript] Encountered 6 errors while reloading LIMIT.sk!

 

 

i przez to najprawdopodobniej nie pojawiaja sie itemy w depozycie, wiesz jak to naprawić ?

Opublikowano

testowalem na localhoscie, mam ten sam blad, pamietam ze kiedys uzywalem tych samych opcji na serwerze.

Wszedzie w internecie np; "Kity w gui" jest taka sama opcja uzyta jak ja dalem.

Nie wiem czemu to nie dziala ;c

 

moze @knugi pomoze?

 

❤ MC.PROPACRAFT.PL 


★ SKRYPTY ★


★ TECHNIK SERWERÓW MINECRAFT ★


✮ Pomogłem? Strzej lajka! ✮


 

Opublikowano

@Thardess oczywiście że pomogę :P

 

 

 

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 argument 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 "&7---- &6Schowek &7----"
			send "&7» &6/schowek koxy &8- &7wyplaca koxy(%{schowek.%player%.koxy}%)"
			send "&7» &6/schowek refile &8- &7wyplaca refile(%{schowek.%player%.refile}%)"
			send "&7» &6/schowek perly &8- &7wyplaca perly(%{schowek.%player%.perly}%)"
			stop
		if argument 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 "&c* &7Nie mozesz wyplacic koxow."
					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 "&c* &7Masz pusty schowek z koxami."
			stop
		if argument 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 "&c* &7Nie mozesz wyplacic refili."
					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 "&c* &7Masz pusty schowek z refilami."
			stop
		if argument 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 "&c* &7Nie mozesz wyplacic perel."
					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 "&c* &7Masz pusty schowek z perlami."
			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
		 

 

 

 

Proszę bardzo :)

 

Pozdrawiam #Knugi

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...