-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,teletab_redraw].cs2
94 lines (94 loc) · 6.36 KB
/
[proc,teletab_redraw].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
// 3587
[proc,teletab_redraw](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13)
~teletab_button_redraw(1, $component0, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(2, $component1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(3, $component2, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(4, $component3, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(5, $component4, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(6, $component5, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(7, $component6, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(8, $component7, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(9, $component8, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(10, $component9, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
~teletab_button_redraw(11, $component10, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13);
if (if_gethide($component9) = true & if_gethide($component10) = true) {
if_setsize(42, 95, ^setsize_minus, ^setsize_abs, $component11);
} else {
if_setsize(167, 95, ^setsize_minus, ^setsize_abs, $component11);
}
cc_deleteall($component11);
def_int $int14 = 0;
def_int $int15 = -1;
def_int $int16 = 0;
def_int $int17 = 0;
def_string $string0 = "Create";
def_int $lvl18 = 0;
def_enum $enum19 = enum(int, enum, enum_908, %varbit10599);
def_enum $enum20 = enum(int, enum, enum_909, %varbit10599);
def_namedobj $namedobj21 = null;
if ($enum19 ! null) {
$namedobj21 = enum(int, namedobj, $enum19, %varbit10600);
}
def_obj $obj22 = null;
if ($namedobj21 ! null) {
$obj22 = oc_param($namedobj21, param_608);
}
if ($obj22 = null) {
~teletab_confirm_draw(true, "<col=9f9f9f>---</col>", $component13);
if_setonmouserepeat(null, $component13);
if_setonmouseleave(null, $component13);
if_setonop(null, $component13);
if_clearops($component13);
if_settext("Select a tablet", $component12);
} else {
~teletab_confirm_draw(false, $string0, $component13);
if_setonmouserepeat("teletab_confirm_draw(true, $string0, $component13)", $component13);
if_setonmouseleave("teletab_confirm_draw(false, $string0, $component13)", $component13);
if_setonop("teletab_confirm_op(event_opindex, event_com, $string0)", $component13);
if_setop(1, $string0, $component13);
$lvl18 = oc_param($obj22, spell_levelreq);
if (stat(magic) >= $lvl18) {
if_settext("<enum(int, string, $enum20, %varbit10600)>:<br>Level <tostring($lvl18)>", $component12);
} else {
if_settext("<enum(int, string, $enum20, %varbit10600)>:<br><col=ff0000>Level <tostring($lvl18)></col>", $component12);
}
$int14, $int17 = ~teletab_addingredient(~script3588, 1, $component11, $int14, $int17);
$int14, $int17 = ~teletab_addingredient(oc_param($obj22, magic_runetype_1), oc_param($obj22, magic_runecount_1), $component11, $int14, $int17);
$int14, $int17 = ~teletab_addingredient(oc_param($obj22, magic_runetype_2), oc_param($obj22, magic_runecount_2), $component11, $int14, $int17);
$int14, $int17 = ~teletab_addingredient(oc_param($obj22, magic_runetype_3), oc_param($obj22, magic_runecount_3), $component11, $int14, $int17);
$int14, $int17 = ~teletab_addingredient(oc_param($obj22, magic_runetype_4), oc_param($obj22, magic_runecount_4), $component11, $int14, $int17);
switch_int ($int17) {
case 0 :
cc_create($component11, ^iftype_text, $int14);
$int14 = calc($int14 + 1);
cc_setsize(10, calc(32 + 12), ^setsize_minus, ^setsize_abs);
cc_setposition(0, 10, ^setpos_abs_centre, ^setpos_abs_top);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
cc_settextshadow(true);
cc_settext("Ingredient list unavailable.");
case 1 :
~teletab_placeingredient(0, 0, $component11);
case 2 :
~teletab_placeingredient(0, -32, $component11);
~teletab_placeingredient(1, 32, $component11);
case 3 :
~teletab_placeingredient(0, -56, $component11);
~teletab_placeingredient(1, 0, $component11);
~teletab_placeingredient(2, 56, $component11);
case 4 :
~teletab_placeingredient(0, -86, $component11);
~teletab_placeingredient(1, -28, $component11);
~teletab_placeingredient(2, 28, $component11);
~teletab_placeingredient(3, 86, $component11);
case default :
~teletab_placeingredient(0, -92, $component11);
~teletab_placeingredient(1, -46, $component11);
~teletab_placeingredient(2, 0, $component11);
~teletab_placeingredient(3, 46, $component11);
~teletab_placeingredient(4, 92, $component11);
}
}
if_setontimer(null, $component13);
$int14 = ~thinbox($component11, $int14);