-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBanklog Readability Improvement
More file actions
42 lines (39 loc) · 1.1 KB
/
Banklog Readability Improvement
File metadata and controls
42 lines (39 loc) · 1.1 KB
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
# Banklog Magic by Flek
This trigger will make banklogs more readable.
To install, copy the below code, open MUSHClient's Triggers window, and click 'Paste'
<triggers>
<trigger
enabled="y"
group="Banklog"
match="^\{ (.*?) (.*?) +(.*?) (.*?)\:(.*?)\:(.*?) (.*?)$"
omit_from_output="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetVariable("Day", "%1")
SetVariable("Month", "%2")
SetVariable("Date", "%3")
SetVariable("Year", "%7")</send>
</trigger>
<trigger
enabled="y"
group="Banklog"
match="^\} (.*?)\: (.*?) \- (.*?)$"
omit_from_output="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>SetVariable("Source", "%1")
SetVariable("Amount", "%2")
SetVariable("Reason", "%3")
source=GetVariable("Source")
amount=GetVariable("Amount")
reason=GetVariable("Reason")
month=GetVariable("Month")
date=GetVariable("Date")
year=GetVariable("Year")
ColourNote("White", "", month, "", "", " ", "Gray", "", date, "", "", " ", "White", "", year, "", "", " ", "Gray", "", source, "", "", " ", "White", "", amount, "", "", " ", "Gray", "", reason)</send>
</trigger>
</triggers>