#========================================================= # SkQueryToTuSke by AlexLew # Version 1.2 #========================================================= command /convert : trigger: if file "plugins/Skript/scripts/%arg-1%.sk" exists: set {_contain::*} to file contents of "plugins/Skript/scripts/%arg-1%.sk" replace all "format slot" with "format gui slot" in {_contain::*} replace all "arrow" with "e%%dp¨^¤" in {_contain::*} replace all "rows" with "" in {_contain::*} replace all "row" with "" in {_contain::*} replace all "open chest with" with "open virtual chest inventory with size" in {_contain::*} replace all "]" with "" in {_contain::*} replace all "[" with "" in {_contain::*} replace all "make player execute" with "player" in {_contain::*} replace all "make console execute" with "console" in {_contain::*} replace all "be unstealable" with "do nothing" in {_contain::*} replace all "é" with "e" in {_contain::*} replace all "♦" with "&?&" in {_contain::*} replace all "close then run" with "run" in {_contain::*} replace all "e%%dp¨^¤" with "arrow" in {_contain::*} set {_number} to 1 set {_wait} to true while {_wait} is true: if file "plugins/Skript/scripts/%arg-1%%{_number}%.sk" exists: if {_number} < 6: add 1 to {_number} else: send "&4[%now%] &cSo much files created! Please delete last files for convert this file." stop else: create file "plugins/Skript/scripts/%arg-1%%{_number}%.sk" loop (amount of {_contain::*}) times: write "%{_contain::%loop-value%}%" at line loop-value to file "plugins/Skript/scripts/%arg-1%%{_number}%.sk" send "&aYour script has been successfully converted!" to console stop else: send "&4[%now%] &cThis file doesn't exists!" stop