Skip to content

Commit

Permalink
[New Script][bard-whistle] Passive loop to train Bardic Lore
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Nov 13, 2024
1 parent 5e6d1f4 commit 156cb7c
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
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 156cb7c

Please sign in to comment.