-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[proc,ge_collect_drawitem].cs2
More file actions
36 lines (36 loc) · 1.01 KB
/
[proc,ge_collect_drawitem].cs2
File metadata and controls
36 lines (36 loc) · 1.01 KB
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
// 792
[proc,ge_collect_drawitem](int $slot0, inv $inv1, component $component2, int $comsubid3)
def_graphic $graphic4 = "graphic_1120";
def_graphic $graphic5 = "graphic_1121";
if (.cc_find($component2, $comsubid3) = ^true) {
.cc_setgraphic($graphic4);
}
def_obj $obj6 = inv_getobj($inv1, $slot0);
def_int $num7 = 0;
if ($obj6 ! null) {
$num7 = inv_getnum($inv1, $slot0);
cc_sethide(false);
cc_clearops;
cc_setonmouserepeat("cc_graphic_swapper(event_com, $comsubid3, $graphic5, null)");
cc_setonmouseleave("cc_graphic_swapper(event_com, $comsubid3, $graphic4, null)");
if (oc_cert($obj6) ! $obj6) {
if ($num7 = 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($obj6, $num7);
cc_setopbase("<col=ff9040><oc_name($obj6)></col>");
} else {
cc_sethide(true);
cc_clearops;
cc_setonmouserepeat(null);
cc_setonmouseleave(null);
}