-
Notifications
You must be signed in to change notification settings - Fork 0
/
svo (elistsorter).xml
216 lines (202 loc) · 9.89 KB
/
svo (elistsorter).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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?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 Elist Sorter</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="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>svo Capture elist/elist2/venomlist</name>
<script>svo.parsing_vlist = line:find("Venom") and true or false
svo.es_capture()
svo.storedvials = {}</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>999</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>Vial</string>
<string>Months</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>0</integer>
</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>svo Capture elist stop</name>
<script>if not string.find(getLines(getLineNumber()-1, getLineNumber())[1], "^Vial") then
setTriggerStayOpen("svo Capture elist/elist2/venomlist", 0)
svo.es_captured(svo.parsing_vlist)
send("config pagelength "..(svo.conf.pagelength >= 20 and svo.conf.pagelength or 20), false)
svo.gag_list = nil
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#aaff00</mFgColor>
<mBgColor>#00aa00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>------------------------------------------</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>elist/elist2 vial</name>
<script>if svo.gag_list then deleteLine() end
local vialid = tonumber(matches[2])
local potion = matches[3]
local sips = tonumber(matches[4])
local months = tonumber(matches[5]) or "arty"
local category = svo.es_categories[potion] or "unknown"
svo.es_vials = svo.es_vials or {}
svo.es_vials[vialid] = {months = months, potion = potion, sips = sips}
svo.es_potions[category] = svo.es_potions[category] or {}
svo.es_potions[category][potion] = svo.es_potions[category][potion] or {sips = 0, vials = 0, decays = 0}
svo.es_potions[category][potion].sips = svo.es_potions[category][potion].sips + sips
svo.es_potions[category][potion].vials = svo.es_potions[category][potion].vials + 1
svo.es_vialids = svo.es_vialids or {}
if svo.es_shortnamesr[potion] then
svo.es_vialids[svo.es_shortnamesr[potion]] = svo.es_vialids[svo.es_shortnamesr[potion]] or {}
svo.es_vialids[svo.es_shortnamesr[potion]][#svo.es_vialids[svo.es_shortnamesr[potion]]+1] = vialid
end
if type(months) == "number" and months <= svo.conf.decaytime then
svo.es_potions[category][potion].decays = svo.es_potions[category][potion].decays + 1
end
svo.es_knownstuff[potion] = svo.es_knownstuff[potion] or 2
-- deal with obfuscated vials now
if not line:find("Obfuscated") then return end
if sips <= svo.conf.obfsips then
svo.doaddfree(string.format("put %s in %s", vialid, svo.conf.obfcontainer))
svo.storedvials = svo.storedvials or {}
svo.storedvials[vialid] = true
end</script>
<triggerType>0</triggerType>
<conditonLineDelta>3</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>[Vv]ial(\d+)\s+(.+?)\s+(\d+)\s+(\d+|(?:---))$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Auto-more (elist)</name>
<script>send("more", false)
svo.deleteLineP()</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>[Type MORE if you wish to continue reading</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
</regexCodePropertyList>
</Trigger>
</Trigger>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>svo Elist Sorter</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Dispose of decays</name>
<script>svo.es_dispose(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^dispose of decays by: (.+)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Get obfuscated vials out of pack</name>
<script>if not svo.storedvials then svo.echof("We didn't store any obfuscated vials stored away.") svo.showprompt() return end
for vial in pairs(svo.storedvials) do
send("get "..vial.." from "..svo.conf.obfcontainer, false)
end</script>
<command></command>
<packageName></packageName>
<regex>^vialsout$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>elist/vlist</name>
<script>svo.gag_list = true
send("config pagelength 250", false)
send(command, false)</script>
<command></command>
<packageName></packageName>
<regex>^(?:e|v)list$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>svo Elist Sorter</name>
<packageName></packageName>
<script></script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>svo_put_vials_away</name>
<packageName></packageName>
<script>function svo_put_vials_away()
if not svo.storedvials then return end
for vial in pairs(svo.storedvials) do
send("get "..vial.." from "..svo.conf.obfcontainer, false)
end
svo.storedvials = {}
end</script>
<eventHandlerList>
<string>svo quit</string>
</eventHandlerList>
</Script>
</ScriptGroup>
</ScriptPackage>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>