-
Notifications
You must be signed in to change notification settings - Fork 11
/
[proc,script818].cs2
55 lines (55 loc) · 1.21 KB
/
[proc,script818].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
// 818
[proc,script818](component $component0)
cc_clearops;
.cc_clearops;
def_inv $inv1 = enum(int, inv, enum_150, calc(%varbit4439 - 1));
if ($inv1 = null) {
cc_sethide(true);
.cc_sethide(true);
return;
}
def_obj $obj2 = inv_getobj($inv1, 0);
def_int $num3 = 0;
if ($obj2 ! null) {
$num3 = inv_getnum($inv1, 0);
cc_sethide(false);
if (oc_cert($obj2) ! $obj2) {
if ($num3 = 1) {
cc_setop(1, "Collect-item");
cc_setop(2, "Collect-note");
} else {
cc_setop(1, "Collect-notes");
cc_setop(2, "Collect-items");
}
} else {
cc_setop(2, "Collect");
}
cc_setop(3, "Bank");
cc_setop(10, "Examine");
cc_setobject($obj2, $num3);
cc_setopbase("<col=ff9040><oc_name($obj2)></col>");
} else {
cc_sethide(true);
}
$obj2 = inv_getobj($inv1, 1);
if ($obj2 ! null) {
$num3 = inv_getnum($inv1, 1);
.cc_sethide(false);
if (oc_cert($obj2) ! $obj2) {
if ($num3 = 1) {
.cc_setop(1, "Collect-item");
.cc_setop(2, "Collect-note");
} else {
.cc_setop(1, "Collect-notes");
.cc_setop(2, "Collect-items");
}
} else {
.cc_setop(2, "Collect");
}
.cc_setop(3, "Bank");
.cc_setop(10, "Examine");
.cc_setobject($obj2, $num3);
.cc_setopbase("<col=ff9040><oc_name($obj2)></col>");
} else {
.cc_sethide(true);
}