-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,nzone_listquests].cs2
65 lines (65 loc) · 2.5 KB
/
[clientscript,nzone_listquests].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
// 254
[clientscript,nzone_listquests](int $flags0, int $flags1, int $flags2, int $flags3)
if_setsize(300, if_getheight(interface_129:1), ^setsize_abs, ^setsize_abs, interface_129:1);
if_sethide(true, interface_129:6);
if_sethide(true, interface_129:7);
if_sethide(true, interface_129:8);
if_sethide(true, interface_129:9);
cc_deleteall(interface_129:13);
def_int $int4 = 0;
def_int $int5 = 0;
def_int $height6 = 0;
def_int $int7 = 0;
while ($int7 <= 37) {
if (~script1260($flags0, $flags1, $int7) = 1) {
cc_create(interface_129:13, ^iftype_graphic, $int4);
$int4 = calc($int4 + 1);
.cc_create(interface_129:13, ^iftype_text, $int4);
$int4 = calc($int4 + 1);
cc_setsize(0, 17, ^setsize_minus, ^setsize_abs);
.cc_setsize(0, 17, ^setsize_minus, ^setsize_abs);
cc_setposition(0, $height6, ^setpos_abs_centre, ^setpos_abs_top);
.cc_setposition(0, $height6, ^setpos_abs_centre, ^setpos_abs_top);
if (calc($int5 % 2) = 0) {
cc_setgraphic("tradebacking");
} else {
cc_setgraphic("tradebacking_light");
}
cc_settiling(true);
.cc_setcolour(0xff981f);
.cc_settextfont(p12_full);
.cc_settextshadow(true);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if (~script1260($flags2, $flags3, $int7) = 1) {
.cc_settext(enum(int, string, enum_804, $int7));
} else {
.cc_settext("<str><col=8f8f8f><enum(int, string, enum_804, $int7)></col></str>");
}
$int5, $height6 = calc($int5 + 17), calc($height6 + 17);
}
$int7 = calc($int7 + 1);
}
if ($height6 > if_getheight(interface_129:13)) {
if_setscrollpos(0, 0, interface_129:13);
if_setscrollsize(0, $height6, interface_129:13);
} else {
if_setscrollpos(0, 0, interface_129:13);
if_setscrollsize(0, 0, interface_129:13);
cc_create(interface_129:13, ^iftype_graphic, $int4);
$int4 = calc($int4 + 1);
cc_setsize(0, $height6, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_bottom);
cc_setgraphic("tradebacking_dark");
cc_settiling(true);
}
~scrollbar_vertical(interface_129:14, interface_129:13, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1");
if ($int5 <= 0) {
cc_create(interface_129:13, ^iftype_text, $int4);
$int4 = calc($int4 + 1);
cc_setsize(0, 0, ^setsize_minus, ^setsize_minus);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settext("There are no quests left to show.");
}