-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,slayer_rewards_tasks_blocked_draw].cs2
87 lines (87 loc) · 2.81 KB
/
[proc,slayer_rewards_tasks_blocked_draw].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
// 426
[proc,slayer_rewards_tasks_blocked_draw](component $component0, int $int1, int $int2, component $component3, component $component4, component $component5, component $component6, component $component7)
cc_deleteall($component0);
def_int $int8 = 0;
def_int $int9 = -1;
switch_int ($int1) {
case 1 :
$int8, $int9 = %varbit3209, 3;
case 2 :
$int8, $int9 = %varbit3210, 4;
case 3 :
$int8, $int9 = %varbit3211, 5;
case 4 :
$int8, $int9 = %varbit3212, 6;
case 5 :
$int8, $int9 = %varbit4441, 7;
case 6 :
$int8, $int9 = %varbit5023, 12;
case 7 :
$int8, $int9 = %varbit15366, 8;
case default :
return;
}
$int9 = calc(56 + $int9);
def_int $int10 = 0;
cc_create($component0, ^iftype_text, $int10);
$int10 = calc($int10 + 1);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_centre);
cc_setsize(85, 0, ^setsize_abs, ^setsize_minus);
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settextshadow(true);
cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
cc_settext("Slot <tostring($int1)>:");
cc_create($component0, ^iftype_text, $int10);
$int10 = calc($int10 + 1);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(170, 0, ^setsize_minus, ^setsize_minus);
cc_settextshadow(true);
cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
if ($int8 = 0) {
if ($int2 <= 0) {
if (%varbit4538 = 0) {
cc_setcolour(^red);
cc_settextfont(p11_full);
cc_settext("You must complete the Lumbridge & Draynor<br>elite diary to use this slot.");
} else {
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settext("Empty");
}
} else if (%var101 < $int2) {
cc_setcolour(^red);
cc_settextfont(p12_full);
cc_settext("You need <tostring($int2)> QP to use this slot.");
} else {
cc_setcolour(0xff981f);
cc_settextfont(p12_full);
cc_settext("Empty");
}
} else {
cc_setcolour(^white);
cc_settextfont(p12_full);
cc_settext(enum(int, string, enum_693, $int8));
}
cc_create($component0, ^iftype_graphic, $int10);
$int10 = calc($int10 + 1);
.cc_create($component0, ^iftype_text, $int10);
$int10 = calc($int10 + 1);
cc_setsize(85, 22, ^setsize_abs, ^setsize_abs);
.cc_setsize(85, 22, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
.cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
cc_setgraphic("combatboxesmed,0");
.cc_settextfont(p11_full);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_settext("Unblock task");
if ($int8 ! 0) {
.cc_setcolour(0xff981f);
cc_setonmouseover("cc_colour_swapper(event_com, .cc_getid, ^white)");
cc_setonmouseleave("cc_colour_swapper(event_com, .cc_getid, 0xff981f)");
cc_setop(1, "Unblock");
cc_setonop("slayer_rewards_tasks_unblocktask($int8, $int9, $component3, $component4, $component5, $component6, $component7)");
} else {
.cc_setcolour(0x7f4c0f);
}