-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,raids_partydetails_entry_op].cs2
66 lines (66 loc) · 2.48 KB
/
[clientscript,raids_partydetails_entry_op].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
// 1521
[clientscript,raids_partydetails_entry_op](int $opindex0, int $int1, string $string0, string $string1)
def_int $int2 = 0;
def_int $int3 = 0;
def_int $int4 = 0;
def_int $x5 = 0;
def_int $y6 = 0;
def_int $int7 = 1;
def_stat $stat8 = null;
def_string $text2 = "";
def_string $string3 = "";
if (string_length($string0) > 0) {
if ($opindex0 = 6) {
if (clan_getchatcount > 0 & clan_getchatrank >= clan_getchatminkick) {
sound_synth(interface_select1, 1, 0);
~friendschat_sendkick($string0);
} else {
mes("You don't have permission to do that.");
}
return;
}
if (.cc_find(interface_507:12, 0) = ^false) {
return;
}
sound_synth(interface_select1, 1, 0);
if_sethide(true, interface_507:28);
if_sethide(false, interface_507:29);
cc_deleteall(interface_507:29);
$int2 = ~thinbox(interface_507:29, 0);
cc_create(interface_507:29, ^iftype_text, $int2);
$int2 = calc($int2 + 1);
cc_setsize(0, 15, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_bottom, 0);
cc_settextshadow(true);
cc_settext($string0);
$int3 = calc((if_getwidth(interface_507:29) - 216) / 2);
$stat8 = enum(int, stat, enum_681, $int7);
while ($stat8 ! null) {
$x5, $y6 = calc($int3 + $int4 / 5 * 44), calc(15 + $int4 % 5 * 25);
$text2, $string1 = ~script632($string1);
cc_create(interface_507:29, ^iftype_graphic, $int2);
$int2 = calc($int2 + 1);
.cc_create(interface_507:29, ^iftype_text, $int2);
$int2 = calc($int2 + 1);
cc_setsize(25, 25, ^setsize_abs, ^setsize_abs);
.cc_setsize(40, 25, ^setsize_abs, ^setsize_abs);
cc_setposition($x5, $y6, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition($x5, $y6, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic(enum(stat, graphic, enum_255, $stat8));
.cc_setcolour(0xff981f);
.cc_settextfont(p11_full);
.cc_settextalign(^settextalign_right, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_settext($text2);
$string3 = "<$string0>:<br>Level <~text_client("<col=7c0808>", "<col=ef1020>")><$text2></col> <enum(stat, string, enum_680, $stat8)>";
.cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, interface_507:36, $string3, 25, 200)");
.cc_setonmouseleave("deltooltip(interface_507:36)");
$int7, $int4 = calc($int7 + 1), calc($int4 + 1);
$stat8 = enum(int, stat, enum_681, $int7);
}
if_setonclick("raids_partydetails_closestats", interface_507:29);
~raids_partydetails_setsort($int1);
}