-
Notifications
You must be signed in to change notification settings - Fork 68
/
svo (fishdist).xml
362 lines (357 loc) · 20.8 KB
/
svo (fishdist).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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<TriggerPackage>
<TriggerGroup isActive="no" isFolder="yes" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>svo Fishing Distance by Trilliana</name>
<script></script>
<triggerType>0</triggerType>
<conditonLineDelta>0</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName>fishing distancetest</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>casting</name>
<script>deleteLine()
cecho("\n<steel_blue>Cast the line " .. matches[2] .. " feet.")
fdistance = matches[2]</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>^You cock back your arm and smoothly cast a line into the nearby water. You judge the cast at about (\d+) feet\.$</string>
<string>^You cock back your arm and smoothly cast your line over the railing into the nearby water. You judge the cast at about (\d+) feet\.$</string>
<string>^You cock back your arm and smoothly cast a line into the nearby water. You judge the cast at about (\d+) feet\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
<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>fishing highlight 2</name>
<script>deleteLine()
cecho("\n<DeepPink>Fish swam out " .. matches[2].. " feet.")
fdistance = fdistance + matches[2]
cecho("<LightGoldenrod> Gotta reel in " .. fdistance .. " feet.")
if catch then cecho("<red> Caught a " ..catch.."!!") 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>^The fish tries to swim with the hook, drawing (\d+) feet of line\.$</string>
<string>^Your rod bends slightly as your fish tries to escape its barbed tether, running out (\d+) foot of line\$.</string>
<string>^The fish you've hooked struggles against the line and runs it out (\d+) feet\.$</string>
<string>^You feel the fish tugging on your line, drawing it out about (\d+) foot\.$</string>
<string>^Your rod bends slightly as your fish tries to escape its barbed tether, running out (\d+) feet of line\.$</string>
<string>^You feel the fish tugging on your line, drawing it out about (\d+) feet\.$</string>
<string>^Your rod bends slightly as your fish tries to escape its barbed tether, running out (\d+) feet of line\.$</string>
<string>Your fish struggles and swims firmly away from you, drawing out (\d+) feet of fishing line.</string>
<string>The fish tries to swim with the hook, drawing (\d+) foot of line.</string>
<string>^Your rod bends slightly as your fish tries to escape its barbed tether, running out (\d+) foot of line\.$</string>
<string>^The fish on your line shows its power by running out (\d+) feet of line\.$</string>
<string>^Tugging powerfully, your fish draws out (\d+) feet of line\.$</string>
<string>^Dodging back and forth furiously, your fish draws out (\d+) feet of line\.$</string>
<string>^With a pull that threatens to rip the pole from your hand, the fish you've hooked runs out (\d+) feet of line\.$</string>
<string>^With an arm-wrenching burst of power, the fish you've hooked runs out (\d+) feet of fishing line\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<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>fishing highlight</name>
<script>deleteLine()
cecho("\n<LawnGreen>You have ".. matches[2].. " feet left to reel in!")
fdifference = fdistance - matches[2]
cecho("<medium_orchid> You reeled in ".. fdifference .. " feet.")
fdistance = matches[2]
if catch then cecho("<red> Caught a " ..catch.."!!") 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>You have (\d+) feet of line left to bring in\.$</string>
<string>You have (\d+) foot of line left to bring in\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<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>fish!</name>
<script>if selectString( line, 1 ) > -1 then setFgColor( 255,204,204 ) setBgColor( 51,0,51 ) resetFormat() end
fdistance = false
catch = false
</script>
<triggerType>0</triggerType>
<conditonLineDelta>39</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff00ff</mFgColor>
<mBgColor>#55007f</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>With a final tug, you finish reeling in the line and land a</string>
<string>You reel in the last bit of line and your struggle is over. You've landed a </string>
<string>You reel in the last bit of line and your struggle is over. </string>
<string>With a style born of skill, you reel in a</string>
<string>You quickly reel in a </string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
<integer>2</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="yes" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>fishinghightlight 3</name>
<script>deleteLine()
catch = matches[2], true
cecho("\n<DeepPink>Fish swam out " .. matches[3].. " feet.")
fdistance = fdistance + matches[3]
cecho("<LightGoldenrod> Distance left to reel is " .. fdistance .. ".")
cecho("<red> Caught a " .. catch .."!!")
</script>
<triggerType>0</triggerType>
<conditonLineDelta>3</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffffff</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^With a power born of the Seagod, a (whiskerknot skrei|stripefish|two-headed fish|giant hatchetfish|coelacanth|spotted fangtooth|duskfin tuna|redfin tuna) leaps from the water explosively, running the line out (\d+) feet\.$</string>
<string>^Leaping from the water in a frenzy to escape, a (whiskerknot skrei|stripefish|two-headed fish|giant hatchetfish|coelacanth|spotted fangtooth|duskfin tuna|redfin tuna) runs out (\d+) feet of your line\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</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>Snapline</name>
<script>cecho("\n<red>AWW SNAP!")
cecho("\n<yellow>AWW SNAP!")
catch = false
fdistance = false</script>
<triggerType>0</triggerType>
<conditonLineDelta>39</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>As the fish strains your line beyond its breaking point, it snaps suddenly, costing you your fish and bait.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</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>baited</name>
<script>fdistance = "baited"</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>Throwing away your existing bait, you carefully thread a</string>
<string>You carefully thread a</string>
<string>You reel your line in completely.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>2</integer>
<integer>3</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>Removing bait</name>
<script>fdistance = false</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>You take (a worm|a minnow|a sand flea|a shrimp|a shelled clam|a crab|a mudsucker|a hunk of octopus|a rock bass|a marble carp) from (a|an) (.*) fishing pole.$</string>
<string>Your line snaps or fouls and you lose your bait.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>3</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>decay on pole</name>
<script>fdistance = lineout</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 (.*) has decayed to dust inside of pole#(\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>moved</name>
<script>fdistance = false</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>Your line fouls and you lose your bait.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage/>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>svo Fishing Distance by Trilliana</name>
<packageName></packageName>
<script></script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>svo_load_fishingdistance</name>
<packageName></packageName>
<script>function svo_load_fishingdistance()
svo.adddefinition("@fishdist", "svo.telldistance()")
-- returns the value of the 'baited' 'no line out' or the distance
function svo.telldistance()
if fdistance == "baited" then return "<light_sky_blue>baited" elseif fdistance == "lineout" then return "<dark_green>Line out, no bait!" elseif fdistance then return "<slate_blue>"..fdistance.." feet out" else return "<medium_sea_green>no line out" end
end
if type(svo.conf.fishhighlight) ~= 'nil' then
if svo.conf.fishhighlight then enableTrigger"svo Fishing Distance by Trilliana" else
disableTrigger"svo Fishing Distance by Trilliana" end
end
svo.config.setoption("fishhighlight",
{
vconfig2string = true,
type = "boolean",
onenabled = function ()
enableTrigger"svo Fishing Distance by Trilliana"
svo.echof("<0,250,0>Will%s show highlights for fishing.", svo.getDefaultColor())
if not string.find(svo.conf.customprompt, "@fishdist", 1, true) then
svo.config.set("customprompt", svo.conf.customprompt .." @fishdist", false)
svo.echof("Added the fishing distance to your custom prompt as well.")
end
end,
ondisabled = function ()
disableTrigger"svo Fishing Distance by Trilliana"
if string.find(svo.conf.customprompt, "@fishdist", 1, true) then
svo.config.set("customprompt", svo.conf.customprompt:gsub(" @fishdist", ""), false)
svo.echof("Removed the fishing distance tag from your custom prompt.")
end
svo.echof("<250,0,0>Won't%s show highlights for fishing.", svo.getDefaultColor())
end,
onshow = function (defaultcolour)
fg("gold")
echoLink("fishing dist:", "", "svo Fishing Distance by Trilliana", true)
fg(defaultcolour)
echo(" Fishing highlights are ")
fg("a_cyan") echoLink(svo.conf.fishhighlight and "enabled" or "disabled", "svo.config.set('fishhighlight', "..(svo.conf.fishhighlight and "false" or "true")..", true)", "Click to "..(svo.conf.fishhighlight and "disable" or "enable").." fishing highlight triggers", true) fg(defaultcolour)
echo(".\n")
end})
end</script>
<eventHandlerList>
<string>svo system loaded</string>
</eventHandlerList>
</Script>
</ScriptGroup>
</ScriptPackage>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>