-
Notifications
You must be signed in to change notification settings - Fork 0
/
svo (mindnet).xml
146 lines (131 loc) · 6.36 KB
/
svo (mindnet).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
<?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 Mindnet Report</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="no" isPerlSlashGOption="no" isColorizerTrigger="no" isFilterTrigger="no" isSoundTrigger="no" isColorTrigger="no" isColorTriggerFg="no" isColorTriggerBg="no">
<name>Person left</name>
<script>if not svo.conf.mindnet then return end
if not ndb or ndb.isenemy(matches[2]) then
mindnet_left = mindnet_left or {}
mindnet_left[#mindnet_left+1] = matches[2]
svo.prompttrigger("mindnet left", function()
-- use this if you want to show who left
-- send(string.format("pt %s LEFT!", svo.concatand(mindnet_left)))
-- use this if you want to show who left + number
-- send(string.format("pt %s (%d) LEFT!", svo.concatand(mindnet_left), #mindnet_left))
-- use this if you want to show who left + number + area
svo.cc("%s (%d) LEFT %s!", svo.concatand(mindnet_left), #mindnet_left, (gmcp.Room and gmcp.Room.Info.area or ''))
mindnet_left = nil
end)
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>^(\w+) has left the area\.$</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>Person came</name>
<script>if not svo.conf.mindnet then return end
if not ndb or ndb.isenemy(matches[2]) then
mindnet_entered = mindnet_entered or {}
mindnet_entered[#mindnet_entered+1] = matches[2]
svo.prompttrigger("mindnet entered", function()
-- use this if you want to show who entered
-- send(string.format("pt %s ENTERED!", svo.concatand(mindnet_entered)))
-- use this if you want to show who entered + number
-- send(string.format("pt %s (%d) ENTERED!", svo.concatand(mindnet_entered), #mindnet_entered))
-- use this if you want to show who entered + number + area
svo.cc("%s (%d) ENTERED %s!", svo.concatand(mindnet_entered), #mindnet_entered, gmcp.Room.Info.area)
mindnet_entered = nil
end)
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>^(\w+) has entered the area\.$</string>
</regexCodeList>
<regexCodePropertyList>
<integer>1</integer>
</regexCodePropertyList>
</Trigger>
</TriggerGroup>
</TriggerPackage>
<TimerPackage/>
<AliasPackage/>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>svo Mindnet Report</name>
<packageName></packageName>
<script></script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>svo_load_mindreport</name>
<packageName></packageName>
<script>function svo_load_mindreport()
-- adds the vconfig mindnet option with the following code:
svo.config.setoption("mindnet", {
type = "boolean",
onenabled = function() svo.echof("<0,250,0>Will%s announce mindnet to cc.", svo.getDefaultColor()) end,
ondisabled = function() svo.echof("<250,0,0>Won't%s announce mindnet to cc.", svo.getDefaultColor()) end,
vconfig2string = true,
onshow = function (defaultcolour)
fg("gold")
echoLink("mr:", "", "svo Mindnet Report", true)
if svo.conf.mindnet then
fg("a_cyan") echoLink(" Announcing ", 'svo.config.set("mindnet", "off", true)', "Click to disable mindnet announces", true) fg(defaultcolour)
echo("mindet to cc")
else
fg("a_cyan") echoLink(" Not announcing ", 'svo.config.set("mindnet", "on", true)', "Click to enable mindnet announces", true) fg(defaultcolour)
echo("mindnet")
end
echo(".\n")
end
})
end</script>
<eventHandlerList>
<string>svo system loaded</string>
</eventHandlerList>
</Script>
</ScriptGroup>
</ScriptPackage>
<KeyPackage/>
<HelpPackage>
<helpURL></helpURL>
</HelpPackage>
</MudletPackage>