-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,bankside_reorder].cs2
29 lines (29 loc) · 1.17 KB
/
[clientscript,bankside_reorder].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
// 298
[clientscript,bankside_reorder](component $drop0, component $drop1, int $comsubid2, int $dropsubid3, component $component4, component $component5, component $component6, component $component7)
def_int $size8 = inv_size(inv);
if ($comsubid2 < 0 | $comsubid2 >= $size8) {
return;
}
if ($dropsubid3 < 0 | $dropsubid3 >= $size8) {
return;
}
if ($drop0 ! $drop1) {
return;
}
def_obj $obj9 = inv_getobj(inv, $comsubid2);
if ($obj9 = null) {
return;
}
def_obj $obj10 = inv_getobj(inv, $dropsubid3);
if (cc_find($drop0, $dropsubid3) = ^true) {
~bankside_drawitem($obj9, inv_getnum(inv, $comsubid2), $comsubid2, $drop0, $component4, 0, $component5, $component6, $component7);
}
if (cc_find($drop0, $comsubid2) = ^true) {
~bankside_drawitem($obj10, inv_getnum(inv, $dropsubid3), $dropsubid3, $drop0, $component4, 0, $component5, $component6, $component7);
}
if ($obj9 = looting_bag_11941 | $obj9 = looting_bag_22586 | $obj10 = looting_bag_11941 | $obj10 = looting_bag_22586) {
cc_deleteall($component4);
}
if ($obj9 = extradimensional_bag_25106 | $obj9 = extradimensional_bag_25108 | $obj10 = extradimensional_bag_25106 | $obj10 = extradimensional_bag_25108) {
cc_deleteall($component4);
}