forked from brycole/gemstone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfamiliarkeeper.lic
44 lines (39 loc) · 1 KB
/
familiarkeeper.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
32
33
34
35
36
37
38
39
40
41
42
43
44
#Familiar protector to keep your familiar alive while afk or whatever.
while true
wait_until {(Spell[920].timeleft != 0.0) && (Spell[920].timeleft < 5.0)}
if running? "waggle"
pause_script "waggle"
didpause = true
end
if checkprep != 'None' then put "release" end
waitcastrt?
waitrt?
casted = false
while !casted
wait_until {checkmana(20) || checkstamina(50)}
if checkmana 20
fput "inc 920"
elsif checkstamina 50
fput "sigil of power"
pause 1
fput "inc 920"
end
waitfor "You gesture."
line2 = get
waitcastrt?
if line2 == "Your magic fizzles ineffectually."
room = Room.current.id
until room != Room.current.id
echo "*** You are in an ANTI-MAGIC zone ***"
echo "*** familiar keeper will restart in 25 seconds ***"
echo "*** and only if you leave this room ***"
pause 25
end
end
if (Spell[920].timeleft > 5.0) then casted = true end
end
if didpause
pause 3
unpause_script "waggle"
end
end