-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,castlewars_overlay_saradomin].cs2
48 lines (48 loc) · 1.63 KB
/
[clientscript,castlewars_overlay_saradomin].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
// 887
[clientscript,castlewars_overlay_saradomin](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9)
if (%varbit136 > 0) {
if_settext("Health <tostring(%varbit136)>%", $component0);
} else {
if_settext("<col=ff0000>Health <tostring(%varbit136)>%</col>", $component0);
}
if (%varbit137 = 1) {
if_settext("<col=ff0000>Unlocked</col>", $component1);
} else {
if_settext("Locked", $component1);
}
if (%varbit138 = 1) {
if_settext("<col=ff0000>Cleared</col>", $component2);
} else {
if_settext("Collapsed", $component2);
}
if (%varbit139 = 1) {
if_settext("<col=ff0000>Cleared</col>", $component3);
} else {
if_settext("Collapsed", $component3);
}
if (%varbit140 = 1) {
if_settext("<col=ff0000>Destroyed</col>", $component4);
} else {
if_settext("Operational", $component4);
}
if (%varbit143 = 0) {
if_settext("Safe", $component5);
} else if (%varbit143 = 1) {
if_settext("<col=ff0000>Taken</col>", $component5);
} else if (%varbit143 = 2) {
if_settext("<col=ffff00>Dropped</col>", $component5);
} else {
if_settext("", $component5);
}
if (%varbit153 = 0) {
if_settext("Safe", $component6);
} else if (%varbit153 = 1) {
if_settext("<col=ff0000>Taken</col>", $component6);
} else if (%varbit153 = 2) {
if_settext("<col=ffff00>Dropped</col>", $component6);
} else {
if_settext("", $component6);
}
if_settext("<tostring(%varbit145)> = Saradomin", $component7);
if_settext("Zamorak = <tostring(%varbit155)>", $component8);
if_settext("<tostring(%var380)> Min", $component9);