-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[New Script][bard-whistle] Passive loop to train Bardic Lore
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |