diff --git a/scripts/sk.lic b/scripts/sk.lic index 74c8b98af..a99106e08 100644 --- a/scripts/sk.lic +++ b/scripts/sk.lic @@ -9,8 +9,10 @@ game: Gemstone tags: sk, self knowledge requires: Lich >= 4.6.0 - version: 1.2.1 + version: 1.2.2 + v1.2.2 (2025-02-01) + - Add exception to not run if on Lich5 with built-in support for SKs v1.2.1 (2024-08-24) - Fix to use old time_per calc if exists and < 10mins v1.2.0 (2024-02-22) @@ -22,6 +24,22 @@ - initial release =end +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' } } + sleep(0.1) while Script.running?("autostart") + 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' } } + sleep(0.1) while Script.running?("autostart") + echo("Found ;sk in your character autostarts, removing now!") + Script.run("autostart", "remove sk") + end + exit +end + module Games module Gemstone class Spell