-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,buff_bar_buff_create].cs2
154 lines (154 loc) · 5.35 KB
/
[proc,buff_bar_buff_create].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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
// 3168
[proc,buff_bar_buff_create](component $component0, int $int1, component $component2, struct $struct3, int $int4)(int)
if ($struct3 = null) {
return(0);
}
def_int $int5 = struct_param($struct3, param_1289);
def_int $int6 = struct_param($struct3, param_1277);
if (~buff_bar_buff_disabled($int5) = 1) {
return(0);
}
if (~buff_bar_buff_show($int5) = 0) {
return(0);
}
def_int $int7 = ~buff_bar_get_number($int5);
def_int $int8 = 0;
if ($int6 = 2 | $int6 = 3 | $int6 = 4) {
if ($int7 <= 0) {
return(0);
}
$int7 = ~script4666($int6, $int7);
$int8 = 1;
}
def_obj $obj9 = null;
def_enum $enum10 = null;
def_inv $inv11 = null;
def_boolean $boolean12 = false;
if ($int6 = 5) {
$inv11 = struct_param($struct3, param_1283);
if ($inv11 = null) {
return(0);
}
$obj9 = inv_getobj($inv11, struct_param($struct3, param_1351));
if ($obj9 = null) {
return(0);
}
$int7 = inv_getnum($inv11, struct_param($struct3, param_1351));
if ($int7 <= 0) {
return(0);
} else if (struct_param($struct3, param_1352) = true & oc_stackable($obj9) = false) {
return(0);
}
} else {
$obj9 = struct_param($struct3, param_1281);
$enum10 = struct_param($struct3, param_1286);
$inv11 = struct_param($struct3, param_1283);
$boolean12 = struct_param($struct3, param_1282);
if ($obj9 = null & $enum10 ! null) {
$obj9 = enum(int, namedobj, $enum10, $int4);
}
if ($obj9 = null) {
$obj9 = ~script5195($int5);
}
if ($boolean12 = true) {
if ($obj9 = null | $inv11 = null) {
return(0);
}
$int7 = inv_total($inv11, $obj9);
if ($int7 <= 0) {
return(0);
}
}
}
def_int $int13 = struct_param($struct3, param_1276);
def_int $int14 = 0;
def_int $int15 = 0;
def_int $trans16 = enum(int, int, enum_2653, $int13);
$int14, $int15 = ~buff_bar_buff_position($component0, $int1);
$int1 = calc($int1 * 8);
if ($int14 < 0 | $int15 < 0) {
return(0);
}
cc_create($component0, ^iftype_rectangle, $int1);
cc_setposition(calc($int14 + 1), calc($int15 + 1), ^setpos_abs_left, ^setpos_abs_bottom);
cc_setsize(calc(37 - 5), calc(37 - 5), ^setsize_abs, ^setsize_abs);
cc_setfill(true);
cc_setcolour($int13);
cc_settrans($trans16);
$int1 = calc($int1 + 1);
$trans16 = enum(int, int, enum_2654, $int13);
cc_create($component0, ^iftype_rectangle, $int1);
cc_setsize(1, calc(37 - 3), ^setsize_abs, ^setsize_abs);
cc_setposition($int14, $int15, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setfill(true);
cc_setcolour($int13);
cc_settrans($trans16);
$int1 = calc($int1 + 1);
cc_create($component0, ^iftype_rectangle, $int1);
cc_setsize(1, calc(37 - 3), ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int14 + (37 - 4)), $int15, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setfill(true);
cc_setcolour($int13);
cc_settrans($trans16);
$int1 = calc($int1 + 1);
cc_create($component0, ^iftype_rectangle, $int1);
cc_setsize(calc(37 - 5), 1, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int14 + 1), $int15, ^setpos_abs_left, ^setpos_abs_bottom);
cc_setfill(true);
cc_setcolour($int13);
cc_settrans($trans16);
$int1 = calc($int1 + 1);
cc_create($component0, ^iftype_rectangle, $int1);
cc_setsize(calc(37 - 5), 1, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int14 + 1), calc($int15 + (37 - 4)), ^setpos_abs_left, ^setpos_abs_bottom);
cc_setfill(true);
cc_setcolour($int13);
cc_settrans($trans16);
$int1 = calc($int1 + 1);
cc_create($component0, ^iftype_graphic, $int1);
def_int $int17 = calc(coordx(struct_param($struct3, param_1280)) % 64);
def_int $int18 = calc(coordz(struct_param($struct3, param_1280)) % 64);
cc_setposition(calc($int14 + 1 + (37 - 5) / 2 - $int17 / 2 + coordx(struct_param($struct3, param_1284)) % 64), calc($int15 + 1 + (37 - 5) / 2 - $int18 / 2 + coordz(struct_param($struct3, param_1284)) % 64), ^setpos_abs_left, ^setpos_abs_bottom);
cc_setsize($int17, $int18, ^setsize_abs, ^setsize_abs);
def_graphic $graphic19 = struct_param($struct3, param_1278);
if (struct_param($struct3, param_1285) ! null & $int4 ! -1) {
$graphic19 = enum(int, graphic, struct_param($struct3, param_1285), $int4);
}
if ($graphic19 ! null) {
cc_setgraphic($graphic19);
} else if ($obj9 ! null) {
cc_setoutline(1);
cc_setobject_nonum(oc_uncert($obj9), 100000);
}
$int1 = calc($int1 + 1);
if (struct_param($struct3, param_1288) = true) {
~buff_bar_get_transmit($int5, $struct3, ~script4681($int5), $component0, $component2, $int1);
}
cc_create($component0, ^iftype_text, $int1);
if ($int8 = 1) {
cc_setposition($int14, calc($int15 + 1), ^setpos_abs_left, ^setpos_abs_bottom);
cc_setsize(calc(37 - 3), 12, ^setsize_abs, ^setsize_abs);
cc_setcolour(^white);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext(~buff_bar_time_string($int7));
cc_setontimer("buff_bar_buff_timer($component0, $component2, $int1, clientclock, $int7, $int5, $int6, ~script4681($int5), struct_param($struct3, param_1290), struct_param($struct3, param_1291), 0, 0)");
} else if ($int7 ! 0) {
cc_setposition($int14, calc($int15 + 1), ^setpos_abs_left, ^setpos_abs_bottom);
cc_setsize(calc(37 - 3), 12, ^setsize_abs, ^setsize_abs);
cc_setcolour(^white);
cc_settextfont(p11_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if ($int7 > 999) {
cc_settext("999+");
} else {
cc_settext(tostring($int7));
}
} else {
cc_sethide(true);
}
$int1 = calc($int1 + 1);
~buff_bar_buff_create_tooltip($component0, $int1, $component2, struct_param($struct3, param_1279), $int14, $int15);
return(1);