-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,tob_partydetails_addmember].cs2
58 lines (58 loc) · 2.46 KB
/
[clientscript,tob_partydetails_addmember].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
// 2317
[clientscript,tob_partydetails_addmember](int $int0, string $string0)
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
return;
}
def_string $string1 = "";
def_string $string2 = "";
$string1, $string2 = ~script632($string0);
if (%varcint178 = 0) {
if (string_length($string1) > 0) {
~steelborder(interface_50:1, "Party of <$string1>", 0);
} else {
~steelborder(interface_50:1, "Leaderless party", 0);
}
}
def_int $colour1 = 0xff981f;
if (compare(lowercase($string1), lowercase(removetags(chat_playername))) = 0) {
$colour1 = ^white;
}
def_int $int2 = calc(~max(0, %varcint178) * 11);
def_int $y3 = calc(%varcint178 * 13 + 1);
cc_create(interface_50:27, ^iftype_rectangle, $int2);
cc_setsize(0, 13, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $y3, ^setpos_abs_centre, ^setpos_abs_top);
cc_setfill(true);
cc_setcolour(^black);
def_int $int4 = 255;
if (calc(%varcint178 % 2) = 0) {
$int4 = 235;
}
cc_settrans($int4);
if ($int0 = 2 & string_length($string1) > 0) {
cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 220, null)");
cc_setonmouseleave("cc_settrans(event_com, event_comsubid, $int4, null)");
if (%varcint178 > 0) {
cc_setop(10, "Kick");
cc_setopbase("<col=ff9040><$string1></col>");
} else {
cc_setop(10, "Quit party");
}
cc_setonop("tob_partydetails_kickmember(event_opindex, %varcint178, event_com, event_comsubid, $string1, $int4)");
}
def_int $int5 = 0;
$string0, $int5 = ~script2318(1, interface_50:32, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(2, interface_50:33, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(3, interface_50:34, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(4, interface_50:35, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(5, interface_50:36, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(6, interface_50:37, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(7, interface_50:38, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(8, interface_50:39, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(9, interface_50:40, $string0, $int2, $int5, $y3, $colour1);
$string0, $int5 = ~script2318(10, interface_50:41, $string0, $int2, $int5, $y3, $colour1);
if ($int0 = 2 & string_length($string1) > 0) {
$int5 = ~script3989($string1, $int5, $y3);
}
if_sethide(false, interface_50:61);
%varcint178 = calc(%varcint178 + 1);