Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit aa6c78b

Browse files
committed
212.1
1 parent dfe55d5 commit aa6c78b

13 files changed

+64
-33
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -2759,6 +2759,7 @@
27592759
[**2756**](scripts/[clientscript,wint_timer_countdown].cs2) `[clientscript,wint_timer_countdown]`
27602760
[**2757**](scripts/[proc,wint_timer_countdown].cs2) `[proc,wint_timer_countdown]`
27612761
[**2758**](scripts/[proc,script2758].cs2)
2762+
[**2759**](scripts/[proc,script2759].cs2)
27622763
[**2760**](scripts/[clientscript,prayer_levelupdate].cs2) `[clientscript,prayer_levelupdate]`
27632764
[**2761**](scripts/[proc,prayer_levelupdate].cs2) `[proc,prayer_levelupdate]`
27642765
[**2762**](scripts/[proc,prayer_gettooltiptext].cs2) `[proc,prayer_gettooltiptext]`
@@ -5343,6 +5344,7 @@
53435344
[**5341**](scripts/[proc,gim_option_get].cs2) `[proc,gim_option_get]`
53445345
[**5342**](scripts/[proc,script5342].cs2)
53455346
[**5343**](scripts/[proc,script5343].cs2)
5347+
[**5344**](scripts/[proc,script5344].cs2)
53465348
[**5346**](scripts/[proc,script5346].cs2)
53475349
[**5347**](scripts/[proc,script5347].cs2)
53485350
[**5348**](scripts/[proc,helper_generic_set_bit].cs2) `[proc,helper_generic_set_bit]`

scripts/[clientscript,chat_broadcast_op].cs2

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
// 2064
2-
[clientscript,chat_broadcast_op](int $opindex0, string $string0, int $int1)
3-
def_int $mesuid2 = -1;
4-
def_boolean $boolean3 = false;
5-
def_enum $enum4 = null;
6-
def_component $component5 = null;
7-
if ($opindex0 = 9) {
2+
[clientscript,chat_broadcast_op](int $opindex0, int $opindex1, string $string0, int $int2)
3+
def_int $mesuid3 = -1;
4+
def_boolean $boolean4 = false;
5+
def_enum $enum5 = null;
6+
def_component $component6 = null;
7+
if ($opindex0 = $opindex1) {
88
%varcint202 = clientclock;
9-
$mesuid2 = ~script553;
10-
~rebuildchatbox($mesuid2);
11-
~rebuildpmbox($mesuid2);
9+
$mesuid3 = ~script553;
10+
~rebuildchatbox($mesuid3);
11+
~rebuildpmbox($mesuid3);
1212
} else if (string_length($string0) > 0) {
1313
if (clienttype = ^clienttype_ios) {
14-
$boolean3 = enum(int, boolean, enum_2761, $int1);
14+
$boolean4 = enum(int, boolean, enum_2761, $int2);
1515
}
16-
if ($boolean3 = false) {
17-
if ($int1 = 25) {
16+
if ($boolean4 = false) {
17+
if ($int2 = 25) {
1818
if ($opindex0 = 6) {
19-
$enum4 = ~toplevel_getcomponents;
20-
if ($enum4 ! null) {
21-
$component5 = enum(int, component, enum_1137, 8);
22-
$component5 = enum(component, component, $enum4, $component5);
23-
if ($component5 ! null & if_hassub($component5) = true) {
19+
$enum5 = ~toplevel_getcomponents;
20+
if ($enum5 ! null) {
21+
$component6 = enum(int, component, enum_1137, 8);
22+
$component6 = enum(component, component, $enum5, $component6);
23+
if ($component6 ! null & if_hassub($component6) = true) {
2424
if_triggerop(interface_109:54, -1, 1);
2525
} else {
2626
mes("You can't open the poll menu at the moment.");

scripts/[clientscript,chat_op].cs2

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ switch_int ($opindex0) {
2525
} else {
2626
mes("The game cannot process your Ban request now. Please reconnect to the clan's channel.");
2727
}
28+
} else {
29+
~script5344;
2830
}
2931
case default :
3032
if (friend_test($string1) = true) {

scripts/[clientscript,private_op].cs2

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
// 88
22
[clientscript,private_op](int $opindex0, string $opbase0)
33
def_string $string1 = removetags($opbase0);
4-
if ($opindex0 = 10) {
4+
if ($opindex0 = 9) {
55
%varcstring370 = $string1;
6+
} else if ($opindex0 = 10) {
7+
~script5344;
68
} else if (friend_test($string1) = true) {
7-
if ($opindex0 = 8 | $opindex0 = 9) {
9+
if ($opindex0 = 7 | $opindex0 = 8) {
810
if (%varbit8119 = 1) {
911
~meslayer_mode6($string1);
1012
} else {
1113
mes("You must set a name before you can do that.");
1214
}
1315
}
14-
} else if ($opindex0 = 8) {
16+
} else if ($opindex0 = 7) {
1517
if (%varbit8119 = 1) {
1618
friend_add($string1);
1719
} else {
1820
mes("You must set a name before you can do that.");
1921
}
20-
} else if ($opindex0 = 9) {
22+
} else if ($opindex0 = 8) {
2123
if (%varbit8119 = 1) {
2224
ignore_add($string1);
2325
} else {

scripts/[proc,helper_agility_requirements].cs2

+7-5
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,13 @@ switch_loc ($loc0) {
9292
$string0 = "<col=00ff00>Priest in peril";
9393
}
9494
case dark_tunnel_10047 :
95-
if (%varbit4504 = 0) {
96-
$string0 = "<col=ff0000>Claimed Falador medium diary reward";
97-
$boolean2 = false;
98-
} else {
99-
$string0 = "<col=00ff00>Claimed Falador medium diary reward";
95+
if ($coord1 = 0_58_88_48_38 | $coord1 = 0_58_88_52_39) {
96+
if (%varbit4504 = 0) {
97+
$string0 = "<col=ff0000>Claimed Falador medium diary reward";
98+
$boolean2 = false;
99+
} else {
100+
$string0 = "<col=00ff00>Claimed Falador medium diary reward";
101+
}
100102
}
101103
case stepping_stone_11768 :
102104
if (%varbit4532 = 0) {

scripts/[proc,rebuildchatbox].cs2

+4-1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ while ($mesuid10 ! -1 & $component9 ! null) {
227227
if_setonop("chat_op(event_opindex, event_opbase, $chattype11)", $component9);
228228
if_setonmouseover(null, $component9);
229229
if_setonmouseleave(null, $component9);
230+
if ($chattype11 ! ^chattype_clanchat & ~script2759($string18) = 1) {
231+
if_setop(10, "Crown Info", $component9);
232+
}
230233
if (compare($string0, removetags($string18)) ! 0) {
231234
if ($int15 = 1) {
232235
if_setop(6, "Message", $component9);
@@ -289,7 +292,7 @@ while ($mesuid10 ! -1 & $component9 ! null) {
289292
}
290293
if_setop(9, "Clear history", $component9);
291294
if_setopbase("<col=ff9040>Notification</col>", $component9);
292-
if_setonop("chat_broadcast_op(event_opindex, $string21, $int13)", $component9);
295+
if_setonop("chat_broadcast_op(event_opindex, 9, $string21, $int13)", $component9);
293296
case ^chattype_clancreationinvitation :
294297
if_setopbase("<col=0xffffff><$string18></col>", $component9);
295298
if_setop(2, "Form clan", $component9);

scripts/[proc,rebuildpmbox].cs2

+9-6
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ if (%varcint55 >= %varcint202 & %varcint55 > calc(clientclock - 3000) & chat_get
6767
if_setonmouserepeat(null, $component10);
6868
if_setonmouseleave(null, $component10);
6969
}
70-
if_setop(9, "Clear history", $component10);
70+
if_setop(10, "Clear history", $component10);
7171
if_setopbase("<col=ff9040>Notification</col>", $component10);
72-
if_setonop("chat_broadcast_op(event_opindex, $string4, $int16)", $component10);
72+
if_setonop("chat_broadcast_op(event_opindex, 10, $string4, $int16)", $component10);
7373
$int9 = calc($int9 + 1);
7474
$component10 = enum(int, component, enum_580, $int9);
7575
}
@@ -99,12 +99,15 @@ if (%var287 = 1 & (%varcint41 ! 1337 | %varbit4089 = 0)) {
9999
if_clearops($component10);
100100
if ($chattype18 = ^chattype_privatechat | $chattype18 = ^chattype_privatechatout | $chattype18 = ^chattype_modprivatechat) {
101101
if ($int14 = 1) {
102-
if_setop(8, "Message", $component10);
102+
if_setop(7, "Message", $component10);
103103
} else {
104-
if_setop(8, "Add friend", $component10);
105-
if_setop(9, "Add ignore", $component10);
104+
if_setop(7, "Add friend", $component10);
105+
if_setop(8, "Add ignore", $component10);
106+
}
107+
if_setop(9, "Report", $component10);
108+
if (~script2759($string1) = 1) {
109+
if_setop(10, "Crown Info", $component10);
106110
}
107-
if_setop(10, "Report", $component10);
108111
if_setopbase("<col=ffffff><$string1></col>", $component10);
109112
if_setonop("private_op(event_opindex, event_opbase)", $component10);
110113
} else {

scripts/[proc,script2759].cs2

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// 2759
2+
[proc,script2759](string $string0)(int)
3+
if (string_indexof_string($string0, "<img=1>", 0) = 0 | string_indexof_string($string0, "<img=0>", 0) = 0) {
4+
return(1);
5+
}
6+
return(0);

scripts/[proc,script5242].cs2

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ if (~is_group_iron = 1) {
2828
return(enum_getoutputcount(enum_4091));
2929
case 4 :
3030
return(enum_getoutputcount(enum_4094));
31+
case 5 :
32+
return(enum_getoutputcount(enum_861));
3133
}
3234
}
3335
}

scripts/[proc,script5344].cs2

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// 5344
2+
[proc,script5344]
3+
~openurl_raw("https://support.runescape.com/hc/en-gb/articles/360001358698", true, true);

scripts/[proc,settings_clicked_toggle].cs2

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ switch_int ($setting0) {
6060
%varbit5698 = calc(1 - %varbit5698);
6161
case 46 :
6262
~script3988;
63+
case 312 :
64+
%varbit6580 = calc(1 - %varbit6580);
6365
case ^setting_store_button_mobile :
6466
~settings_store_button_mobile;
6567
case ^setting_store_button_desktop :

scripts/[proc,settings_get_toggle].cs2

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ switch_int ($setting0) {
5959
return(%varbit13036);
6060
case ^setting_store_button_desktop :
6161
return(%varbit13037);
62+
case 312 :
63+
return(%varbit6580);
6264
case ^setting_mouse_camera :
6365
return(%varbit4134);
6466
case 50 :

scripts/[proc,settings_toggle_choose_transmit].cs2

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ switch_int ($setting3) {
1717
cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $setting3, $trans5, $struct4){var1224}");
1818
case ^setting_hide_private_chat :
1919
cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $setting3, $trans5, $struct4){var287, var1055}");
20+
case 312 :
21+
cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $setting3, $trans5, $struct4){var2903}");
2022
case 48 :
2123
cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $setting3, $trans5, $struct4){var170}");
2224
case 51 :

0 commit comments

Comments
 (0)