-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,raids_storage_side_items].cs2
50 lines (50 loc) · 1.3 KB
/
[proc,raids_storage_side_items].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
// 1621
[proc,raids_storage_side_items](component $component0, int $size1)
def_int $int2 = 0;
def_int $int3 = 0;
def_obj $obj4 = null;
def_obj $obj5 = null;
def_int $size6 = 0;
while ($size6 < $size1) {
if (cc_find($component0, $size6) = ^true) {
cc_clearops;
$obj5 = inv_getobj(inv, $size6);
if (%varbit3459 = 1) {
cc_sethide(false);
~raids_storage_side_private_drawitem($obj5, inv_getnum(inv, $size6));
cc_setdragdeadzone(10);
cc_setdragdeadtime(10);
} else if ($obj5 ! null) {
cc_sethide(false);
cc_setobject($obj5, inv_getnum(inv, $size6));
cc_setopbase("<col=ff9040><oc_name($obj5)></col>");
$int2, $int3 = 0, 0;
$obj4 = enum(int, obj, enum_1666, $int3);
while ($int2 = 0 & $obj4 ! null) {
if ($obj4 = $obj5) {
$int2 = 1;
}
$int3 = calc($int3 + 1);
$obj4 = enum(int, obj, enum_1666, $int3);
}
if ($int2 = 1) {
cc_setop(1, "Donate");
cc_setop(2, "Donate-5");
cc_setop(3, "Donate-10");
cc_setop(4, "Donate-All");
cc_setop(5, "Donate-X");
cc_setop(10, "Examine");
cc_settrans(0);
cc_setonop("raids_storage_items_op(event_op, event_com, event_comsubid)");
} else {
cc_setop(10, "Donate");
cc_settrans(150);
cc_setonop(null);
}
} else {
cc_sethide(true);
cc_setonop(null);
}
}
$size6 = calc($size6 + 1);
}