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 ze skryptem


fxxx567

Rekomendowane odpowiedzi

Opublikowano

Witam zrobiłem sobie skrypt na ulepszanie broni i wyszły mi takie błędy że chest nie jest blokiem oraz player with 1 nie jest numerem i nie wiem co na to poradzić gdy wcześniej robiłem to działało przy innej rzeczy. Pluginy które używam Skript 2.1.2 SkQuery oraz WildSkript wszystkie pod 1.7

Skrypt:

on right click:
    if clicked block is sign:
        if line 1 is "&1Ulepszanie":
            if player's tool is iron sword of sharpness 4 named "&6Test &7+1":
                wait 2 ticks
                open chest with 1 row named "Ulepszanie"
                format slot 2 of player with 1 of iron sword of sharpness 4 named "&6Test &7+1"
                format slot 3 of player with 1 of anvil named "&7Ulepszasz na &f>"
                format slot 4 of player with 1 of iron sword of sharpness 5 named "&6Test &7+2"
                format slot 6 of player with 1 of paper named "&3Szansa: &f100" with lore "&7Potrzebne przedmioty: &f500 Monet &7oraz &f1 Skora"
                format slot 7 of player with 1 of lime wool named "&aUlepsz" to run [execute player command "/fexy1"]
                format slot 8 of player with 1 of red wool named "&cAnuluj" to close

 

99fec9423890dea00177297e72980997.png
https://gyazo.com/99fec9423890dea00177297e72980997

 

Opublikowano
Cytat

               open chest with 1 row named "Ulepszanie"

open chest with 1 rows named "ulepszanie" to player

 

Cytat

                format slot 2 of player with 1 of iron sword of sharpness 4 named "&6Test &7+1"
 

http://skunity.com/search?search=format+slot

 

Aktualnie interesuję się javą, powoli ogarniam java swing i awt, czasem bawię się HTML.

Opublikowano
2 godziny temu, ˈyøøniks napisał:

open chest with 1 rows named "ulepszanie" to player

 

http://skunity.com/search?search=format+slot

Dzięki już działa lecz został 1 problem

z linijką format slot 7 of player with lime stained clay named "&aUlepsz" to close then run [execute player command "/fexy1"]

Wyskakuje błąd. Komenda /fexy1 jaka wpisuje to działa lecz w gui jest ten błąd.

https://gyazo.com/5fe644ec3f6d2e539910b77b85080ffd

Opublikowano
7 minut temu, fxxx567 napisał:

Dzięki już działa lecz został 1 problem

z linijką format slot 7 of player with lime stained clay named "&aUlepsz" to close then run [execute player command "/fexy1"]

Wyskakuje błąd. Komenda /fexy1 jaka wpisuje to działa lecz w gui jest ten błąd.

https://gyazo.com/5fe644ec3f6d2e539910b77b85080ffd

make player execute command?

lub make execute player command

 

Aktualnie interesuję się javą, powoli ogarniam java swing i awt, czasem bawię się HTML.

Opublikowano
2 godziny temu, fxxx567 napisał:

 Nadal nic ...

Zrób to run [make player execute command "lel"]

Możesz użyć argumentu, który może być używany tylko jeśli masz permisje, a w nim daj execute'a komeny, lub bezpośrednio jeśli można to wykonać w skrypcie i dodaj "close player's inventory"

Opublikowano
1 godzinę temu, ScoreBoard napisał:

Zrób to run [make player execute command "lel"]

Możesz użyć argumentu, który może być używany tylko jeśli masz permisje, a w nim daj execute'a komeny, lub bezpośrednio jeśli można to wykonać w skrypcie i dodaj "close player's inventory"

Nie działa.

[21:53:44 ERROR]: '"lel"]' is not a text (test.sk, line 59: format slot 7 of player with lime stained clay named "&aUlepsz" to close then run [make player execute command "lel"]')

Opublikowano
2 godziny temu, fxxx567 napisał:

Nie działa.

[21:53:44 ERROR]: '"lel"]' is not a text (test.sk, line 59: format slot 7 of player with lime stained clay named "&aUlepsz" to close then run [make player execute command "lel"]')

]') a to co? xD Wyslij skrypt

Opublikowano
on right click:
	if clicked block is sign:
		if line 1 is "&1Ulepszanie":
			if player's tool is iron sword of sharpness 4 named "&6Test &7+1":
				open chest with 1 rows named "Ulepszanie" to player
				format slot 1 of player with iron sword of sharpness 4 named "&6Test &7+1" to be unstealable
				format slot 2 of player with anvil named "&7Ulepszasz na &f>" to be unstealable
				format slot 3 of player with iron sword of sharpness 5 named "&6Test &7+2" to be unstealable
				format slot 5 of player with paper named "&3Szansa: &f100" with lore "&7Potrzebne przedmioty: &f500 Monet &7oraz &f1 Skora" to be unstealable
                format slot 7 of player with lime stained clay named "&aUlepsz" to run [make player execute command "lel"]
                format slot 8 of player with red stained clay named "&cAnuluj" to close	
command /lel:
	permission: akaxsdnmx
	trigger:
		close player's inventory
		execute player command "fexy1"

 

Opublikowano
3 godziny temu, ScoreBoard napisał:

on right click:
	if clicked block is sign:
		if line 1 is "&1Ulepszanie":
			if player's tool is iron sword of sharpness 4 named "&6Test &7+1":
				open chest with 1 rows named "Ulepszanie" to player
				format slot 1 of player with iron sword of sharpness 4 named "&6Test &7+1" to be unstealable
				format slot 2 of player with anvil named "&7Ulepszasz na &f>" to be unstealable
				format slot 3 of player with iron sword of sharpness 5 named "&6Test &7+2" to be unstealable
				format slot 5 of player with paper named "&3Szansa: &f100" with lore "&7Potrzebne przedmioty: &f500 Monet &7oraz &f1 Skora" to be unstealable
                format slot 7 of player with lime stained clay named "&aUlepsz" to run [make player execute command "lel"]
                format slot 8 of player with red stained clay named "&cAnuluj" to close	
command /lel:
	permission: akaxsdnmx
	trigger:
		close player's inventory
		execute player command "fexy1"

 

Heh nadal ten sam błąd. Znasz plugin skrypt od innego autora na 1.7?

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...