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,poh_jewellery_box_init].cs2
171 lines (171 loc) · 8.7 KB
/
[clientscript,poh_jewellery_box_init].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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// 1685
[clientscript,poh_jewellery_box_init](int $int0, string $text0, int $flags1)
~chatdefault_stopinput;
~steelborder(poh_jewellery_box:1, $text0, 0);
cc_deleteall(poh_jewellery_box:0);
def_int $int2 = 0;
def_int $int3 = 0;
def_int $int4 = if_getwidth(poh_jewellery_box:0);
$int4 = calc($int4 - 10 - 10 - 5);
def_int $int5 = calc($int4 / 2);
def_int $int6 = if_getheight(poh_jewellery_box:0);
$int6 = calc($int6 - 40 - 10 - 5 - 5);
def_int $int7 = 0;
def_int $int8 = 0;
def_int $height9 = 0;
def_int $int10 = 5;
def_int $int11 = 6;
def_int $int12 = 4;
def_int $int13 = calc($int10 + $int11 + $int12);
$int7 = scale($int10, $int13, $int6);
$int8 = scale($int11, $int13, $int6);
$height9 = scale($int12, $int13, $int6);
if_setsize($int5, $int7, ^setsize_abs, ^setsize_abs, poh_jewellery_box:2);
if_setposition(10, 40, ^setpos_abs_left, ^setpos_abs_top, poh_jewellery_box:2);
if_setsize($int5, $int7, ^setsize_abs, ^setsize_abs, poh_jewellery_box:3);
if_setposition(calc(10 + $int5 + 5), 40, ^setpos_abs_left, ^setpos_abs_top, poh_jewellery_box:3);
if_setsize($int5, $int8, ^setsize_abs, ^setsize_abs, poh_jewellery_box:4);
if_setposition(10, calc(40 + $int7 + 5), ^setpos_abs_left, ^setpos_abs_top, poh_jewellery_box:4);
if_setsize($int5, $int8, ^setsize_abs, ^setsize_abs, poh_jewellery_box:5);
if_setposition(calc(10 + $int5 + 5), calc(40 + $int7 + 5), ^setpos_abs_left, ^setpos_abs_top, poh_jewellery_box:5);
if_setsize($int5, $height9, ^setsize_abs, ^setsize_abs, poh_jewellery_box:6);
if_setposition(10, calc(40 + $int7 + $int8 + 5 + 5), ^setpos_abs_left, ^setpos_abs_top, poh_jewellery_box:6);
if_setsize($int5, $height9, ^setsize_abs, ^setsize_abs, poh_jewellery_box:7);
if_setposition(calc(10 + $int5 + 5), calc(40 + $int7 + $int8 + 5 + 5), ^setpos_abs_left, ^setpos_abs_top, poh_jewellery_box:7);
def_boolean $boolean14 = ~script7714;
def_int $int15 = ~poh_jewellery_box_prepbox(poh_jewellery_box:2, 1, "Ring of Dueling", ring_of_dueling_8_2552, $int0);
$int2, $int3 = ~poh_jewellerybox_getbuttonspacing(poh_jewellery_box:2, 4);
def_string $string1 = "PvP Arena";
if ($boolean14 = true & ~script3681(6) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, $string1, $int3, $int0, $int15, $int2, 0);
$string1 = "Castle Wars";
if ($boolean14 = true & ~script3681(4) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, $string1, $int3, $int0, $int15, $int2, 1);
$string1 = "Ferox Enclave";
if ($boolean14 = true & ~script3681(11) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, $string1, $int3, $int0, $int15, $int2, 2);
$string1 = "Fortis Colosseum";
if (testbit($flags1, 4) = ^false) {
$string1 = "<str><$string1></str>";
}
if ($boolean14 = true & ~script3681(21) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, $string1, $int3, $int0, $int15, $int2, 3);
$int15 = ~poh_jewellery_box_prepbox(poh_jewellery_box:3, 1, "Games Necklace", games_necklace_8_3853, $int0);
$int2, $int3 = ~poh_jewellerybox_getbuttonspacing(poh_jewellery_box:3, 5);
$string1 = "Burthorpe";
if ($boolean14 = true & ~script3681(3) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int15, $int2, 4);
$string1 = "Barbarian Outpost";
if ($boolean14 = true & ~script3681(4) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int15, $int2, 5);
$string1 = "Corporeal Beast";
if ($boolean14 = true & ~script3681(11) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int15, $int2, 6);
$string1 = "Tears of Guthix";
if (testbit($flags1, 0) = ^false) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int15, $int2, 7);
$string1 = "Wintertodt Camp";
if (testbit($flags1, 1) = ^false) {
$string1 = "<str><$string1></str>";
} else if ($boolean14 = true & ~script3681(20) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int15, $int2, 8);
$int15 = ~poh_jewellery_box_prepbox(poh_jewellery_box:4, 2, "Combat bracelet", combat_bracelet_6_11972, $int0);
$int2, $int3 = ~poh_jewellerybox_getbuttonspacing(poh_jewellery_box:4, 4);
$string1 = "Warriors' Guild";
if ($boolean14 = true & ~script3681(3) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, $string1, $int3, $int0, $int15, $int2, 9);
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, "Champions' Guild", $int3, $int0, $int15, $int2, 10);
$string1 = "Monastery";
if ($boolean14 = true & ~script3681(3) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, $string1, $int3, $int0, $int15, $int2, 11);
$string1 = "Ranging Guild";
if ($boolean14 = true & ~script3681(4) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, $string1, $int3, $int0, $int15, $int2, 12);
$int15 = ~poh_jewellery_box_prepbox(poh_jewellery_box:5, 2, "Skills necklace", skills_necklace_6_11968, $int0);
$int2, $int3 = ~poh_jewellerybox_getbuttonspacing(poh_jewellery_box:5, 6);
$string1 = "Fishing Guild";
if ($boolean14 = true & ~script3681(4) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int15, $int2, 13);
$string1 = "Mining Guild";
if ($boolean14 = true & ~script3681(3) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int15, $int2, 14);
$string1 = "Crafting Guild";
if ($boolean14 = true & ~script3681(3) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int15, $int2, 15);
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, "Cooking Guild", $int3, $int0, $int15, $int2, 16);
$string1 = "Woodcutting Guild";
if (testbit($flags1, 1) = ^false) {
$string1 = "<str><$string1></str>";
} else if ($boolean14 = true & ~script3681(20) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int15, $int2, 17);
$string1 = "Farming Guild";
if (testbit($flags1, 1) = ^false) {
$string1 = "<str><$string1></str>";
} else if ($boolean14 = true & ~script3681(20) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int15, $int2, 18);
$int15 = ~poh_jewellery_box_prepbox(poh_jewellery_box:6, 3, "Ring of Wealth", ring_of_wealth_5_11980, $int0);
$int2, $int3 = ~poh_jewellerybox_getbuttonspacing(poh_jewellery_box:6, 4);
$string1 = "Miscellania";
if (testbit($flags1, 2) = ^false) {
$string1 = "<str><$string1></str>";
} else if ($boolean14 = true & ~script3681(8) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, $string1, $int3, $int0, $int15, $int2, 19);
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, "Grand Exchange", $int3, $int0, $int15, $int2, 20);
$string1 = "Falador Park";
if ($boolean14 = true & ~script3681(3) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, $string1, $int3, $int0, $int15, $int2, 21);
$string1 = "Dondakan's Rock";
if (testbit($flags1, 3) = ^false) {
$string1 = "<str><$string1></str>";
} else if ($boolean14 = true & ~script3681(8) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, $string1, $int3, $int0, $int15, $int2, 22);
$int15 = ~poh_jewellery_box_prepbox(poh_jewellery_box:7, 3, "Amulet of Glory", amulet_of_glory_6_11978, $int0);
$int2, $int3 = ~poh_jewellerybox_getbuttonspacing(poh_jewellery_box:7, 4);
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Edgeville", $int3, $int0, $int15, $int2, 23);
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Karamja", $int3, $int0, $int15, $int2, 24);
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Draynor Village", $int3, $int0, $int15, $int2, 25);
$string1 = "Al Kharid";
if ($boolean14 = true & ~script3681(6) = 0) {
$string1 = "<str><$string1></str>";
}
$int15, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, $string1, $int3, $int0, $int15, $int2, 26);