-
Notifications
You must be signed in to change notification settings - Fork 0
/
idle.cmd
71 lines (57 loc) · 1.82 KB
/
idle.cmd
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
include libmaster.cmd
action put exit when eval $health < 20
action put exit when eval $dead = 1
#action put exit when eval $bleeding = 1
#action put exit when eval $stunned = 1
action put #script abort all except idle; put exit when ^Inauri whispers, "!quit
action put #script abort all except idle when ^Inauri whispers, "!stop
action send awake when ^Inauri whispers, "!awake
action send awake; send sleep; send sleep when ^Inauri whispers, "!sleep
action goto goHouse when ^Inauri whispers, "!house
action put tellexp Inauri $1 when ^Inauri whispers, "!tellexp (.*)
action var skill $1; goto tellSKillLearningRate when ^Inauri whispers, "!skill (.*)"
action goto castTv when ^Inauri whispers, "tv"
action send accept when ^.*offers you.*ACCEPT
action put ooc inauri I know teach, quit, stop, awake, sleep, house, and tellexp when ^Inauri whispers, "!help
var nextAlarmAt 0
var nextAllowableWhisperAt 0
timer start
loop:
if (%t > %nextAlarmAt) then {
evalmath nextAlarmAt %t + 240
# echo [$time]
gosub tdps
}
pause 2
goto loop
goHouse:
put #script pause all except idle
pause
send unlock house
pause
send open house
pause
send go house
goto loop
tellSKillLearningRate:
if (%nextAllowableWhisperAt < %t) then {
evalmath nextAllowableWhisperAt (%t + 2)
if (contains("$%skill.LearningRate", "LearningRate")) then {
put whisper inauri It's ok to make mistakes, I still love you
} else {
put whisper inauri %skill: $%skill.Ranks ($%skill.LearningRate/34)
}
}
goto loop
castTv:
put #script pause all except idle
pause .3
gosub release spell
gosub release mana
gosub release symbi
gosub prep tv 60
pause 20
gosub cast Selesthiel
pause 60
put #script resume all
goto loop