From d7a2c78de3072335e9ae7df37989a8fc582d42c0 Mon Sep 17 00:00:00 2001 From: "Ryan P. McKinnon" <15917743+mrhoribu@users.noreply.github.com> Date: Sun, 2 Feb 2025 09:42:59 -0500 Subject: [PATCH] add removal of sk from autostart list automation --- scripts/sk.lic | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/sk.lic b/scripts/sk.lic index c25d2063c..97f2f4bc9 100644 --- a/scripts/sk.lic +++ b/scripts/sk.lic @@ -27,6 +27,14 @@ if defined?(Lich::Gemstone::SK) echo("Version of Lich5 has built-in support for ;sk manipulation.") echo("No longer need to run the script.") + if DB_Store.read(":", "autostart")["scripts"].any? { |script| script.any? { |k, v| v == 'sk' } } + echo("Found ;sk in your global autostarts, removing now!") + Script.run("autostart", "remove --global sk") + end + if DB_Store.read("#{XMLData.game}:#{XMLData.name}", "autostart")["scripts"].any? { |script| script.any? { |k, v| v == 'sk' } } + echo("Found ;sk in your character autostarts, removing now!") + Script.run("autostart", "remove sk") + end exit end