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

Problem z GUI, proszę o pomoc


Mordassss

Rekomendowane odpowiedzi

Opublikowano

Czesc, mam tu skrypt na taki jakby sklep, tylko mam kilka problemow, ktorych nie ogarniam.

 

- po wpisaniu /depozyt i kliknieciu nic sie nie dzieje

 

- po wpisanu /wplac lub /wyplac nie ma miecza do kupienia

 

- po wpisaniu /wyplac nie działa, wiem ze to przez ta linijke (ale  nie wiem jak ja zastapic :<) : if player balance is greater than or equal to 10:

 

 

To jest kod:

 

command /depozyt:
trigger:
wait 2 tick
open chest with 1 rows named "&cDEPOZYT" to player
format slot 2 of player with 1 of chest of thorns 10 named "&cWplac" with lore "&c* &7Tu mozesz wplacac itemy" to close then run [make player execute "/wplac"]
format slot 6 of player with 1 of chest named "&cWyplac" with lore "&c* &7Tu mozesz wyplacac itemy" to close then run [make player execute "/wyplac"]
 
#------------------------- WPLACANIE
command /wplac:
trigger:
wait 2 tick
open chest with 1 rows named "&cDEPOZYT" to player
format slot 2 of player with 1 of diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 named "&6Kilof &35&6/&33&6/&33" with lore "&c* &7Dostaniesz: &c10$" to close then run [make player execute "/kilof"]
format slot 4 of player with 1 of diamond sword of sharpness 5, fireaspect 2 named "&6Miecz &35&6/&32" with lore "&c* &7Dostaniesz: &c20$" to close then run [make player execute "/miecz"]
format slot 6 of player with 1 of golden apple:1 named "&c Kox" with lore "&c* &7Dostaniesz: &c50$" to close then run [make player execute "/kox"]
 
command /kilof:
trigger:
if player has diamond pickaxe of efficiency 5, fortune 3, unbreaking 3:
execute console command "/money give %player% 10"
send "&cZyczymy dobrych betow !"
remove 1 diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 from player
else:
send "&cNie posiadasz takiego kilofa, aby go wplacic !"
 
command /miecz:
trigger:
if player has diamond sword of sharpness 5, fireaspect 2:
execute console command "/money give %player% 20"
send "&cZyczymy dobrych betow !"
remove 1 diamond sword of sharpness 5, fireaspect 2 from player
else:
send "&cNie posiadasz takiego miecza, aby go wplacic !"
 
command /kox:
trigger:
if player has golden apple:1:
execute console command "/money give %player% 50"
send "&cZyczymy dobrych betow !"
remove 1 golden apple:1 from player
else:
send "&cNie posiadasz koxa, aby go wplacic !"
 
#------------------------- WYPLACANIE
 
command /wyplac:
trigger:
wait 2 tick
open chest with 1 rows named "&cDEPOZYT" to player
format slot 2 of player with 1 of diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 named "&6Kilof &35&6/&33&6/&33" with lore "&c* &7Koszt: &c10$" to close then run [make player execute "/wkilof"]
format slot 4 of player with 1 of diamond sword of sharpness 5, fireaspect 2 named "&6Miecz &35&6/&32" with lore "&c* &7Koszt: &c10$" to close then run [make player execute "/wmiecz"]
format slot 6 of player with 1 of golden apple:1 named "&c Kox" with lore "&c* &7Koszt: &c50$" to close then run [make player execute "/wkox"]
 
command /wkilof:
trigger:
if player balance is greater than or equal to 10:
give 1 diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 from player
else:
send "&cNie posiadasz tylu pieniedzy, aby wyplacic kilof 5/3/3"
 
command /wmiecz:
trigger:
if player balance is greater than or equal to 20:
give 1 diamond sword of sharpness 5, fireaspect 2 from player
else:
send "&cNie posiadasz tylu pieniedzy, aby wyplacic miecz 5/2 !"
 
command /wkox:
trigger:
if player balance is greater than or equal to 50:
give 1 golden apple:1 from player
else:
send "&cNie posiadasz tylu pieniedzy, aby wyplacic koxa !"
Opublikowano

Plugin może nie współpracować z innymi pluginami. Spróbuj jeszcze raz go wgrać , jeśli nie pomoże to znajdź inny plugin z "sklepem". Jeśli dalej nie zadziała napisz mi na pw :P

Też miałem podobny problem ale wgrałem jeszcze raz i zadziałało.

 

@Edit

 

 

W razie problemów możesz też poradniki na YT zobaczyć.

Opublikowano

Masz poprawnie wytabowane?

A może sprobuj to xD

command /depozyt:
	trigger:
		wait 2 tick
			open chest with 1 rows named "&cDEPOZYT" to player
			format slot 2 of player with 1 of chest of thorns 10 named "&cWplac" with lore "&c* &7Tu mozesz wplacac itemy" to close then run [execute player command "/wplac"]
			format slot 6 of player with 1 of chest named "&cWyplac" with lore "&c* &7Tu mozesz wyplacac itemy" to close then run [execute player command "/wyplac"]
 
#------------------------- WPLACANIE
command /wplac:
	trigger:
		wait 2 tick
			open chest with 1 rows named "&cDEPOZYT" to player
			format slot 2 of player with 1 of diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 named "&6Kilof &35&6/&33&6/&33" with lore "&c* &7Dostaniesz: &c10$" to close then run [execute player command "/kilof"]
			format slot 4 of player with 1 of diamond sword of sharpness 5, fireaspect 2 named "&6Miecz &35&6/&32" with lore "&c* &7Dostaniesz: &c20$" to close then run [execute player command "/miecz"]
			format slot 6 of player with 1 of golden apple:1 named "&c Kox" with lore "&c* &7Dostaniesz: &c50$" to close then run [execute player command "/kox"]
 
command /kilof:
	trigger:
		if player has diamond pickaxe of efficiency 5, fortune 3, unbreaking 3:
			execute console command "/money give %player% 10"
			send "&cZyczymy dobrych betow !"
			remove 1 diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 from player
		else:
			send "&cNie posiadasz takiego kilofa, aby go wplacic !"
 
command /miecz:
	trigger:
		if player has diamond sword of sharpness 5, fireaspect 2:
			execute console command "/money give %player% 20"
			send "&cZyczymy dobrych betow !"
			remove 1 diamond sword of sharpness 5, fireaspect 2 from player
		else:
			send "&cNie posiadasz takiego miecza, aby go wplacic !"
 
command /kox:
	trigger:
		if player has golden apple:1:
			execute console command "/money give %player% 50"
			send "&cZyczymy dobrych betow !"
			remove 1 golden apple:1 from player
		else:
			send "&cNie posiadasz koxa, aby go wplacic !"
 
#------------------------- WYPLACANIE
 
command /wyplac:
	trigger:
		wait 2 tick
			open chest with 1 rows named "&cDEPOZYT" to player
			format slot 2 of player with 1 of diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 named "&6Kilof &35&6/&33&6/&33" with lore "&c* &7Koszt: &c10$" to close then run [execute player command "/wkilof"]
			format slot 4 of player with 1 of diamond sword of sharpness 5, fireaspect 2 named "&6Miecz &35&6/&32" with lore "&c* &7Koszt: &c10$" to close then run [execute player command "/wmiecz"]
			format slot 6 of player with 1 of golden apple:1 named "&c Kox" with lore "&c* &7Koszt: &c50$" to close then run [execute player command "/wkox"]
 
command /wkilof:
	trigger:
		if player balance is greater than or equal to 10:
			give 1 diamond pickaxe of efficiency 5, fortune 3, unbreaking 3 from player
		else:
			send "&cNie posiadasz tylu pieniedzy, aby wyplacic kilof 5/3/3"
 
command /wmiecz:
	trigger:
		if player balance is greater than or equal to 20:
			give 1 diamond sword of sharpness 5, fireaspect 2 from player
		else:
			send "&cNie posiadasz tylu pieniedzy, aby wyplacic miecz 5/2 !"
 
command /wkox:
	trigger:
		if player balance is greater than or equal to 50:
			give 1 golden apple:1 from player
		else:
			send "&cNie posiadasz tylu pieniedzy, aby wyplacic koxa !"
Opublikowano

Możesz też w nawiasie dodać by konsola wykonywała to zadanie

 

 

"give 1 1 %player%"

baner2.png

Opublikowano

­

player's account > 10:

Jeżeli chodzi o tą linijke :)

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...