forked from elanthia-online/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglyph-of-mana.lic
More file actions
31 lines (26 loc) · 1.08 KB
/
glyph-of-mana.lic
File metadata and controls
31 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
=begin
Documentation: https://elanthipedia.play.net/Lich_script_repository#glyph-of-mana
=end
custom_require.call(%w[common])
no_pause_all
class GlyphMana
include DRC
def initialize
do_glyphy_stuff
end
def do_glyphy_stuff
case bput('glyph mana', 'You trace a glyph into the air in', 'Paladin now', 'but you sense that this glyph is already in effect here', 'You trace a glyph into the air managing only to look foolish')
when 'Paladin now', 'You trace a glyph into the air managing only to look foolish'
echo('You do not know how to use this glyph.')
exit
end
while line = get
waitrt?
next unless line =~ /^You sense the holy power return to normal/
Script.running.find_all { |s| !s.paused? && !s.no_pause_all }.each(&:pause)
bput('glyph mana', 'You trace a glyph into the air in', 'Paladin now', 'but you sense that this glyph is already in effect here', 'You trace a glyph into the air managing only to look foolish')
Script.running.find_all { |s| s.paused? && !s.no_pause_all }.each(&:unpause)
end
end
end
GlyphMana.new