-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,skillmain_setup].cs2
86 lines (86 loc) · 3.75 KB
/
[proc,skillmain_setup].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
82
83
84
85
86
// 2928
[proc,skillmain_setup](component $component0, int $int1, int $int2, obj $obj3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9)
def_int $int10 = 28;
if ($obj3 = bones_to_peaches_6926) {
$int10 = 25;
} else if ($obj3 ! null) {
$int10 = ~min(28, inv_total(inv, $obj3));
}
def_int $int11 = ~min($int10, %var2224);
def_int $int12 = 0;
def_int $int13 = 0;
if ($int10 > 1) {
if ($int11 = 1) {
$int12, $int13 = ~skillmain_button_create(1, 1, $component4, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
} else {
$int12, $int13 = ~skillmain_button_create(0, 1, $component4, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
}
} else {
~skillmain_button_wipe($component4);
}
if ($component5 ! null) {
if ($int10 > 5) {
if ($int11 = 5) {
$int12, $int13 = ~skillmain_button_create(1, 5, $component5, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
} else {
$int12, $int13 = ~skillmain_button_create(0, 5, $component5, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
}
} else {
~skillmain_button_wipe($component5);
}
}
if ($component6 ! null) {
if ($int10 > 10) {
if ($int11 = 10) {
$int12, $int13 = ~skillmain_button_create(1, 10, $component6, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
} else {
$int12, $int13 = ~skillmain_button_create(0, 10, $component6, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
}
} else {
~skillmain_button_wipe($component6);
}
}
if ($component7 ! null) {
if ($int10 > 2) {
if ($int11 = 0) {
$int12, $int13 = ~skillmain_button_create(1, 0, $component7, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
} else {
$int12, $int13 = ~skillmain_button_create(0, 0, $component7, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
}
} else {
~skillmain_button_wipe($component7);
}
}
if ($component8 ! null) {
if ($int11 >= $int10) {
$int12, $int13 = ~skillmain_button_create(1, 28, $component8, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
} else {
$int12, $int13 = ~skillmain_button_create(0, 28, $component8, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
}
}
def_int $int14 = 1;
if ($component5 ! null) {
$int14 = 5;
}
def_int $int15 = 1;
if ($component6 ! null) {
$int15 = 10;
}
if ($component9 ! null) {
if ($int11 ! 1 & $int11 ! $int14 & $int11 ! $int15 & $int11 ! 0 & $int11 < $int10) {
$int12, $int13 = ~skillmain_button_create(1, $int11, $component9, $int11, $component0, $int1, $int2, $obj3, $component4, $component5, $component6, $component7, $component8, $component9, $int12, $int13);
} else {
~skillmain_button_wipe($component9);
}
}
if ($int1 > 0) {
$int12 = calc($int12 - ($int1 - if_getwidth($component8)));
} else {
$int12 = if_getwidth($component8);
}
if ($int2 > 0) {
$int13 = calc($int13 - ($int2 - if_getheight($component8)));
} else {
$int13 = if_getheight($component8);
}
if_setsize($int12, $int13, ^setsize_abs, ^setsize_abs, $component0);