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[clientscript,rareitems_diango].cs2
100 lines (100 loc) · 2.73 KB
/
[clientscript,rareitems_diango].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
// 450
[clientscript,rareitems_diango](string $text0, int $flags0, int $flags1, int $flags2, int $flags3, int $flags4, int $flags5, int $flags6)
if_settext($text0, interface_78:1);
cc_deleteall(interface_78:3);
cc_deleteall(interface_78:4);
def_int $int7 = calc((if_getwidth(interface_78:3) - 10 * 36) / 9 + 36);
def_int $int8 = 0;
def_int $int9 = 0;
def_int $int10 = 0;
def_namedobj $namedobj11 = null;
def_int $int12 = 0;
while ($int12 <= 203) {
if ($int12 < 32) {
if (testbit($flags0, $int12) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else if ($int12 < 64) {
if (testbit($flags1, calc($int12 - 32)) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else if ($int12 < 96) {
if (testbit($flags2, calc($int12 - 64)) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else if ($int12 < 128) {
if (testbit($flags3, calc($int12 - 96)) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else if ($int12 < 160) {
if (testbit($flags4, calc($int12 - 128)) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else if ($int12 < 192) {
if (testbit($flags5, calc($int12 - 160)) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else if ($int12 < 224) {
if (testbit($flags6, calc($int12 - 192)) = ^true) {
$int10 = 1;
} else {
$int10 = 0;
}
} else {
$int10 = 0;
}
cc_create(interface_78:3, ^iftype_graphic, $int12);
if ($int10 = 1) {
$namedobj11 = enum(int, namedobj, enum_708, $int12);
if ($namedobj11 ! null) {
if (inv_total(inv, $namedobj11) = 0) {
cc_sethide(false);
} else {
cc_sethide(true);
}
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int9 * $int7), $int8, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setobject($namedobj11, 1);
cc_setop(1, "Take");
cc_setop(10, "Examine");
cc_setopbase("<col=ff9040><oc_name($namedobj11)>");
if ($int9 < 9) {
$int9 = calc($int9 + 1);
} else {
$int9, $int8 = 0, calc($int8 + 32 + 15);
}
} else {
cc_sethide(true);
}
} else {
cc_sethide(true);
}
$int12 = calc($int12 + 1);
}
if ($int9 > 0) {
$int8 = calc($int8 + 32);
} else if ($int8 > 0) {
$int8 = calc($int8 - 15);
}
if ($int8 <= if_getheight(interface_78:3)) {
if_setscrollsize(0, 0, interface_78:3);
} else {
if_setscrollsize(0, $int8, interface_78:3);
}
if_setscrollpos(0, 0, interface_78:3);
~scrollbar_vertical(interface_78:4, interface_78:3, "scrollbar_parchment_dragger_v2,3", "scrollbar_parchment_dragger_v2,0", "scrollbar_parchment_dragger_v2,1", "scrollbar_parchment_dragger_v2,2", "scrollbar_parchment_v2,0", "scrollbar_parchment_v2,1");
if_setoninvtransmit("rareitems_diango_update($flags0, $flags1, $flags2, $flags3, $flags4, $flags5, $flags6){inv}", interface_78:3);