From 156cb7c5bc58660d8e4cc9e8eab0ab8b274491dd Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:31:36 +1300 Subject: [PATCH 1/2] [New Script][bard-whistle] Passive loop to train Bardic Lore --- bard-whistle.lic | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 bard-whistle.lic diff --git a/bard-whistle.lic b/bard-whistle.lic new file mode 100644 index 0000000000..cd86fbc748 --- /dev/null +++ b/bard-whistle.lic @@ -0,0 +1,27 @@ +custom_require.call(%w(common drinfomon)) + +no_kill_all + +class Whistle + def initialize + @combat_scripts = ['hunting-buddy', 'combat-trainer'] + exit unless DRStats.guild == 'Bard' && DRSkill.getrank('Bardic Lore') < 1750 + passive_loop + end + + def do_whistle + return if @combat_scripts.any? { |name| Script.running?(name) } + return unless DRSkill.getxp('Bardic Lore') < 32 + + fput('WHISTLE PIERCING') + end + + def passive_loop + loop do + do_whistle + pause 30 + end + end +end + +Whistle.new From 408e0426ae942e049b9fb2980abca1e749a1f25e Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Thu, 14 Nov 2024 10:35:24 +1300 Subject: [PATCH 2/2] Adding circle check --- bard-whistle.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bard-whistle.lic b/bard-whistle.lic index cd86fbc748..55b489ee3b 100644 --- a/bard-whistle.lic +++ b/bard-whistle.lic @@ -5,7 +5,7 @@ no_kill_all class Whistle def initialize @combat_scripts = ['hunting-buddy', 'combat-trainer'] - exit unless DRStats.guild == 'Bard' && DRSkill.getrank('Bardic Lore') < 1750 + exit unless DRStats.guild == 'Bard' && DRSkill.getrank('Bardic Lore') < 1750 && DRStats.circle >= 18 passive_loop end