-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[proc,adventurepath_spawn_item].cs2
More file actions
32 lines (32 loc) · 1.15 KB
/
[proc,adventurepath_spawn_item].cs2
File metadata and controls
32 lines (32 loc) · 1.15 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
// 3005
[proc,adventurepath_spawn_item](component $component0, int $int1, namedobj $namedobj2, int $int3, int $int4, int $int5, int $width6, int $int7, boolean $boolean8, int $int9)(int, int, int, int)
if ($namedobj2 = null) {
return($int1, $int4, $int5, $int7);
}
if ($int4 >= 3) {
$int4 = 0;
$int5 = calc($int5 + 1);
$int7 = calc($int7 + 5);
}
cc_create($component0, ^iftype_graphic, $int1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
if ($boolean8 = false) {
cc_setposition(calc($width6 / 6 * $int4 + 5), calc(32 * $int5 + $int7 + 10), ^setpos_abs_left, ^setpos_abs_top);
} else {
cc_setposition(calc($width6 / 6 * ($int4 + 3) + 5), calc(32 * $int5 + $int7 + 10), ^setpos_abs_left, ^setpos_abs_top);
}
cc_setobject(oc_uncert($namedobj2), $int3);
cc_setoutline(1);
cc_setonop("adventurepath_say_item($namedobj2, $int3, $boolean8)");
if ($int9 = 0) {
if (~on_mobile = false) {
cc_setonmouserepeat("cc_settrans($component0, cc_getid, 80, null)");
cc_setonmouseleave("cc_settrans($component0, cc_getid, 0, null)");
} else {
cc_settrans(0);
}
} else {
cc_settrans(150);
}
cc_setop(1, "Check reward");
return(calc($int1 + 1), calc(1 + $int4), $int5, $int7);