-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,meslayer_enter].cs2
119 lines (119 loc) · 3.52 KB
/
[proc,meslayer_enter].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
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
// 681
[proc,meslayer_enter]
if (%varcint5 = 14 | %varcint5 = 17) {
%varcint66 = 1;
return;
}
def_int $mesuid0 = -1;
def_string $string0 = "";
def_int $length1 = string_length(%varcstring359);
if ($length1 > 0) {
switch_int (%varcint5) {
case 1 :
return;
case 4, 5 :
if (ignore_count < 0) {
mes("Unable to update ignore list - system busy.");
} else if (%varcint5 = 4) {
ignore_add(%varcstring359);
} else if (%varcint5 = 5) {
ignore_del(%varcstring359);
}
case 2, 3, 6 :
if (friend_count < 0) {
mes("Unable to complete action - system busy.");
} else if (%varcint5 = 2) {
friend_add(%varcstring359);
} else if (%varcint5 = 3) {
friend_del(%varcstring359);
} else if (%varcint5 = 6) {
if (%varbit8119 = 0) {
~meslayer_close(true, true, true);
mes("You must set a name before you can chat.");
return;
}
if (chat_getfilter_private = ^chatfilter_off) {
chat_setfilter(chat_getfilter_public, ^chatfilter_friends, chat_getfilter_trade);
~redraw_chat_buttons;
$mesuid0 = ~script553;
~rebuildchatbox($mesuid0);
~rebuildpmbox($mesuid0);
}
if (%varbit4394 = 1) {
friend_del(%varcstring360);
} else {
chat_sendprivate(%varcstring360, %varcstring359);
}
%varcint61 = clientclock;
}
case 7, 19 :
resume_countdialog(~script212(%varcstring359));
%varcint5 = 0;
case 8 :
%varcstring361 = removetags(%varcstring359);
resume_namedialog(%varcstring359);
%varcint5 = 0;
case 9, 15, 20, 21, 27 :
switch_int (%varcint5) {
case 20 :
~script4394(removetags(%varcstring359));
case 27 :
~worldswitcher_search_set(removetags(%varcstring359));
case 21 :
%varcstring359 = ~script4191(%varcstring359, "jagex", " ");
%varcstring359 = ~script4191(%varcstring359, "jaqex", " ");
%varcstring359 = ~script4191(%varcstring359, "jagx", " ");
%varcstring359 = ~script4191(%varcstring359, "jgex", " ");
%varcstring359 = ~script4191(%varcstring359, "jgx", " ");
%varcstring359 = ~script4191(%varcstring359, "admin", " ");
%varcstring359 = ~script4191(%varcstring359, "staff", " ");
%varcstring359 = ~script4191(%varcstring359, "mod ", " ");
%varcstring359 = ~script4191(%varcstring359, "m0d ", " ");
%varcstring359 = ~script4191(%varcstring359, "-", " ");
%varcstring359 = ~script4191(%varcstring359, "_", " ");
%varcstring359 = ~script4191(%varcstring359, " ", " ");
}
resume_stringdialog(%varcstring359);
%varcint5 = 0;
case 10 :
if (%varbit8119 = 0) {
~meslayer_close(true, true, true);
mes("You must set a name before you can chat.");
return;
}
%varcstring362 = removetags(%varcstring359);
clan_joinchat(%varcstring359);
case 12 :
if ($length1 > 10) {
$string0 = substring(%varcstring359, 0, 9);
} else {
$string0 = %varcstring359;
}
chat_setmessagefilter(lowercase($string0));
~rebuildchatbox(~script553);
case 13 :
if (%varbit8119 = 0) {
~meslayer_close(true, true, true);
mes("You must set a name before you can chat.");
return;
}
%varcstring358, %varcint62 = %varcstring359, 0;
~chat_autotyper_updateop;
if_setontimer("chat_autotyper(event_com, true)", interface_162:11);
case 11, 18 :
~meslayer_close(false, true, true);
return;
case 16 :
~skillmulti_quantitybutton_x_receive(%varcstring359);
}
} else {
switch_int (%varcint5) {
case 7, 8, 9, 15, 20, 21 :
return;
case 16 :
return;
case 27 :
~worldswitcher_search_set("");
}
}
~meslayer_close(true, true, true);