-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,welcome_screen_credit].cs2
46 lines (46 loc) · 1.91 KB
/
[proc,welcome_screen_credit].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
// 2216
[proc,welcome_screen_credit](component $component0, component $component1, component $component2, int $int3)
def_string $text0 = "";
def_int $int4 = 0;
if (%var1780 > 1) {
if ($int3 = 0) {
$text0 = "You have <col=00ff00><~tostring_spacer(%var1780, ",")></col> days of membership left.";
} else {
$text0 = "You have <col=00ff00><~tostring_spacer(%var1780, ",")></col> days of Old School RuneScape membership remaining.";
}
} else if (%var1780 = 1) {
if ($int3 = 0) {
$text0 = "You have <col=00ff00><~tostring_spacer(%var1780, ",")></col> day of membership left.";
} else {
$text0 = "You have <col=00ff00><~tostring_spacer(%var1780, ",")></col> day of Old School RuneScape membership remaining.";
}
} else if (%varcint103 = 1) {
if ($int3 = 0) {
$text0 = "You have no membership credit left.<br><br><col=ff9040>Subscribe to retain your membership status!</col>";
} else {
$text0 = "You have no Old School RuneScape membership credit remaining.<br><br><col=ff9040>Subscribe to retain your membership status!</col>";
}
} else if (%varcint103 = 0) {
$text0 = "You are not a member.<br>Subscribe to access extra skills, areas,<br>quests, and more.";
} else {
$int4 = 1;
}
if (%varcint226 = 0 & %var1780 <= 3 & %varcint103 = 1) {
if ($int3 = 0) {
$text0 = "<$text0><br><col=ff9040>Renew now to avoid losing your</col><br><col=ff9040>membership status!</col>";
} else {
$text0 = "<$text0><br><br><col=ff9040>Credit low! Renew now to avoid losing your</col><br><col=ff9040>membership status!</col>";
}
}
if (~on_mobile = false) {
if_setonmouserepeat("comp_sethide(false, $component2)", $component0);
if_setonmouseleave("comp_sethide(true, $component2)", $component0);
}
if ($int4 = 1) {
if_setontimer("welcome_screen_credit($component0, $component1, $component2)", $component1);
if_settext("", $component1);
} else {
if_settext($text0, $component1);
if_setontimer(null, $component1);
}
if_sethide(true, $component2);