-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6985 from MahtraDR/main
Syncing repos
- Loading branch information
Showing
4 changed files
with
50 additions
and
23 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 && 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 |
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
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
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