-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script5909].cs2
150 lines (150 loc) · 5.54 KB
/
[proc,script5909].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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// 5909
[proc,script5909](component $component0, component $component1, component $component2, component $component3, component $component4)
if (%var3373 = null) {
if_sethide(true, $component0);
if_sethide(true, $component2);
if_setsize(0, 377, ^setsize_minus, ^setsize_abs, $component4);
return;
}
def_dbrow $dbrow5 = ~script4865(%var3373);
if ($dbrow5 = null | db_getrowtable($dbrow5) ! dbtable_61) {
if_sethide(true, $component0);
if_sethide(true, $component2);
if_setsize(0, 377, ^setsize_minus, ^setsize_abs, $component4);
return;
}
if_sethide(false, $component0);
if_sethide(false, $component2);
def_int $int6 = 0;
def_int $int7 = 0;
cc_create($component1, ^iftype_text, $int7);
cc_setsize(6, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 1, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextfont(b12_full);
cc_setcolour(0xff981f);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext("Unlocks");
cc_settextshadow(true);
$int6 = 23;
$int7 = calc($int7 + 1);
def_int $int8 = -1;
def_int $int9 = calc(if_getwidth($component1) - 2);
def_int $int10 = 0;
def_dbrow $dbrow11 = null;
def_int $int12 = db_getfieldcount(%var3373, quest:questreq);
def_int $int13 = 0;
while ($int13 < $int12) {
$int10 = 1;
$dbrow11 = db_getfield(%var3373, quest:questreq, $int13);
$int7, $int6 = ~script5912($component1, $int7, $int6, db_getfield($dbrow11, quest:displayname, 0));
$int13 = calc($int13 + 1);
}
$int12 = db_getfieldcount($dbrow5, dbtable_61:4);
$int13 = 0;
while ($int13 < $int12) {
$int10 = 1;
$dbrow11 = db_getfield($dbrow5, dbtable_61:4, $int13);
$int7, $int6 = ~script5912($component1, $int7, $int6, db_getfield($dbrow11, quest:displayname, 0));
$int13 = calc($int13 + 1);
}
def_int $int14 = ~max(db_getfield(%var3373, quest:comlevelreq, 0), db_getfield(%var3373, quest:comlevelrec, 0));
def_int $int15 = ~minmax(3, 99, calc(scale(4, 5, $int14) + 15));
if (db_getfield($dbrow5, dbtable_61:6, 0) > 1) {
$int15 = db_getfield($dbrow5, dbtable_61:6, 0);
}
def_int $int16 = calc($int15 % 5);
if ($int14 > 3 | db_getfield($dbrow5, dbtable_61:6, 0) > 1) {
if ($int16 < 3) {
$int15 = calc($int15 - $int16);
} else {
$int15 = calc($int15 + (5 - $int16));
}
$int15 = ~minmax(1, 99, $int15);
} else {
$int15 = 1;
}
def_stat $stat17 = null;
def_int $int18 = 1;
def_int $int19 = db_getfieldcount(%var3373, quest:statreq);
$int13 = 0;
while ($int13 < $int19) {
$stat17, $int18 = db_getfield(%var3373, quest:statreq, $int13);
$stat17, $int18 = ~script5911(%var3373, $dbrow5, $stat17, $int18, $int15);
if ($stat17 ! null & $int18 > 1) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "<tostring($int18)> <enum(stat, string, enum_680, $stat17)>");
}
$int13 = calc($int13 + 1);
}
$int19 = db_getfieldcount(%var3373, quest:statrec);
$int13 = 0;
while ($int13 < $int19) {
$stat17, $int18 = db_getfield(%var3373, quest:statrec, $int13);
$stat17, $int18 = ~script5994(%var3373, $dbrow5, $stat17, $int18, $int15);
if ($stat17 ! null & $int18 > 1) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "<tostring($int18)> <enum(stat, string, enum_680, $stat17)>");
}
$int13 = calc($int13 + 1);
}
$int19 = db_getfieldcount($dbrow5, dbtable_61:5);
$int13 = 0;
while ($int13 < $int19) {
$stat17, $int18 = db_getfield($dbrow5, dbtable_61:5, $int13);
$stat17, $int18 = ~script6809(%var3373, $dbrow5, $stat17, $int18, $int15);
if ($stat17 ! null & $int18 > 1) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "<tostring($int18)> <enum(stat, string, enum_680, $stat17)>");
}
$int13 = calc($int13 + 1);
}
if ($int15 > 1) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "Level <tostring($int15)> in all combat stats");
}
if (db_getfield($dbrow5, dbtable_61:7, 0) > 0) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "<enum(int, string, enum_252, db_getfield($dbrow5, dbtable_61:7, 0))> Player Owned House");
}
$int7, $int6 = ~speedrunning_misc_unlocks(%var3373, $component1, $int7, $int6);
if ($int10 = 1) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "Any requirements for the other quests unlocked");
}
if ($int6 = 23) {
$int7, $int6 = ~script5912($component1, $int7, $int6, "None");
}
$int6 = calc($int6 + 3);
def_int $int20 = $int6;
$int6 = 0;
$int7 = 0;
cc_create($component3, ^iftype_text, $int7);
cc_setsize(6, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, 1, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextfont(b12_full);
cc_setcolour(0xff981f);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext("Items");
cc_settextshadow(true);
$int6 = 23;
$int7 = calc($int7 + 1);
$int7, $int6 = ~script5910($component3, $dbrow5, worn, $int7, $int6);
$int7, $int6 = ~script5910($component3, $dbrow5, inv, $int7, $int6);
if ($int6 = 23) {
$int7, $int6 = ~script5912($component3, $int7, $int6, "None");
}
if (~script6808($dbrow5, bank) > 0) {
$int6 = calc($int6 + 3);
cc_create($component3, ^iftype_text, $int7);
cc_setsize(6, 20, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $int6, ^setpos_abs_centre, ^setpos_abs_top);
cc_settextfont(b12_full);
cc_setcolour(0xff981f);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext("Items (bank)");
cc_settextshadow(true);
$int6 = calc($int6 + 22);
$int7 = calc($int7 + 1);
$int7, $int6 = ~script5910($component3, $dbrow5, bank, $int7, $int6);
}
$int6 = calc($int6 + 3);
if ($int6 > $int20) {
$int20 = $int6;
}
if_setsize(if_getwidth($component0), $int20, ^setsize_abs, ^setsize_abs, $component0);
if_setsize(if_getwidth($component2), $int20, ^setsize_abs, ^setsize_abs, $component2);
if_setsize(if_getwidth($component4), calc(377 + $int20 + 7), ^setsize_abs, ^setsize_abs, $component4);