-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvo (dragonlimbcounter).xml
165 lines (156 loc) · 9.1 KB
/
svo (dragonlimbcounter).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
<?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 Dragon 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="yes" isFolder="no" isTempTrigger="no" isMultiline="yes" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Rend</name>
<script>svo.dl_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>Lunging forward with long, flashing claws extended, you tear into the flesh of</string>
<string>Lunging forward with long, flashing claws extended, you tear into the flesh of (\w+)'s (.+)\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>2</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>svodl Don't register</name>
<script>-- it's OK, the trigger is supposed to be off by default
svo.dl_ignore()</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>^\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 back onto you!</string>
<string>^A reflection of \w+ blinks out of existence\.$</string>
<string>The attack rebounds 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>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>svo Dragon limbcounter</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Reset</name>
<script>svo.dl_reset(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^nn ?(.+)?$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>Check status</name>
<script>if svo.dl_show then svo.dl_show() end</script>
<command></command>
<packageName></packageName>
<regex>^vsl$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>svo Dragon limbcounter</name>
<packageName></packageName>
<script>-- dragon 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!
tempTimer(0, function()
function svo.dl_prompttag2()
if not svo.defc.dragonform or not svo.lasthit or not svo.dl_list or not svo.dl_list[svo.lasthit] then return "" end
local t = svo.dl_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("@dl_prompttag2", "svo.dl_prompttag2()")
function svo.dl_prompttag()
if not svo.defc.dragonform or not svo.lasthit or not svo.dl_list or not svo.dl_list[svo.lasthit] then return "" end
local t = svo.dl_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.dl_break_at - t.leftarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftarm,
((svo.dl_break_at - t.rightarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightarm,
((svo.dl_break_at - t.leftleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftleg,
((svo.dl_break_at - t.rightleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightleg,
((svo.dl_break_at - t.head) <= prep) and "<a_red>" or "<a_darkyellow>", t.head,
((svo.dl_break_at - t.torso) <= prep) and "<a_red>" or "<a_darkyellow>", t.torso, svo.dl_break_at)
end
svo.adddefinition("@dl_prompttag", "svo.dl_prompttag()")
function svo.dl_prompttag3()
if not svo.defc.dragonform or not svo.lasthit or not svo.dl_list or not svo.dl_list[svo.lasthit] then return "" end
local t = svo.dl_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.dl_break_at - t.leftarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftarm,
((svo.dl_break_at - t.rightarm) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightarm,
((svo.dl_break_at - t.leftleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.leftleg,
((svo.dl_break_at - t.rightleg) <= prep) and "<a_red>" or "<a_darkyellow>", t.rightleg,
((svo.dl_break_at - t.head) <= prep) and "<a_red>" or "<a_darkyellow>", t.head,
((svo.dl_break_at - t.torso) <= prep) and "<a_red>" or "<a_darkyellow>", t.torso, svo.dl_break_at)
end
svo.adddefinition("@dl_prompttag3", "svo.dl_prompttag3()")
end)</script>
<eventHandlerList/>
</ScriptGroup>
</ScriptPackage>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>