Skip to content

Commit

Permalink
Merge pull request #6984 from MahtraDR/bard_whistle
Browse files Browse the repository at this point in the history
[New Script][bard-whistle] Passive loop to train Bardic Lore
  • Loading branch information
MahtraDR authored Nov 13, 2024
2 parents 06bb98c + 408e042 commit 4813aaf
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions bard-whistle.lic
Original file line number Diff line number Diff line change
@@ -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 && DRStats.circle >= 18
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

0 comments on commit 4813aaf

Please sign in to comment.