forked from svof/svof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvo (runeidentifier).xml
207 lines (199 loc) · 9.76 KB
/
svo (runeidentifier).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
<?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 Rune Identifier</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>Totem</name>
<script>local rune = multimatches[2][2]
local t = {
["like an open eye"] = {
rune = "wunjo", effect = "cure blind"},
["that looks like a stick man"] = {
rune = "inguz", effect = "paralysis"},
["shaped like a butterfly"] = {
rune = "nairat", effect = "transfix"},
["like a closed eye"] = {
rune = "fehu", effect = function()
if not svo.fehu or svo.fehu == 3 then svo.fehu = 1 return "strip insomnia"
elseif svo.fehu == 1 then svo.fehu = 2 return "sleep"
elseif svo.fehu == 2 then svo.fehu = 3 return "strip kola" end
end
},
["resembling a bell"] = {
rune = "mannaz", effect = "cure deaf"},
["that looks like a nail"] = {
rune = "sowulu", effect = "damage"},
["that looks like something out of your nightmares"] = {
rune = "kena", effect = "fear"},
["shaped like a viper"] = {
rune = "sleizak", effect = "voyria"},
["resembling an apple core"] = {
rune = "loshre", effect = "anorexia"},
["resembling a square box"] = {
rune = "pithakhan", effect = "drain mana"},
["like a lightning bolt"] = {
rune = "uruz", effect = "heal"},
["resembling a leech"] = {
rune = "nauthiz", effect = "hunger"},
["like an upward-pointing arrow"] = {
rune = "tiwaz", effect = "defence strip"}
}
echo(string.rep(" ", 60-#multimatches[2][1]))
if t[rune] then
cecho(string.format(" <a_red>(<a_grey>%s: <a_cyan>%s<a_red>)",
t[rune].rune, type(t[rune].effect) == "function" and t[rune].effect() or t[rune].effect))
else
cecho(" <a_red>(<a_darkyellow>unknown!<a_red)")
end
svo.prompttrigger("clear fehu", function() svo.fehu = nil end)</script>
<triggerType>0</triggerType>
<conditonLineDelta>1</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 rune</string>
<string>^A rune (.+) is sketched in slot \d+\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</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>On a person/ground</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>
<string>A rune</string>
</regexCodeList>
<regexCodePropertyList>
<integer>0</integer>
</regexCodePropertyList>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="yes" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Regex</name>
<script>local t = {
["like an open eye"] = {
rune = "wunjo", effect = "cure blind"},
["that looks like a stick man"] = {
rune = "inguz", effect = "paralysis"},
["shaped like a butterfly"] = {
rune = "nairat", effect = "transfix"},
["like a closed eye"] = {
rune = "fehu", effect = function()
if not svo.fehu or svo.fehu == 3 then svo.fehu = 1 return "strip insomnia"
elseif svo.fehu == 1 then svo.fehu = 2 return "sleep"
elseif svo.fehu == 2 then svo.fehu = 3 return "strip kola" end
end
},
["resembling a bell"] = {
rune = "mannaz", effect = "cure deaf"},
["that looks like a nail"] = {
rune = "sowulu", effect = "damage"},
["that looks like something out of your nightmares"] = {
rune = "kena", effect = "fear"},
["shaped like a viper"] = {
rune = "sleizak", effect = "voyria"},
["resembling an apple core"] = {
rune = "loshre", effect = "anorexia"},
["resembling a square box"] = {
rune = "pithakhan", effect = "drain mana"},
["like a lightning bolt"] = {
rune = "uruz", effect = "heal"},
["resembling a leech"] = {
rune = "nauthiz", effect = "hunger"},
["like an upward-pointing arrow"] = {
rune = "tiwaz", effect = "defence strip"},
["shaped like a mighty oak"] = {
rune = "jera", effect = "+1 con and str"},
["resembling an elk"] = {
rune = "algiz", effect = "10% dmg reduction"},
["like a lion"] = {
rune = "berkana", effect = "lvl1 health regen"},
["resembling a horse"] = {
rune = "raido", effect = "return location"},
["like a flurry of lightning bolts"] = {
rune = "isaz", effect = "throws off balance"},
["like a rising sun"] = {
rune = "dagaz", effect = "heals affs"},
["shaped like a yew"] = {
rune = "eihwaz", effect = "removes vibes"},
["resembling a volcano"] = {
rune = "thurisaz", effect = "hits a person"},
}
for i = 1, #matches, 2 do
local rune = matches[i+1]
local line = matches[i]
local pos = selectString(line, 1)
moveCursor("main", pos+#line-1, getLineNumber())
if t[rune] then
cinsertText(string.format(" <a_blue>(<a_grey>%s: <a_cyan>%s<a_blue>)",
t[rune].rune, type(t[rune].effect) == "function" and t[rune].effect() or t[rune].effect))
else
cinsertText(" <a_blue>(<a_darkyellow>unknown!<a_blue>)")
end
end
deselect()
resetFormat()
moveCursorEnd()
svo.prompttrigger("clear fehu", function() svo.fehu = 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>A rune (.+?) has been sketched onto (?:him|her)\.</string>
<string>A rune (.+?) has been sketched into the ground here\.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</Trigger>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage/>
<ActionPackage/>
<ScriptPackage/>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>