Skip to content

Commit

Permalink
add removal of sk from autostart list automation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhoribu authored Feb 2, 2025
1 parent c94d05d commit d7a2c78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/sk.lic
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d7a2c78

Please sign in to comment.