This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,script4885].cs2
81 lines (81 loc) · 2.58 KB
/
[proc,script4885].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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// 4885
[proc,script4885](int $int0, component $component1, int $int2, int $y3, component $component4, component $component5)
def_int $int6 = 4;
if (%varbit9727 = 3) {
$int6 = 3;
}
def_int $int7 = calc(($int2 - 36 * $int6) / ($int6 + 1));
def_int $int8 = 0;
def_int $num9 = 0;
def_namedobj $namedobj10 = null;
def_int $x11 = 0;
def_boolean $boolean12 = ~on_mobile;
def_int $int13 = 1;
def_namedobj $namedobj14 = null;
def_int $int15 = 0;
def_int $int16 = 0;
def_int $int17 = 1;
while ($int17 <= $int6) {
if (cc_find($component1, $int17) = ^true & .cc_find($component1, calc($int17 + 4)) = ^true) {
cc_sethide(false);
$x11 = calc($int7 + ($int6 - $int17) * (36 + $int7) - 1);
cc_setposition($x11, 0, ^setpos_abs_right, ^setpos_abs_centre);
.cc_setposition($x11, $y3, ^setpos_abs_right, ^setpos_abs_centre);
$int8, $num9 = ~script4895($int0, $int17);
$namedobj10 = enum(int, namedobj, enum_982, $int8);
if ($namedobj10 ! null) {
if ($num9 > 0) {
cc_setobject_alwaysnum($namedobj10, $num9);
} else {
cc_setobject_nonum($namedobj10, 1);
}
$int13, $int16 = 1, 0;
while ($int13 <= 4 & $int16 = 0) {
$namedobj14, $int15 = ~script4891($int13);
if ($namedobj14 = $namedobj10) {
$int16 = 1;
}
$int13 = calc($int13 + 1);
}
if ($int16 = 1 | inv_total(bank, $namedobj10) > 0 | inv_total(inv, $namedobj10) > 0) {
cc_settrans(0);
if ($boolean12 = false) {
cc_setonmouserepeat("script4878(true, event_com, event_comsubid, 80, 0)");
}
cc_setonmouseleave("script4878(false, event_com, event_comsubid, 80, 0)");
.cc_sethide(true);
} else {
cc_settrans(120);
if ($boolean12 = false) {
cc_setonmouserepeat("script4878(true, event_com, event_comsubid, 160, 120)");
}
cc_setonmouseleave("script4878(false, event_com, event_comsubid, 160, 120)");
.cc_sethide(false);
}
cc_setop(1, "Change");
cc_setopbase("<col=ff9040><oc_name($namedobj10)></col>");
} else {
cc_setobject_nonum(obj_11526, 1);
cc_settrans(120);
if ($boolean12 = false) {
cc_setonmouserepeat("script4878(true, event_com, event_comsubid, 160, 120)");
}
cc_setonmouseleave("script4878(false, event_com, event_comsubid, 160, 120)");
cc_setop(1, "Set");
cc_setopbase("<col=ff9040>Empty slot</col>");
.cc_sethide(true);
}
cc_setontimer(null);
cc_setonop("script4886(event_op, $component4, $component5)");
}
$int17 = calc($int17 + 1);
}
while ($int17 <= 4) {
if (cc_find($component1, $int17) = ^true) {
cc_sethide(true);
}
if (.cc_find($component1, calc($int17 + 4)) = ^true) {
.cc_sethide(true);
}
$int17 = calc($int17 + 1);
}