Skocz do zawartości
  • 0

Skrypt na Gui [ Wersja 1.14.4 ]


gowniak1

Pytanie

Cześć Wam. Czy potrafiłby ktoś mi napisać skrypt na otwieranie Gui w którym będzie pokazane: Pióro i Kość?

 

Dodam że próbowałem zrobić:

command /cos:

trigger:

open chest with 3 rows named "123" to player

 

Ale wykrywało mi błąd że nie zna polecenia "open chest with 3 rows named itd..."

Wersja: 1.14.4


 

 

Edytowane przez LjayPL789
Błąd
bludis

Poprawiam formatowanie.

Notatka dodana przez bludis

Odnośnik do komentarza
https://skript.pl/temat/38256-skrypt-na-gui-wersja-1144/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /cos:
	trigger:
		open chest with 3 rows named "&aCos" to player
		loop 27 times:
			set slot loop-number of current inventory of player to blue glass pane named ""
		set slot 12 of current inventory of player to feather named "Cos"
		set slot 14 of current inventory of player to book named "Cos"
		stop

on inventory click:
	if inventory name of current inventory of player is "&aCos":
		if clicked slot is 12:
			close player's inventory
			send "Cos"
			cancel event
		if clicked slot is 14:
			close player's inventory
			send "Cos 2"
			cancel event
		else:
			cancel event

Wymaga SkQuery.

Odnośnik do komentarza
https://skript.pl/temat/38256-skrypt-na-gui-wersja-1144/#findComment-241803
Udostępnij na innych stronach

  • 0
2 godziny temu, CountingDogs napisał:

command /cos:
	trigger:
		open chest with 3 rows named "&aCos" to player
		loop 27 times:
			set slot loop-number of current inventory of player to blue glass pane named ""
		set slot 12 of current inventory of player to feather named "Cos"
		set slot 14 of current inventory of player to book named "Cos"
		stop

on inventory click:
	if inventory name of current inventory of player is "&aCos":
		if clicked slot is 12:
			close player's inventory
			send "Cos"
			cancel event
		if clicked slot is 14:
			close player's inventory
			send "Cos 2"
			cancel event
		else:
			cancel event

Wymaga SkQuery.

Wszystko fajnie ale gdy wgrałem SkQuery wywaliło mi taki błąd i działa tylko 1 komenda od skryptu mojego:

Spoiler

 

[12:35:23] [Server thread/ERROR]: #!#! Version Information:
[12:35:23] [Server thread/ERROR]: #!#! Skript: 2.5-alpha3 (latest)
[12:35:23] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
[12:35:23] [Server thread/ERROR]: #!#! Date: 2020-03-28
[12:35:23] [Server thread/ERROR]: #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT
[12:35:23] [Server thread/ERROR]: #!#! Minecraft: 1.14.4
[12:35:23] [Server thread/ERROR]: #!#! Java: 1.8.0_201 (Java HotSpot(TM) 64-Bit Server VM 25.201-b09)
[12:35:23] [Server thread/ERROR]: #!#! OS: Linux amd64 5.0.13-050013-lowlatency
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Server platform: Spigot
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Current node: set {ranga::%arg 1%::%arg 2%} to true (rangi.sk, line 6)
[12:35:23] [Server thread/ERROR]: #!#! Current item: null
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Thread: Server thread
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Language: english
[12:35:23] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! End of Error.
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[12:35:23] [Server thread/ERROR]: #!#! Could not load tp.sk
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[12:35:23] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[12:35:23] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[12:35:23] [Server thread/ERROR]: #!#! Here is full list of them:
[12:35:23] [Server thread/ERROR]: #!#! skRayFall v1.9.19 (https://sk.rayfall.net/) TuSKe v1.8.2 (github.com/Tuke-Nuke/TuSKe) skDragon v0.16 WildSkript v1.8 (http://www.dzikoysk.net/) MundoSK v1.8.5 (https://forums.skunity.com/resources/mundosk.69/) SkQuery v3.21.4 Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/)
[12:35:23] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[12:35:23] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[12:35:23] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[12:35:23] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[12:35:23] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[12:35:23] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Stack trace:
[12:35:23] [Server thread/ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for lambda
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:263)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.createExprInfo(SkriptParser.java:1838)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1805)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1553)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:224)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:502)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:840)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1569)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:224)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:179)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:59)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1041)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1128)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:54)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:44)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1128)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:490)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:652)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:410)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:429)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.lambda$0(ScriptLoader.java:348)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:381)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.Skript.reload(Skript.java:976)
[12:35:23] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:166)
[12:35:23] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[12:35:23] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149)
[12:35:23] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:710)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1641)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886)
[12:35:23] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819)
[12:35:23] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Version Information:
[12:35:23] [Server thread/ERROR]: #!#! Skript: 2.5-alpha3 (latest)
[12:35:23] [Server thread/ERROR]: #!#! Flavor: skriptlang-github
[12:35:23] [Server thread/ERROR]: #!#! Date: 2020-03-28
[12:35:23] [Server thread/ERROR]: #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT
[12:35:23] [Server thread/ERROR]: #!#! Minecraft: 1.14.4
[12:35:23] [Server thread/ERROR]: #!#! Java: 1.8.0_201 (Java HotSpot(TM) 64-Bit Server VM 25.201-b09)
[12:35:23] [Server thread/ERROR]: #!#! OS: Linux amd64 5.0.13-050013-lowlatency
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Server platform: Spigot
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Current node: teleport player to arg-1 (tp.sk, line 8)
[12:35:23] [Server thread/ERROR]: #!#! Current item: null
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Thread: Server thread
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! Language: english
[12:35:23] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[12:35:23] [Server thread/ERROR]: #!#!
[12:35:23] [Server thread/ERROR]: #!#! End of Error.
[12:35:23] [Server thread/ERROR]: #!#!

 

 

Edytowane przez LjayPL789
bludis

Wstawiam w cytat; poprawiam formatowanie.

Notatka dodana przez bludis

Odnośnik do komentarza
https://skript.pl/temat/38256-skrypt-na-gui-wersja-1144/#findComment-241810
Udostępnij na innych stronach

  • 0
56 minut temu, CountingDogs napisał:

Były małe komplikacje ale dzięki! 🙂 udało się :> 

Odnośnik do komentarza
https://skript.pl/temat/38256-skrypt-na-gui-wersja-1144/#findComment-241820
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ę...