Skip to content

Commit

Permalink
Merge pull request #1768 from elanthia-online/sk-v1.2.2-take2
Browse files Browse the repository at this point in the history
[sk.lic] v1.2.2 fix for newer Lich5 baked in SK support
  • Loading branch information
mrhoribu authored Feb 2, 2025
2 parents b63ca8f + fe5cbe5 commit 4ea42b8
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion scripts/sk.lic
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 4ea42b8

Please sign in to comment.