-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script1317].cs2
130 lines (130 loc) · 5.22 KB
/
[proc,script1317].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
// 1317
[proc,script1317](int $comsubid0, component $drop1, component $drop2, component $component3, component $component4)
def_obj $obj5 = inv_getobj(bank, $comsubid0);
if ($obj5 = null) {
return;
}
if (oc_unplaceholder($obj5) ! $obj5) {
sound_synth(pillory_wrong, 1, 0);
mes("You can release placeholders by clicking on them.");
return;
}
~deltooltip_action($component4);
if (.cc_find($drop2, 1) = ^true) {
.cc_sethide(true);
}
if_sethide(false, $component3);
cc_deleteall($component3);
def_int $comsubid6 = 0;
def_int $num7 = inv_getnum(bank, $comsubid0);
def_string $string0 = "<~tostring_spacer($num7, ",")> <col=ffffff>x</col> <oc_name($obj5)>";
def_string $string1 = "Are you <col=ffffff>sure</col> you<br>want to destroy it?";
if ($num7 > 1) {
$string1 = "Are you <col=ffffff>sure</col> you want<br>to destroy <col=ffffff>all of them</col>?";
}
def_int $int8 = calc(parawidth($string0, 512, p12_full) + 67);
def_int $int9 = calc(parawidth($string1, 512, p12_full) + 170);
if ($int8 < $int9) {
$int8 = $int9;
}
$int9 = if_getwidth(if_getlayer($drop1));
if ($int8 > $int9) {
$int8 = $int9;
}
cc_create($component3, ^iftype_graphic, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize($int8, 120, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("tradebacking_light");
cc_settiling(true);
while ($comsubid6 <= $comsubid0) {
cc_create($component3, ^iftype_rectangle, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_sethide(true);
}
cc_create($component3, ^iftype_text, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize(85, 22, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 40, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setobject($obj5, $num7);
cc_setopbase("<col=ff9040><oc_name($obj5)></col>");
.cc_create($component3, ^iftype_graphic, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
.cc_setsize(85, 22, ^setsize_abs, ^setsize_abs);
.cc_setposition(0, 40, ^setpos_abs_centre, ^setpos_abs_centre);
.cc_setgraphic("combatboxesmed,0");
.cc_create($component3, ^iftype_text, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
.cc_setsize(85, 22, ^setsize_abs, ^setsize_abs);
.cc_setposition(0, 40, ^setpos_abs_centre, ^setpos_abs_centre);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextfont(p11_full);
.cc_settextshadow(true);
.cc_settext("Wait");
.cc_setcolour(0x8f8f8f);
cc_setontimer("bankmain_incinerator_enableop($num7, $component3, cc_getid, .cc_getid, calc(clientclock + 100))");
cc_create($component3, ^iftype_text, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize($int8, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(0, -45, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextalign(^settextalign_centre, ^settextalign_bottom, 0);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settext($string0);
cc_create($component3, ^iftype_graphic, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize(16, 16, ^setsize_abs, ^setsize_abs);
cc_setposition(calc($int8 / 2 - 18), -44, ^setpos_abs_centre, ^setpos_abs_centre);
def_graphic $graphic10 = "v2_stone_close_button,0";
cc_setgraphic($graphic10);
cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)");
$graphic10 = "v2_stone_close_button,1";
cc_setonmouseover("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)");
cc_setop(1, "Close");
cc_setonop("bankmain_incinerator_close(1, $component3)");
def_int $x11 = calc($int8 / 2 - 42);
cc_create($component3, ^iftype_model, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
.cc_create($component3, ^iftype_model, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize(80, 120, ^setsize_abs, ^setsize_abs);
.cc_setsize(80, 120, ^setsize_abs, ^setsize_abs);
cc_setposition($x11, 0, ^setpos_abs_centre, ^setpos_abs_centre);
.cc_setposition($x11, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setmodel(melting_pot_9037);
.cc_setmodel(smoke_9056);
cc_setmodelangle(15, 400, 141, 220, 0, 2500);
.cc_setmodelangle(15, 400, 141, 220, 0, 2500);
.cc_setmodelanim(smoke_2439);
cc_create($component3, ^iftype_model, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize(40, 40, ^setsize_abs, ^setsize_abs);
cc_setposition(calc(0 - ($int8 / 2 - 42)), 0, ^setpos_abs_centre, ^setpos_abs_centre);
if (($obj5 = coins_995 | $obj5 = purple_sweets_10476) & $num7 > 10) {
cc_setobject($obj5, 10);
} else {
cc_setobject(oc_uncert($obj5), $num7);
}
cc_create($component3, ^iftype_text, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize($int8, 120, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0xff981f);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settext($string1);
cc_create($component3, ^iftype_rectangle, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize($int8, 120, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0x0e0e0c);
cc_setfill(false);
cc_create($component3, ^iftype_rectangle, $comsubid6);
$comsubid6 = calc($comsubid6 + 1);
cc_setsize(calc($int8 - 2), 118, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setcolour(0x474745);
cc_setfill(false);
sound_synth(interface_select1, 1, 0);