-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,deadmanloot_inv_update].cs2
50 lines (50 loc) · 1.31 KB
/
[proc,deadmanloot_inv_update].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
// 1171
[proc,deadmanloot_inv_update]
def_inv $inv0 = null;
def_int $int1 = 0;
def_int $int2 = 0;
def_obj $obj3 = null;
def_int $int4 = 0;
def_boolean $boolean5 = false;
def_int $int6 = 0;
while ($int1 < 5) {
$inv0 = enum(int, inv, enum_1243, $int1);
while ($int2 < 28) {
if (cc_find(interface_234:15, calc($int1 * 28 + $int2)) = ^true) {
$obj3 = inv_getobj($inv0, $int2);
if ($obj3 ! null & $int1 = %varbit4842) {
cc_setobject($obj3, inv_getnum($inv0, $int2));
cc_setopbase("<col=ff981f><oc_name($obj3)>");
if ($int1 = %varbit4842) {
cc_sethide(false);
}
$boolean5 = true;
} else {
cc_setobject_nonum(obj_6512, 1);
cc_setopbase("");
cc_sethide(true);
}
}
$int2 = calc($int2 + 1);
}
if ($boolean5 = true & cc_find(interface_234:14, $int1) = ^true & string_length(cc_getop(1)) = 0 & inv_total(inv, enum(int, namedobj, enum_1244, $int1)) > 0) {
$int6 = 1;
}
if ($int1 = %varbit4842) {
if_sethide($boolean5, interface_234:16);
if_sethide($boolean5, interface_234:46);
if (cc_find(interface_234:14, calc(5 + $int1)) = ^true) {
if (inv_total(inv, enum(int, namedobj, enum_1244, $int1)) <= 0) {
cc_sethide(true);
} else {
cc_sethide(false);
}
}
}
$int1 = calc($int1 + 1);
$int2 = 0;
$boolean5 = false;
}
if ($int6 = 1) {
~deadmanloot_inv_tabs_redraw;
}