forked from rpherbig/dr-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glyph-of-mana.lic
31 lines (26 loc) · 989 Bytes
/
glyph-of-mana.lic
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/
pause 1 until pause_all
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')
unpause_all
end
end
end
GlyphMana.new