This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[proc,slayer_rewards_tasks_currenttask].cs2
148 lines (148 loc) · 7.34 KB
/
[proc,slayer_rewards_tasks_currenttask].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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// 422
[proc,slayer_rewards_tasks_currenttask](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8)
def_int $int9 = 0;
if (~league_relic_active(slayer_master_1129) = 1) {
$int9 = 1;
}
if ($int9 = 1) {
if (%varbit12442 = 1) {
if_settext("You may spend points to <col=ffffff>Cancel</col> or <col=ffffff>Block</col> your current task.<br>If you <col=ffffff>cancel</col> it, you may be assigned that target again in future. <col=06600c>(Free)</col><br>If you <col=ffffff>block</col> it, you will not get that assignment again. <col=06600c>(Free)</col><br>You may also <col=ffffff>store</col> your current task for later.", $component1);
} else {
if_settext("You may spend points to <col=ffffff>Cancel</col> or <col=ffffff>Block</col> your current task.<br>If you <col=ffffff>cancel</col> it, you may be assigned that target again in future. <col=06600c>(Free)</col><br>If you <col=ffffff>block</col> it, you will not get that assignment again. <col=06600c>(Free)</col><br><col=ffffff>Neither</col> option will reset your current tally of completed Slayer tasks.", $component1);
}
} else if (%varbit12442 = 1) {
if_settext("You may spend points to <col=ffffff>Cancel</col> or <col=ffffff>Block</col> your current task.<br>If you <col=ffffff>cancel</col> it, you may be assigned that target again in future. <col=ff0000>(<tostring(30)> points)</col><br>If you <col=ffffff>block</col> it, you will not get that assignment again. <col=ff0000>(<tostring(100)> points)</col><br>You may also <col=ffffff>store</col> your current task for later.", $component1);
} else {
if_settext("You may spend points to <col=ffffff>Cancel</col> or <col=ffffff>Block</col> your current task.<br>If you <col=ffffff>cancel</col> it, you may be assigned that target again in future. <col=ff0000>(<tostring(30)> points)</col><br>If you <col=ffffff>block</col> it, you will not get that assignment again. <col=ff0000>(<tostring(100)> points)</col><br><col=ffffff>Neither</col> option will reset your current tally of completed Slayer tasks.", $component1);
}
cc_deleteall($component0);
def_int $int10 = 0;
def_int $int11 = 0;
def_string $string0 = "Creature";
if (%var262 = 98) {
if (%var261 > 0) {
$int11, $string0 = 1, struct_param(enum(int, struct, enum_5008, %var263), param_1801);
if_settext("<tostring(%var261)> x <$string0>", $component2);
} else if (%var261 = -1) {
$int11, $string0 = 1, struct_param(enum(int, struct, enum_5008, %var263), param_1801);
if_settext($string0, $component2);
} else {
if_settext("None", $component2);
}
} else if (%var261 > 0 & %var262 ! 0) {
$int11, $string0 = 1, enum(int, string, enum_693, %var262);
if_settext("<tostring(%var261)> x <$string0>", $component2);
} else {
if_settext("None", $component2);
}
def_int $int12 = 0;
def_string $string1 = "Creature";
if (%var265 = 98) {
if (%var264 > 0) {
$int12, $string1 = 1, struct_param(enum(int, struct, enum_5008, %var266), param_1801);
if_settext("<tostring(%var264)> x <$string1>", $component8);
if_setcolour(^white, $component8);
} else if (%var264 = -1) {
$int12, $string1 = 1, struct_param(enum(int, struct, enum_5008, %var266), param_1801);
if_settext($string1, $component8);
if_setcolour(^white, $component8);
} else {
if_settext("No stored task", $component8);
if_setcolour(0x9f9f9f, $component8);
}
} else if (%var264 > 0 & %var265 ! 0) {
$int12, $string1 = 1, enum(int, string, enum_693, %var265);
if_settext("<tostring(%var264)> x <$string1>", $component8);
if_setcolour(^white, $component8);
} else {
if_settext("No stored task", $component8);
if_setcolour(0x9f9f9f, $component8);
}
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(218, 47, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(218, 47, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("combatboxesmed,0");
.cc_settextfont(p11_full);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_settext("Cancel task");
if ($int11 = 1) {
.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, "Cancel");
cc_setonop("slayer_rewards_tasks_canceltask($string0, 1, $component3, $component4, $component5, $component6, $component7)");
} else {
.cc_setcolour(0x7f4c0f);
}
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(301, 47, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(301, 47, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("combatboxesmed,0");
.cc_settextfont(p11_full);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_settext("Block task");
if ($int11 = 1 & %var262 ! 97 & %var262 ! 105 & %var262 ! 98) {
.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, "Block");
cc_setonop("slayer_rewards_tasks_canceltask($string0, 2, $component3, $component4, $component5, $component6, $component7)");
} else {
.cc_setcolour(0x7f4c0f);
}
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(384, 47, ^setpos_abs_left, ^setpos_abs_top);
.cc_setposition(384, 47, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphic("combatboxesmed,0");
.cc_settextfont(p11_full);
.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0);
.cc_settextshadow(true);
if ($int12 = 1 & $int11 = 1) {
.cc_settext("Swap Task");
} else if ($int12 = 1) {
.cc_settext("Unstore task");
} else {
.cc_settext("Store task");
}
if (%varbit12442 = 1) {
if ($int11 = 1 & $int12 = 1) {
.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, "Swap");
cc_setonop("slayer_rewards_tasks_canceltask($string0, 10, $component3, $component4, $component5, $component6, $component7)");
} else if ($int11 = 1 & $int12 = 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, "Store");
cc_setonop("slayer_rewards_tasks_canceltask($string0, 10, $component3, $component4, $component5, $component6, $component7)");
} else if ($int11 = 0 & $int12 = 1) {
.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, "Unstore");
cc_setonop("slayer_rewards_tasks_canceltask($string1, 11, $component3, $component4, $component5, $component6, $component7)");
} else {
.cc_setcolour(0x7f4c0f);
}
} else {
.cc_setcolour(0x7f4c0f);
}