This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,ca_boss_init_stats].cs2
54 lines (54 loc) · 1.83 KB
/
[proc,ca_boss_init_stats].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
// 4843
[proc,ca_boss_init_stats](component $component0, struct $struct1)(int)
def_int $int2 = 0;
def_int $int3 = 41;
def_int $int4 = 20;
def_int $colour5 = 0xff981f;
def_int $width6 = 0;
def_graphic $graphic7 = p12_full;
def_int $int8 = %var261;
def_int $int9 = 0;
def_int $int10 = 0;
def_string $string0 = "N/A";
if ($int8 > -1) {
if ($int8 > 0) {
$string0 = ~time_convert_option($int8);
}
cc_create($component0, ^iftype_text, $int2);
cc_setsize($width6, $int4, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int3, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextshadow(true);
cc_settextfont($graphic7);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("Personal Best: <col=ffffff><$string0></col>");
cc_setcolour($colour5);
$int3 = calc($int3 - $int4);
$int2 = calc($int2 + 1);
} else {
$int3 = 32;
}
cc_create($component0, ^iftype_text, $int2);
cc_setsize($width6, $int4, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int3, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextshadow(true);
cc_settextfont($graphic7);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("Kill Count: <col=ffffff><tostring(~ca_specific_killcount(struct_param($struct1, param_1315)))></col>");
cc_setcolour($colour5);
$int2 = calc($int2 + 1);
$int3 = calc($int3 - $int4);
def_int $int11 = struct_param($struct1, param_1314);
cc_create($component0, ^iftype_text, $int2);
cc_setsize($width6, $int4, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int3, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextshadow(true);
cc_settextfont($graphic7);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if ($int11 = 0) {
cc_settext("Combat Level: <col=ffffff>N/A</col>");
} else {
cc_settext("Combat Level: <col=ffffff><tostring($int11)></col>");
}
cc_setcolour($colour5);
$int2 = calc($int2 + 1);
return($int2);