-
Notifications
You must be signed in to change notification settings - Fork 0
/
svo (priestlimbcounter).xml
233 lines (223 loc) · 12.5 KB
/
svo (priestlimbcounter).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
<?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 Priest limbcounter</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="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>svopl Don't register</name>
<script>-- it's OK, the trigger is supposed to be off by default - and share the name with another
svo.pl_ignore()</script>
<triggerType>0</triggerType>
<conditonLineDelta>99</conditonLineDelta>
<mStayOpen>0</mStayOpen>
<mCommand></mCommand>
<packageName></packageName>
<mFgColor>#ff0000</mFgColor>
<mBgColor>#ffff00</mBgColor>
<mSoundFile></mSoundFile>
<colorTriggerFgColor>#000000</colorTriggerFgColor>
<colorTriggerBgColor>#000000</colorTriggerBgColor>
<regexCodeList>
<string>^\w+ dodges nimbly out of the way\.$</string>
<string>^\w+ twists (?:his|her) body out of harm's way\.$</string>
<string>^\w+ parries the attack with a deft manoeuvre\.$</string>
<string>^\w+ steps into the attack, grabs your arm, and throws you violently to the ground\.$</string>
<string>^\w+ quickly jumps back, avoiding the attack\.$</string>
<string>^A chaos orb intercepts the attack against \w+ and renders it harmless\.$</string>
<string>The attack rebounds onto you!</string>
<string>^A reflection of \w+ blinks out of existence\.$</string>
<string>The attack rebounds back onto you!</string>
<string>^\w+ moves into your attack, knocking your blow aside before viciously countering with a strike to your head\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>1</integer>
<integer>3</integer>
<integer>1</integer>
<integer>3</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>svopl Don't register</name>
<script>-- it's OK, the trigger is supposed to be off by default - and share the name with another
svo.pl_smash()</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>It breaks with a satisfying 'CRACK'.</string>
</regexCodeList>
<regexCodePropertyList>
<integer>3</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="yes" isFolder="no" isTempTrigger="no" isMultiline="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Smite</name>
<script>svo.pl_hit(multimatches[2][2], multimatches[2][3])</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 utter a prayer and smite</string>
<string>^You utter a prayer and smite (\w+)'s (.+?) with .+\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
<Trigger isActive="no" isFolder="no" isTempTrigger="no" isMultiline="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Guesstimates</name>
<script>-- disabled - need to have an accurate formula for this. It seems to depend on strength and mace damage.
local maxhp = tonumber(multimatches[2][2])
local hits
-- attempt to account for the limbbreak penalties and bonuses that exist
if maxhp > 9000 then hits = 6
elseif maxhp > 5000 then hits = 5
elseif maxhp > 4000 then hits = 4
elseif maxhp > 2000 then hits = 3
else hits = 2
end
echo"\n" svo.echof("My guess would be %d hits.", hits)</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 glance over</string>
<string>^You glance over \w+ and see that (?:his|her) health is at \d+/(\d+)\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</integer>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>svo Priest limbcounter</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Reset</name>
<script>svo.pl_reset(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^nn ?(.+)?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Check status</name>
<script>if svo.pl_show then svo.pl_show() end</script>
<command></command>
<packageName></packageName>
<regex>^vsl$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Set the hits needed</name>
<script>local name = (matches[2] ~= "") and matches[2] or nil
local hits = tonumber(matches[3])
svo.pl_sethitsneeded(name,hits)</script>
<command></command>
<packageName></packageName>
<regex>^shn(?: (\w+))? ([\d.]+)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Syncronize hits</name>
<script>svo.pl_synchits()</script>
<command></command>
<packageName></packageName>
<regex>^kk$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>svo Priest limbcounter</name>
<packageName></packageName>
<script>-- limbcounters prompt tag is defined here
-- feel free to tinker with it, but move it out into a script of its own,
-- so your changes don't get erased on an update!
function svo.pl_prompttag2()
if svo.defc.dragonform or not svo.lasthit or not svo.pl_list or not svo.pl_list[svo.lasthit] then return "" end
local t = svo.pl_list[svo.lasthit]
return string.format("%s: h %d|t %d|ra %d|la %d|rl %d|ll %d", svo.lasthit, t.head, t.torso, t.rightarm, t.leftarm, t.rightleg, t.leftleg)
end
svo.adddefinition("@pl_prompttag2", "svo.pl_prompttag2()")
function svo.pl_prompttag()
if svo.defc.dragonform or not svo.lasthit or not svo.pl_list or not svo.pl_list[svo.lasthit] then return "" end
local t = svo.pl_list[svo.lasthit]
local prep = 1
return string.format("%s%d<a_white>/%s%d<a_white>|%s%d<a_white>/%s%d<a_white>|%s%d<a_white>/%s%d<a_white>|%d",
((svo.pl_break_at - t.leftarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftarm,
((svo.pl_break_at - t.rightarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightarm,
((svo.pl_break_at - t.leftleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftleg,
((svo.pl_break_at - t.rightleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightleg,
((svo.pl_break_at - t.head) <= prep) and "<a_red>" or "<a_darkyellow>", t.head,
((svo.pl_break_at - t.torso) <= prep) and "<a_red>" or "<a_darkyellow>", t.torso, svo.pl_break_at)
end
svo.adddefinition("@pl_prompttag", "svo.pl_prompttag()")
function svo.pl_prompttag3()
if svo.defc.dragonform or not svo.lasthit or not svo.pl_list or not svo.pl_list[svo.lasthit] then return "" end
local t = svo.pl_list[svo.lasthit]
local prep = 1
return string.format("<a_darkgrey>(%s%d<a_darkgrey>:%s%d<a_darkgrey>:%s%d<a_darkgrey>:%s%d<a_darkgrey>:%s%d<a_darkgrey>:%s%d<a_darkgrey>:%d)",
((svo.pl_break_at - t.leftarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftarm,
((svo.pl_break_at - t.rightarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightarm,
((svo.pl_break_at - t.leftleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftleg,
((svo.pl_break_at - t.rightleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightleg,
((svo.pl_break_at - t.head) <= prep) and "<a_red>" or "<a_darkyellow>", t.head,
((svo.pl_break_at - t.torso) <= prep) and "<a_red>" or "<a_darkyellow>", t.torso, svo.pl_break_at)
end
svo.adddefinition("@pl_prompttag3", "svo.pl_prompttag3()")</script>
<eventHandlerList/>
</ScriptGroup>
</ScriptPackage>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>