MaksPolska 0 Opublikowano 25 września 2017 Udostępnij Opublikowano 25 września 2017 Cześć, potrzebuję skryptu na ulepszanie tutaj opis: Wpisujemy komendę /ulepszkowal Chce aby po wpisaniu tej komendy do itemu który mamy w ręce dodawało się 100 sharpnessu Na przykład: Jeśli mam w ręce miecz sharpness 1000 to po ulepszeniu będę miał sharpness 1100 Ulepszać można do woli.. Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 LordYu 296 Opublikowano 25 września 2017 Udostępnij Opublikowano 25 września 2017 w skrypcie ma być ograniczenie tego enchantu (np max 1 000) czy po prostu dodajesz cały czas +100 aż Ci się nei znudzi? Bo jak ma mieć ograniczenie to łatwiejsza sprawa a jak nie to będzie troszkę bardziej pomyśleć Anuk 1 Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148262 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 25 września 2017 Udostępnij Opublikowano 25 września 2017 command /ulepszkowal: trigger: if {enchant::kowal::%player%::%tool of player%} <= 1000: add 100 to {enchant::kowal::%player%::%tool of player%} enchant tool of player with sharpness {enchant::kowal::%player%::%tool of player%} send "Ulepszono..." to the player else: send "&cUlepszono maksymalnie ;<" to the player Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148263 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MaksPolska 0 Opublikowano 25 września 2017 Autor Udostępnij Opublikowano 25 września 2017 (edytowane) Może być z ograniczeniem do np. 30 000 @esej wywala błąd sharpness {enchant::kowal::%player%::%tool of player%} is not an enchantment type Edytowane 25 września 2017 przez MaksPolska Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148264 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 25 września 2017 Udostępnij Opublikowano 25 września 2017 options: ograniczenie: 30000 command /ulepszkowal: trigger: if {enchant::kowal::%player%::%tool of player%} <= {@ograniczenie}: add 100 to {enchant::kowal::%player%::%tool of player%} enchant tool of player with sharpness {enchant::kowal::%player%::%tool of player%} send "Ulepszono..." to the player else: send "&cUlepszono maksymalnie ;<" to the player Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148268 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MaksPolska 0 Opublikowano 25 września 2017 Autor Udostępnij Opublikowano 25 września 2017 @esej ten sam błąd co wcześniej Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148270 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 26 września 2017 Udostępnij Opublikowano 26 września 2017 options: ograniczenie: 30000 command /ulepszkowal: trigger: if {enchant::kowal::%player%::%tool of player%} <= {@ograniczenie}: add 100 to {enchant::kowal::%player%::%tool of player%} set {_ench} to "sharpness %{enchant::kowal::%player%::%tool of player%}%" enchant tool of player with sharpness {_ench} parsed as enchantment type send "Ulepszono..." to the player else: send "&cUlepszono maksymalnie ;<" to the player Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148296 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MaksPolska 0 Opublikowano 27 września 2017 Autor Udostępnij Opublikowano 27 września 2017 Nie działa dobrze = raz enchantuje na 400, raz na 100 , raz na 500, raz na 200.... itp... "ulepsza" tylko miecze z równym enchantem (np. 100, 200,300) a raczej nie ulepsza tylko próbuje @esej Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148505 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 28 września 2017 Udostępnij Opublikowano 28 września 2017 Jest tylko jeden warunek na to, aby sprawdzało czy zmienna od enchantu jest większa niż 100. Oraz nie może raz na 400 raz na 100... musi być jakiś problem ze zmiennymi spróbuj wyczyścić zmienne tym skryptem command /wyczysc: trigger: clear {enchant::kowal::%player%::*} send "Status zmiennej od przedmiotow: %{enchant::kowal::%player%::*}%" to the player Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148613 Udostępnij na innych stronach Więcej opcji udostępniania...
0 _AvaX_ 294 Opublikowano 29 września 2017 Udostępnij Opublikowano 29 września 2017 command /ulepsz [<integer>]: trigger: set {_ce} to "%level of sharpness of the player's tool%" parsed as integer if arg is set: add arg to {_ce} else: add 100 to {_ce} set {_ench} to "sharpness %{_ce}%" parsed as enchantment type enchant player's tool with {_ench} Nie testowane Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148681 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MaksPolska 0 Opublikowano 30 września 2017 Autor Udostępnij Opublikowano 30 września 2017 @Quaczi Nie działa, wywala taki błąd: [19:09:28] [Server thread/ERROR]: #!#! [Skript] Severe Error: [19:09:28] [Server thread/ERROR]: #!#! Could not load ulepszanie.sk [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong. [19:09:28] [Server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/ [19:09:28] [Server thread/ERROR]: #!#! and check whether this error has already been reported. [19:09:28] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it, [19:09:28] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error. [19:09:28] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well. [19:09:28] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast. [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Stack trace: [19:09:28] [Server thread/ERROR]: #!#! ch.njol.skript.SkriptAPIException: The class 'enchantment' does not provide a default expression. Either allow null (with %-enchantment%) or make it mandatory [pattern: [the] (%enchantment% level|level of [[the] enchant[ment]] %enchantment%) o(f|n) %itemtypes%] [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:220) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:509) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseObjectExpression(SkriptParser.java:380) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:286) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:199) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:111) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:507) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:294) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:990) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:209) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:509) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseObjectExpression(SkriptParser.java:380) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:286) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:990) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:981) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:209) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:42) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:615) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:449) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:462) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:262) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Version Information: [19:09:28] [Server thread/ERROR]: #!#! Skript: 2.1.2 [19:09:28] [Server thread/ERROR]: #!#! Bukkit: 1.7.2-R0.3-SNAPSHOT [19:09:28] [Server thread/ERROR]: #!#! Minecraft: 1.7.2 [19:09:28] [Server thread/ERROR]: #!#! Java: 1.8.0_121 [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Running CraftBukkit: false [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Current node: set {_ce} to "%level of sharpness of the player's tool%" parsed as integer (ulepszanie.sk, line 3) [19:09:28] [Server thread/ERROR]: #!#! Current item: null [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Thread: Server thread [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! End of Error. [19:09:28] [Server thread/ERROR]: #!#! Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148845 Udostępnij na innych stronach Więcej opcji udostępniania...
0 jaku49 691 Opublikowano 30 września 2017 Udostępnij Opublikowano 30 września 2017 Nie dziw się że Ci nie działa to wina 1.7 Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148846 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 30 września 2017 Udostępnij Opublikowano 30 września 2017 1 godzinę temu, MaksPolska napisał: @Quaczi Nie działa, wywala taki błąd: [19:09:28] [Server thread/ERROR]: #!#! [Skript] Severe Error: [19:09:28] [Server thread/ERROR]: #!#! Could not load ulepszanie.sk [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong. [19:09:28] [Server thread/ERROR]: #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/ [19:09:28] [Server thread/ERROR]: #!#! and check whether this error has already been reported. [19:09:28] [Server thread/ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it, [19:09:28] [Server thread/ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error. [19:09:28] [Server thread/ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well. [19:09:28] [Server thread/ERROR]: #!#! By following this guide fixing the error should be easy and done fast. [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Stack trace: [19:09:28] [Server thread/ERROR]: #!#! ch.njol.skript.SkriptAPIException: The class 'enchantment' does not provide a default expression. Either allow null (with %-enchantment%) or make it mandatory [pattern: [the] (%enchantment% level|level of [[the] enchant[ment]] %enchantment%) o(f|n) %itemtypes%] [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:220) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:509) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseObjectExpression(SkriptParser.java:380) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:286) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:199) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.VariableString.newInstance(VariableString.java:111) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:507) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:294) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:990) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:209) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseSingleExpr(SkriptParser.java:509) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseObjectExpression(SkriptParser.java:380) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parseExpression(SkriptParser.java:286) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:990) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:981) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:209) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:164) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:42) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:615) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.command.Commands.loadCommand(Commands.java:449) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:462) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:262) [19:09:28] [Server thread/ERROR]: #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542) [19:09:28] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchServerCommand(CraftServer.java:529) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.DedicatedServer.aw(DedicatedServer.java:286) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:251) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [19:09:28] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Version Information: [19:09:28] [Server thread/ERROR]: #!#! Skript: 2.1.2 [19:09:28] [Server thread/ERROR]: #!#! Bukkit: 1.7.2-R0.3-SNAPSHOT [19:09:28] [Server thread/ERROR]: #!#! Minecraft: 1.7.2 [19:09:28] [Server thread/ERROR]: #!#! Java: 1.8.0_121 [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Running CraftBukkit: false [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Current node: set {_ce} to "%level of sharpness of the player's tool%" parsed as integer (ulepszanie.sk, line 3) [19:09:28] [Server thread/ERROR]: #!#! Current item: null [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! Thread: Server thread [19:09:28] [Server thread/ERROR]: #!#! [19:09:28] [Server thread/ERROR]: #!#! End of Error. [19:09:28] [Server thread/ERROR]: #!#! Ten błąd oznacza, że nie może pobrać poziomu enchantu. Zaktualizuj wersję silnika. oraz pluginu. Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148853 Udostępnij na innych stronach Więcej opcji udostępniania...
0 _AvaX_ 294 Opublikowano 30 września 2017 Udostępnij Opublikowano 30 września 2017 Zmień na enchantment level of sharpness of player's tool i zainstaluj RandomSK Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-148860 Udostępnij na innych stronach Więcej opcji udostępniania...
0 MaksPolska 0 Opublikowano 1 października 2017 Autor Udostępnij Opublikowano 1 października 2017 @Quaczi Po zainstalowaniu RandomSK i zmianie na "enchantment level of sharpness of player's tool" wkoncu zadziałało Temat do zamknięcia Odnośnik do komentarza https://skript.pl/temat/21767-ulepszanie/#findComment-149160 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
MaksPolska 0
Cześć, potrzebuję skryptu na ulepszanie tutaj opis:
Wpisujemy komendę /ulepszkowal
Chce aby po wpisaniu tej komendy do itemu który mamy w ręce dodawało się 100 sharpnessu
Na przykład: Jeśli mam w ręce miecz sharpness 1000 to po ulepszeniu będę miał sharpness 1100
Ulepszać można do woli..
Odnośnik do komentarza
https://skript.pl/temat/21767-ulepszanie/Udostępnij na innych stronach
14 odpowiedzi na to pytanie
Rekomendowane odpowiedzi