-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvo (sparkstracker).xml
135 lines (124 loc) · 5.97 KB
/
svo (sparkstracker).xml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<TriggerPackage>
<TriggerGroup isActive="yes" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>svo Sparks Tracker</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList/>
<regexCodePropertyList/>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Spark</name>
<script>svo.sparks = svo.sparks or {}
local room = gmcp.Room.Info.num
svo.sparks[room] = (svo.sparks[room] or 0) + 1
echo(string.format(" (%s/12)", svo.sparks[room]))
-- setup a warning for the next spark
tempTimer(15, function()
svo.echof("Next spark %s is in 5s, if you aren't summoning, summon now.", (room == gmcp.Room.Info.num and "here" or "in "..getRoomName(room)))
end)
tempTimer(18, function()
svo.echof("Spark %s in 2...", (room == gmcp.Room.Info.num and "here" or "in "..getRoomName(room)))
end)
tempTimer(19, function()
svo.echof("Spark %s in 1...", (room == gmcp.Room.Info.num and "here" or "in "..getRoomName(room)))
end)
-- it's possible that Mudlet is left on running for days, so clear this after a few hours
tempTimer(60*60*4, function()
svo.sparks[room] = svo.sparks[room] - 1
if svo.sparks[room] < 0 then svo.sparks[room] = 0 end
end)</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>A wisp of flame glimmers in mid-air, radiating a massive wave of heat before flickering out.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="yes" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Failed spark</name>
<script>svo.sparks = svo.sparks or {}
svo.sparks[gmcp.Room.Info.num] = 0
selectCurrentLine()
setBold(true)
deselect()
resetFormat()</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff5500</mFgColor>
<mBgColor>#000000</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>Unable to remain channelled, the summoning has failed.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Summoners in room</name>
<script>for i = 1, #matches do
local line = matches[i]
local pos = selectString(line, i)
fg("coral")
moveCursor("main", pos+#line+4, getLineNumber())
svo.summoner = (svo.summoner or 0) + 1
cinsertText(string.format(" <a_red>(<orange>%s%s<a_red>)", svo.summoner, string.ordinalSuffix(svo.summoner)))
moveCursorEnd()
deselect()
resetFormat()
end
svo.prompttrigger("clear summoners", function() svo.summoner = nil end)</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>eyes focused intently on the empty space before</string>
</regexCodeList>
<regexCodePropertyList>
<integer>0</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage/>
<ActionPackage/>
<ScriptPackage/>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>