-
Notifications
You must be signed in to change notification settings - Fork 4
/
Autobasher.xml
51 lines (50 loc) · 1.55 KB
/
Autobasher.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
<TriggerPackage />
<TimerPackage />
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>Eri Auto-Basher</name>
<script></script>
<command></command>
<packageName>Eri Auto-Basher</packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>Auto-basher toggle</name>
<script>keneanung.bashing.autobashing = not keneanung.bashing.autobashing
cecho("<green>keneanung:<reset> Auto-bashing is now <red>" .. ( keneanung.bashing.autobashing and "on" or "off") .. "<reset>.\n")</script>
<command></command>
<packageName></packageName>
<regex>^kb auto|kconfig bashing auto$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage />
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>Eri Auto-Basher</name>
<packageName></packageName>
<script></script>
<eventHandlerList />
<Script isActive="yes" isFolder="no">
<name>Autobasher</name>
<packageName></packageName>
<script>function Autobasher()
if not keneanung.bashing.configuration.enabled then return end
if keneanung.bashing.autobashing then
if #keneanung.bashing.targetList > 0 then
if keneanung.bashing.attacking == 0 then
keneanung.bashing.attackButton()
end
end
end
end</script>
<eventHandlerList>
<string>keneanung.bashing.targetList.changed</string>
</eventHandlerList>
</Script>
</ScriptGroup>
</ScriptPackage>
<KeyPackage />
</MudletPackage>