-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgmcp_message.tin
146 lines (140 loc) · 4.14 KB
/
gmcp_message.tin
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
#event {IAC SB GMCP gmcp_msgs IAC SE} {
#var GMCPMSGS {%0};
#regex {$GMCPMSGS[text]} {{.*}\\n$} {
#var GMCPMSGS[text] {&1};
};
#switch {"$GMCPMSGS[type]"} {
#case {"other"} {
#if {{$GMCPMSGS[text]} === {}} {
#nop #echo {};
#break;
} {
#sh $GMCPMSGS[text];
};
};
#case {"comm"} {
#replace {GMCPMSGS[text]} {\\n} {};
#line sub variables #line strip {#var commtext $GMCPMSGS[text];};
#regex {$commtext} {%w {syczy|krzyczy|mowi|mruczy|syczy|dudni|burczy|bzyczy|spiewa|nuci|bulgocze|brzeczy|marudzi|szepcze|skrzypi}%*: %*} {
#foreach {*duch[]} {dydydy} {
#var shitTODOvar {$duch[$dydydy][desc]_};
#if {"$duch[$dydydy][desc]" == "&1" && "$postac[$shitTODOvar][gildia]" != "" && "$postac[$shitTODOvar][gildia]" != "NPC"} {
topchat_add_static <cfc>&1: &4;
};
};
} {
#regex {$commtext} {Mowisz%*: %*} {
topchat_add_static <158>&2;
};
#regex {$commtext} {Szepczesz%*: %*} {
topchat_add_static <058>&2;
};
};
#sh {$GMCPMSGS[text]};
};
#case {"emotes"} {
#replace {GMCPMSGS[text]} {\\n} {};
#sh {$GMCPMSGS[text]};
};
#case {"notification.mail"} {Highlights_post $GMCPMSGS[text];poczta_start};
#case {"notification.knowledge"} {Highlights_knowledge $GMCPMSGS[text]};
#case {"room.exits"} {
#replace {GMCPMSGS[text]} {\\n} {};
#sh {$GMCPMSGS[text]};
#line substitute {variables} {#line strip {#var current_room_exits {$GMCPMSGS[text]}}};
#nop DEBUG; #line substitute {variables} {#line strip {#var gmcp_exits {$GMCPMSGS[text]}}};
#if {$MAPPER_SYNC == 0} {findme_exits};
#if {"$ConfigManager_Configs[pasek]" == "medium"} {
rysuj_roze;
rysuj_customs;
};
#if {$discovery == 1} {
/disc;
};
};
#case {"room.long"} {
#if {"$ConfigManager_Configs[pasek]" == "medium"} {
rysuj_roze;
};
#sh $GMCPMSGS[text];
#if {$trytomove > 0} {
#var trytomove 0;
#map get roomvnum roomId;
};
};
#case {"room.short"} {
#nop BIND OR COMMAND;
#if {"$rooa" != ""} {
$rooa;
};
#var ilecial 0;
#var tmptext {$GMCPMSGS[text]};
#regex {$tmptext} {{.*}\\n$} {
#var GMCPMSGS[text] {&1};
#var outputtext {&1};
} {
#var outputtext {$tmptext};
};
#replace {outputtext} {\\n} {};
#nop DEBUG; #line substitute {variables} {#line strip {
#var gmcp_short {$outputtext};
}};
#sh {$outputtext};
#line strip {#var temp_short {$outputtext}};
#line substitute {variables} {
#if {$ROOM_INFO[map][x] > 0} {} {#line strip {#var current_room_short_desc {$outputtext}}};
};
#if {$MAPPER_SYNC == 0} {findme_short};
#if {$trytomove > 0} {
#var trytomove 0;
#map get roomvnum roomId;
};
};
#case {"combat.team"} {
#var outputtext {$GMCPMSGS[text]};
#replace {outputtext} {\\n} {};
#sh $outputtext;
};
#case {"combat.others"} {
#var outputtext {$GMCPMSGS[text]};
#replace {outputtext} {\\n} {};
#sh $outputtext;
};
#case {"combat.avatar"} {
#var outputtext {$GMCPMSGS[text]};
#replace {outputtext} {\\n} {};
#sh $outputtext;
#delay {event_trigger_combat_cooldown} {
#list bundlemanager_bundles find walkasuby walkasubyLoaded;
#if {$walkasubyLoaded > 0} {
#nop TODO;collector_offload;
};
#foreach {*event_handler_combat_cooldown[]} {ehcc} {
$event_handler_combat_cooldown[$ehcc];
};
} {34};
};
#case {"room.contents.object"} {
#var outputtext {$GMCPMSGS[text]};
#replace {outputtext} {\\n} {};
#var roomcontentsData {$outputtext};
#sh $outputtext;
#replace roomcontentsData {\.} {};
#replace roomcontentsData {{, | i }} {;};
#format {roomcontentsData} {%l} {$roomcontentsData};
#list roomcontentsList create {$roomcontentsData};
#var ilecial 0;
#foreach {*roomcontentsList[]} {_rcd} {
#regex {$roomcontentsList[$_rcd]} {cialo} {
#math ilecial {$ilecial + 1};
};
};
#if {$ilecial > 0} {
#line ignore #showme {Widzisz <ffa>$ilecial cial<088>.};
};
};
#default {
#sh $GMCPMSGS[text];
};
};
};