-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,chatalerts].cs2
49 lines (49 loc) · 1.54 KB
/
[proc,chatalerts].cs2
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
// 192
[proc,chatalerts](int $mesuid0)
def_int $clock1 = %varcint57;
%varcint57 = clientclock;
if (%varcint41 = 0) {
return;
}
def_int $int2 = 0;
if (%varcint41 = 1337) {
$int2 = 1;
}
def_int $chattype3 = ^chattype_gamemessage;
def_int $clock4 = -1;
def_string $string0 = "";
def_string $string1 = "";
def_string $string2 = "";
def_int $int5 = 0;
def_string $string3 = "";
def_int $int6 = 0;
def_boolean $boolean7 = ~on_mobile;
while ($mesuid0 ! -1) {
$chattype3, $clock4, $string0, $string1, $string2, $int5, $string3, $int6 = chat_gethistoryex_byuid($mesuid0);
if ($clock4 <= $clock1) {
return;
}
if (~filtertest($chattype3, $string0, ~script4742($string3, $string2), $clock4, $int2, removetags(chat_playername), $int5) = 1 & ~trade_partner_check($chattype3, $string0, $int5) = 0) {
switch_int ($chattype3) {
case ^chattype_modchat, ^chattype_publicchat :
~chat_alert_enable(2);
case ^chattype_privatechat, ^chattype_privatechatout, ^chattype_modprivatechat :
~chat_alert_enable(3);
case ^chattype_loginlogoutnotification :
if ($boolean7 = false) {
~chat_alert_enable(3);
}
case ^chattype_tradereq, ^chattype_trade, ^chattype_chalreq_trade :
~chat_alert_enable(6);
case ^chattype_friendschat, ^chattype_friendschatnotification, ^chattype_chalreq_friendschat :
~chat_alert_enable(4);
case 41, 43, 44, 46, 109, 110 :
~chat_alert_enable(5);
case default :
if (enum(int, boolean, enum_892, $chattype3) = true & $chattype3 ! 108) {
~chat_alert_enable(1);
}
}
}
$mesuid0 = chat_getprevuid($mesuid0);
}