-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path[clientscript,poh_jewellery_box_init].cs2
More file actions
96 lines (96 loc) · 6.47 KB
/
[clientscript,poh_jewellery_box_init].cs2
File metadata and controls
96 lines (96 loc) · 6.47 KB
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
// 1685
[clientscript,poh_jewellery_box_init](int $int0, int $flags1, string $text0)
~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_int $int14 = ~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, 3);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, "Duel Arena", $int3, $int0, $int14, $int2, 0);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, "Castle Wars", $int3, $int0, $int14, $int2, 1);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:2, 1, "Ferox Enclave", $int3, $int0, $int14, $int2, 2);
$int14 = ~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);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, "Burthorpe", $int3, $int0, $int14, $int2, 3);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, "Barbarian Outpost", $int3, $int0, $int14, $int2, 4);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, "Corporeal Beast", $int3, $int0, $int14, $int2, 5);
def_string $string1 = "Tears of Guthix";
if (testbit($flags1, 0) = ^false) {
$string1 = "<str><$string1></str>";
}
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int14, $int2, 6);
$string1 = "Wintertodt Camp";
if (testbit($flags1, 1) = ^false) {
$string1 = "<str><$string1></str>";
}
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:3, 1, $string1, $int3, $int0, $int14, $int2, 7);
$int14 = ~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);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, "Warriors' Guild", $int3, $int0, $int14, $int2, 8);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, "Champions' Guild", $int3, $int0, $int14, $int2, 9);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, "Monastery", $int3, $int0, $int14, $int2, 10);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:4, 2, "Ranging Guild", $int3, $int0, $int14, $int2, 11);
$int14 = ~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);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, "Fishing Guild", $int3, $int0, $int14, $int2, 12);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, "Mining Guild", $int3, $int0, $int14, $int2, 13);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, "Crafting Guild", $int3, $int0, $int14, $int2, 14);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, "Cooking Guild", $int3, $int0, $int14, $int2, 15);
$string1 = "Woodcutting Guild";
if (testbit($flags1, 1) = ^false) {
$string1 = "<str><$string1></str>";
}
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int14, $int2, 16);
$string1 = "Farming Guild";
if (testbit($flags1, 1) = ^false) {
$string1 = "<str><$string1></str>";
}
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:5, 2, $string1, $int3, $int0, $int14, $int2, 17);
$int14 = ~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>";
}
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, $string1, $int3, $int0, $int14, $int2, 18);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, "Grand Exchange", $int3, $int0, $int14, $int2, 19);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, "Falador Park", $int3, $int0, $int14, $int2, 20);
$string1 = "Dondakan's Rock";
if (testbit($flags1, 3) = ^false) {
$string1 = "<str><$string1></str>";
}
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:6, 3, $string1, $int3, $int0, $int14, $int2, 21);
$int14 = ~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);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Edgeville", $int3, $int0, $int14, $int2, 22);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Karamja", $int3, $int0, $int14, $int2, 23);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Draynor Village", $int3, $int0, $int14, $int2, 24);
$int14, $int2 = ~poh_jewellery_box_addbutton(poh_jewellery_box:7, 3, "Al Kharid", $int3, $int0, $int14, $int2, 25);