-
Notifications
You must be signed in to change notification settings - Fork 0
/
[clientscript,script2346].cs2
73 lines (73 loc) · 2.71 KB
/
[clientscript,script2346].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
// 2346
[clientscript,script2346](component $component0, component $component1, component $component2)
if_settext("Points Available: <col=ffffff><tostring(%varbit6460)></col>", $component0);
if_setonvartransmit("script2349($component0){var1746}", $component0);
if_setoninvtransmit("script2347($component2){inv_612}", $component2);
~script2348($component2);
cc_deleteall($component1);
def_int $int3 = 14;
def_int $int4 = 43;
def_int $count5 = 0;
def_int $count6 = enum_getoutputcount(enum_1952);
def_namedobj $namedobj7 = null;
def_int $int8 = 0;
def_string $opbase0 = "";
while ($count5 < $count6) {
$namedobj7 = enum(int, namedobj, enum_1952, $count5);
if ($namedobj7 = stamina_potion_4_12625) {
cc_create($component1, ^iftype_graphic, $int8);
cc_setonvartransmit("script4488($component1, $int8, $namedobj7){var1746}");
$int8 = calc($int8 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc((36 + $int3) * ($count5 % 4)), calc($count5 / 4 * (32 + $int4)), ^setpos_abs_left, ^setpos_abs_top);
$opbase0 = "<col=ff981f><oc_name($namedobj7)>";
cc_setobject_always_num($namedobj7, %varbit12271);
if (%varbit12271 = 0) {
cc_settrans(128);
}
cc_setopbase($opbase0);
cc_setop(1, "Value");
cc_setop(2, "Buy-1");
cc_setop(10, "Examine<col=ff9040>");
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
} else if ($namedobj7 ! null) {
cc_create($component1, ^iftype_graphic, $int8);
cc_setonvartransmit("script4489($component1, $int8, $namedobj7){var1746}");
$int8 = calc($int8 + 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(calc((36 + $int3) * ($count5 % 4)), calc($count5 / 4 * (32 + $int4)), ^setpos_abs_left, ^setpos_abs_top);
$opbase0 = "<col=ff981f><oc_name($namedobj7)>";
cc_setobject($namedobj7, -1);
cc_setopbase($opbase0);
cc_setop(1, "Value");
cc_setop(2, "Buy-1");
if (%varbit12272 ! 0) {
cc_setop(3, "Buy-<tostring(%varbit12272)>");
}
cc_setop(4, "Buy-All");
cc_setop(5, "Buy-X");
cc_setop(10, "Examine<col=ff9040>");
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
}
$count5 = calc($count5 + 1);
}
$count5 = 0;
def_int $int9 = 0;
while ($count5 < $count6) {
$namedobj7 = enum(int, namedobj, enum_1952, $count5);
if ($namedobj7 ! null) {
cc_create($component1, ^iftype_text, $int8);
$int8 = calc($int8 + 1);
cc_setsize(36, 20, ^setsize_abs, ^setsize_abs);
cc_setposition(calc((36 + $int3) * ($count5 % 4)), calc(38 + $count5 / 4 * (36 + $int4)), ^setpos_abs_left, ^setpos_abs_top);
$int9 = enum(obj, int, enum_1953, $namedobj7);
cc_settext(tostring($int9));
cc_settextfont(p11_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_setcolour(0xff981f);
}
$count5 = calc($count5 + 1);
}