forked from AchaeaBashingScript/BashingPlugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBashingPartyAnnounce.xml
51 lines (51 loc) · 1.88 KB
/
BashingPartyAnnounce.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.0">
<TriggerPackage/>
<TimerPackage/>
<AliasPackage>
<Alias isActive="yes" isFolder="no">
<name>announce one target</name>
<script>if keneanung.bashing.targetList[1] then
send("pt Target changed to " .. keneanung.bashing.targetList[1].id ,false)
else
send("pt Target changed to none")
end</script>
<command></command>
<packageName></packageName>
<regex>^ptarg$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>toggle party announce</name>
<script>keneanung.bashing.announce = not keneanung.bashing.announce
if keneanung.bashing.announce then
send("pt I am calling targets, focus your fire on my command.",false)
end
cecho("<green>keneanung:<reset> Party announce is now <red>" .. ( keneanung.bashing.announce and "on" or "off") .. "<reset>.\n")</script>
<command></command>
<packageName></packageName>
<regex>^pt announce$</regex>
</Alias>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<Script isActive="yes" isFolder="no">
<name>partyannounce</name>
<packageName></packageName>
<script>-------------------------------------------------
-- Put your Lua functions here. --
-- --
-- Note that you can also use external Scripts --
-------------------------------------------------
function partyannounce(event, arg)
if keneanung.bashing.announce and arg then
send("pt Target " .. arg )
end
end</script>
<eventHandlerList>
<string>keneanung.bashing.targetList.firstChanged</string>
</eventHandlerList>
</Script>
</ScriptPackage>
<KeyPackage/>
</MudletPackage>