Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Script][bard-whistle] Passive loop to train Bardic Lore #6984

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading