Skip to content

Commit e2d70eb

Browse files
committed
197.1
1 parent faba922 commit e2d70eb

File tree

592 files changed

+5755
-2157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

592 files changed

+5755
-2157
lines changed

README.md

+262-43
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// 2544
2-
[clientscript,100guide_overlay_init](component $component0)
3-
~script2249($component0, setbit(0, 1));
2+
[clientscript,100guide_overlay_init](component $component0, component $component1)
3+
~script4729($component0, $component1, clearbit(clearbit(35554, 18), 7), ^setpos_abs_right, ^setpos_abs_bottom, false);

scripts/[clientscript,1v1arena_spectator_init].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def_enum $enum0 = ~toplevel_getcomponents;
55
if ($enum0 = null) {
66
return;
77
}
8-
def_component $component1 = enum(component, component, $enum0, interface_161:7);
8+
def_component $component1 = enum(component, component, $enum0, interface_161:10);
99
if ($component1 = null) {
1010
return;
1111
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 2538
22
[clientscript,agilityarena_overlay_init](component $component0, component $component1)
3-
~script2249($component0, setbit(0, 2));
4-
~script1486($component1, ^setpos_abs_right, 1, 0);
3+
~script4729($component0, $component1, 35558, ^setpos_abs_right, ^setpos_abs_top, false);
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 2546
22
[clientscript,ahoy_windspeed_init](component $component0, component $component1)
3-
~script2249($component0, setbit(0, 2));
4-
~script1486($component1, ^setpos_abs_right, 1, 0);
3+
~script4729($component0, $component1, 35558, ^setpos_abs_right, ^setpos_abs_top, false);
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// 2536
2-
[clientscript,barbassault_healer_init](component $component0, component $component1, component $component2)
3-
~script2249($component0, setbit(0, 2));
4-
~script1486($component1, ^setpos_abs_right, 1, 0);
5-
~script2249($component2, setbit(setbit(0, 0), 1));
2+
[clientscript,barbassault_healer_init](component $component0, component $component1, component $component2, component $component3)
3+
~script4729($component0, $component2, 35558, ^setpos_abs_right, ^setpos_abs_top, false);
4+
~script4729($component1, $component3, setbit(51936, 18), ^setpos_abs_centre, ^setpos_abs_bottom, false);
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 2535
22
[clientscript,barbassault_overlay_init](component $component0, component $component1)
3-
~script2249($component0, setbit(0, 2));
4-
~script1486($component1, ^setpos_abs_right, 1, 0);
3+
~script4729($component0, $component1, 35558, ^setpos_abs_right, ^setpos_abs_top, false);
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
// 132
2-
[clientscript,barrows_overlay_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10)
3-
~script1490($component1);
4-
~barrows_overlay_reward($component9);
5-
if_setonvartransmit("barrows_overlay_reward($component9){var453, var1697}", $component0);
6-
cc_deleteall($component10);
7-
def_int $width11 = ~barrows_overlay_createbrother("Ahrim", 0, $component10);
8-
def_int $width12 = ~barrows_overlay_createbrother("Dharok", 1, $component10);
9-
if ($width12 > $width11) {
10-
$width11 = $width12;
2+
[clientscript,barrows_overlay_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11)
3+
~script4729($component1, $component2, setbit(0, 13), ^setpos_abs_centre, ^setpos_abs_centre, false);
4+
~barrows_overlay_reward($component10);
5+
if_setonvartransmit("barrows_overlay_reward($component10){var453, var1697}", $component0);
6+
cc_deleteall($component11);
7+
def_int $width12 = ~barrows_overlay_createbrother("Ahrim", 0, $component11);
8+
def_int $width13 = ~barrows_overlay_createbrother("Dharok", 1, $component11);
9+
if ($width13 > $width12) {
10+
$width12 = $width13;
1111
}
12-
$width12 = ~barrows_overlay_createbrother("Guthan", 2, $component10);
13-
if ($width12 > $width11) {
14-
$width11 = $width12;
12+
$width13 = ~barrows_overlay_createbrother("Guthan", 2, $component11);
13+
if ($width13 > $width12) {
14+
$width12 = $width13;
1515
}
16-
$width12 = ~barrows_overlay_createbrother("Karil", 3, $component10);
17-
if ($width12 > $width11) {
18-
$width11 = $width12;
16+
$width13 = ~barrows_overlay_createbrother("Karil", 3, $component11);
17+
if ($width13 > $width12) {
18+
$width12 = $width13;
1919
}
20-
$width12 = ~barrows_overlay_createbrother("Torag", 4, $component10);
21-
if ($width12 > $width11) {
22-
$width11 = $width12;
20+
$width13 = ~barrows_overlay_createbrother("Torag", 4, $component11);
21+
if ($width13 > $width12) {
22+
$width12 = $width13;
2323
}
24-
$width12 = ~barrows_overlay_createbrother("Verac", 5, $component10);
25-
if ($width12 > $width11) {
26-
$width11 = $width12;
24+
$width13 = ~barrows_overlay_createbrother("Verac", 5, $component11);
25+
if ($width13 > $width12) {
26+
$width12 = $width13;
2727
}
28-
if_setsize(calc($width11 + 20), 102, ^setsize_abs, ^setsize_abs, $component10);
29-
~barrows_overlay_size($component0, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, ^min_32bit_int);
30-
if_setonsubchange("barrows_overlay_size($component0, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, ^min_32bit_int)", $component0);
28+
if_setsize(calc($width12 + 20), 102, ^setsize_abs, ^setsize_abs, $component11);
29+
~barrows_overlay_size($component0, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, ^min_32bit_int);
30+
if_setonsubchange("barrows_overlay_size($component0, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, ^min_32bit_int)", $component0);
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// 1422
2-
[clientscript,blast_furnace_hud_init](component $component0, component $component1, component $component2, component $component3)
3-
~script2249($component1, setbit(0, 2));
4-
~script1486($component2, ^setpos_abs_right, 1, 0);
5-
if_setposition(2, 2, ^setpos_abs_right, ^setpos_abs_top, $component3);
2+
[clientscript,blast_furnace_hud_init](component $component0, component $component1, component $component2)
3+
~script4729($component1, $component2, 35558, ^setpos_abs_right, ^setpos_abs_top, false);
4+
if_setposition(2, 2, ^setpos_abs_right, ^setpos_abs_top, $component2);
65
def_string $string0 = "Coffer";
7-
if_setsize(calc(parawidth($string0, 512, p12_full) + 10), 58, ^setsize_abs, ^setsize_abs, $component3);
8-
cc_deleteall($component3);
9-
def_int $int4 = ~thinbox($component3, 0);
10-
cc_create($component3, ^iftype_text, $int4);
11-
.cc_create($component3, ^iftype_graphic, calc($int4 + 1));
6+
if_setsize(calc(parawidth($string0, 512, p12_full) + 10), 58, ^setsize_abs, ^setsize_abs, $component2);
7+
cc_deleteall($component2);
8+
def_int $int3 = ~thinbox($component2, 0);
9+
cc_create($component2, ^iftype_text, $int3);
10+
.cc_create($component2, ^iftype_graphic, calc($int3 + 1));
1211
cc_setsize(0, 10, ^setsize_minus, ^setsize_minus);
1312
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
1413
cc_setcolour(0xff981f);
@@ -20,6 +19,6 @@ cc_settext($string0);
2019
.cc_setposition(0, 5, ^setpos_abs_centre, ^setpos_abs_bottom);
2120
.cc_setgraphicshadow(0x333333);
2221
.cc_setoutline(1);
23-
~blast_furnace_hud_update($component3);
24-
if_setonsubchange("blast_furnace_hud_update($component3, .cc_getid)", $component0);
25-
if_setonvartransmit("blast_furnace_hud_update($component3, .cc_getid){var795}", $component0);
22+
~blast_furnace_hud_update($component2);
23+
if_setonsubchange("blast_furnace_hud_update($component2, .cc_getid)", $component0);
24+
if_setonvartransmit("blast_furnace_hud_update($component2, .cc_getid){var795}", $component0);
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// 1698
2-
[clientscript,blast_mining_hud_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12)
3-
~script2249($component0, setbit(0, 3));
4-
~script1486($component1, ^setpos_abs_centre, 1, 0);
5-
if_setobject_nonum(coal_453, 0, $component3);
6-
if_setobject_nonum(gold_ore_444, 0, $component4);
7-
if_setobject_nonum(mithril_ore_447, 0, $component5);
8-
if_setobject_nonum(adamantite_ore_449, 0, $component6);
9-
if_setobject_nonum(runite_ore_451, 0, $component7);
10-
~blast_mining_hud_update($component8, $component9, $component10, $component11, $component12);
11-
if_setonvartransmit("blast_mining_hud_update($component8, $component9, $component10, $component11, $component12){var694, var203}", $component2);
2+
[clientscript,blast_mining_hud_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11)
3+
~script4729($component0, $component1, 51944, ^setpos_abs_centre, ^setpos_abs_top, false);
4+
if_setobject_nonum(coal_453, 0, $component2);
5+
if_setobject_nonum(gold_ore_444, 0, $component3);
6+
if_setobject_nonum(mithril_ore_447, 0, $component4);
7+
if_setobject_nonum(adamantite_ore_449, 0, $component5);
8+
if_setobject_nonum(runite_ore_451, 0, $component6);
9+
~blast_mining_hud_update($component7, $component8, $component9, $component10, $component11);
10+
if_setonvartransmit("blast_mining_hud_update($component7, $component8, $component9, $component10, $component11){var694, var203}", $component1);
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 2532
22
[clientscript,boardgames_overlay_init](component $component0, component $component1)
3-
~script2249($component0, setbit(0, 2));
4-
~script1486($component1, ^setpos_abs_right, 1, 0);
3+
~script4729($component0, $component1, 35558, ^setpos_abs_right, ^setpos_abs_top, false);

scripts/[clientscript,bondif_redeem_package_init].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 2278
22
[clientscript,bondif_redeem_package_init](int $int0, int $num1, graphic $graphic2, int $int3, int $height4, string $string0, string $text1, string $string2)
3-
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:15)) = false) {
3+
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
44
return;
55
}
66
def_component $component5 = enum(int, component, enum_1913, $int0);

scripts/[clientscript,bondif_redeem_subtitle].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 2277
22
[clientscript,bondif_redeem_subtitle](string $string0)
3-
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:15)) = false) {
3+
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
44
return;
55
}
66
if (%varcint179 > 0) {

scripts/[clientscript,br_hud_clamp].cs2

-3
This file was deleted.
+5-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// 1347
2-
[clientscript,br_hud_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
3-
~script1490($component1);
4-
~br_hud_clamp($component0, $component2, $component5);
5-
~script2249($component3, setbit(0, 2));
6-
~script1486($component4, ^setpos_abs_right, 1, 0);
7-
if_setonresize("br_hud_clamp($component0, $component2, $component5)", $component0);
8-
if_setonsubchange("br_hud_clamp($component0, $component2, $component5)", $component0);
9-
~br_hud_writetimer($component5);
10-
if_setonvartransmit("br_hud_writetimer($component5){var1377}", $component5);
2+
[clientscript,br_hud_init](component $component0, component $component1, component $component2)
3+
~script4729($component0, $component1, setbit(setbit(35558, 12), 13), ^setpos_abs_right, ^setpos_abs_top, false);
4+
~script4729($component2, $component2, setbit(setbit(35554, 12), 13), ^setpos_abs_right, ^setpos_abs_bottom, false);
5+
~br_hud_writetimer($component2);
6+
if_setonvartransmit("br_hud_writetimer($component2){var1377}", $component2);
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 2539
22
[clientscript,br_lobbyoverlay_init](component $component0, component $component1)
3-
~script2249($component0, setbit(0, 2));
4-
~script1486($component1, ^setpos_abs_right, 1, 0);
3+
~script4729($component0, $component1, 35558, ^setpos_abs_right, ^setpos_abs_top, false);
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 2541
2-
[clientscript,brew_game_overlay_init](component $component0, component $component1, component $component2)
3-
~script2249($component0, setbit(0, 3));
4-
~script2249($component2, setbit(0, 0));
5-
~script2249($component1, setbit(0, 1));
2+
[clientscript,brew_game_overlay_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
3+
~script4729($component0, $component3, 51944, ^setpos_abs_left, ^setpos_abs_top, false);
4+
~script4729($component1, $component4, 51945, ^setpos_abs_left, ^setpos_abs_top, false);
5+
~script4729($component2, $component5, setbit(35554, 18), ^setpos_abs_right, ^setpos_abs_bottom, false);
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// 2540
2-
[clientscript,brew_lobby_overlay_init](component $component0)
3-
~script2249($component0, setbit(0, 1));
2+
[clientscript,brew_lobby_overlay_init](component $component0, component $component1)
3+
~script4729($component0, $component1, setbit(35554, 18), ^setpos_abs_right, ^setpos_abs_bottom, false);
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// 3165
2-
[clientscript,buff_bar_init](component $component0, component $component1)
2+
[clientscript,buff_bar_init](component $component0, component $component1, component $component2, component $component3)
33
if_setonsubchange("buff_bar_setup($component0, $component1)", $component0);
4-
if_setonvartransmit("buff_bar_setup($component0, $component1){var1734, var2632}", $component0);
4+
if_setonvartransmit("buff_bar_setup($component0, $component1){var1734, var2632, var3074, var3075, var439}", $component0);
5+
if_setoninvtransmit("buff_bar_setup($component0, $component1){inv}", $component0);
6+
~script4670($component3, $component2, $component0, $component1);
57
~buff_bar_setup($component0, $component1);
68
~deltooltip_action($component1);
79
%varcint382 = -1;
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 4113
22
[clientscript,camdozaal_timer_pause](int $int0)
33
if ($int0 > 1) {
4-
if_setontimer("camdozaal_timer($int0)", interface_686:3);
4+
if_setontimer("camdozaal_timer($int0)", interface_686:2);
55
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// 4112
22
[clientscript,camdozaal_timer_update](int $int0)
33
$int0 = calc(clientclock + $int0 * 30);
4-
if_setontimer("camdozaal_timer($int0)", interface_686:3);
4+
if_setontimer("camdozaal_timer($int0)", interface_686:2);
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 4111
22
[clientscript,camdozaal_vault_init](component $component0, component $component1)
3-
~script2249($component0, setbit(0, 3));
4-
~script1486($component1, ^setpos_abs_left, 1, 0);
3+
~script4729($component0, $component1, 51944, ^setpos_abs_centre, ^setpos_abs_top, false);
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// 884
2-
[clientscript,castlewars_hud_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5)
3-
~script1490($component1);
4-
~hud_clamp_init($component2);
5-
~script2249($component3, setbit(0, 3));
6-
~script2249($component4, setbit(setbit(setbit(0, 3), 0), 1));
7-
~script2377($component5);
8-
if_setonsubchange("script2376($component5)", $component0);
2+
[clientscript,castlewars_hud_init](component $component0, component $component1, component $component2, component $component3, component $component4)
3+
~script4729($component1, $component3, clearbit(setbit(setbit(51960, 12), 13), 7), ^setpos_abs_left, ^setpos_abs_top, true);
4+
~script4729($component0, $component2, setbit(setbit(51945, 12), 13), ^setpos_abs_left, ^setpos_abs_top, true);
5+
~script4729($component4, $component4, setbit(setbit(0, 12), 13), ^setpos_abs_right, ^setpos_abs_bottom, false);
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 2353
22
[clientscript,castlewars_waitingroom_init](component $component0, component $component1)
3-
~script2249($component1, setbit(0, 3));
4-
~castlewars_waitingroom_update($component0);
5-
if_setonvartransmit("castlewars_waitingroom_update($component0){var380}", $component0);
3+
~script4729($component0, $component1, setbit(51944, 16), ^setpos_abs_centre, ^setpos_abs_top, false);
4+
~castlewars_waitingroom_update($component1);
5+
if_setonvartransmit("castlewars_waitingroom_update($component1){var380}", $component1);
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
// 1313
22
[clientscript,cata_altar_update](int $int0, int $int1, int $int2, int $int3)
33
if ($int0 = 1) {
4+
if_setgraphic("magicon,9", cata_boss:5);
5+
} else {
6+
if_setgraphic("magicoff,9", cata_boss:5);
7+
}
8+
if ($int1 = 1) {
49
if_setgraphic("magicon,9", cata_boss:6);
510
} else {
611
if_setgraphic("magicoff,9", cata_boss:6);
712
}
8-
if ($int1 = 1) {
13+
if ($int2 = 1) {
914
if_setgraphic("magicon,9", cata_boss:7);
1015
} else {
1116
if_setgraphic("magicoff,9", cata_boss:7);
1217
}
13-
if ($int2 = 1) {
18+
if ($int3 = 1) {
1419
if_setgraphic("magicon,9", cata_boss:8);
1520
} else {
1621
if_setgraphic("magicoff,9", cata_boss:8);
1722
}
18-
if ($int3 = 1) {
19-
if_setgraphic("magicon,9", cata_boss:9);
20-
} else {
21-
if_setgraphic("magicoff,9", cata_boss:9);
22-
}
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// 2551
22
[clientscript,cata_boss_init](component $component0, component $component1)
3-
~script2249($component0, setbit(setbit(0, 3), 4));
4-
~script1486($component1, ^setpos_abs_left, 1, 0);
3+
~script4729($component0, $component1, 51960, ^setpos_abs_left, ^setpos_abs_top, true);

scripts/[clientscript,chat_onchattransmit].cs2

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ def_string $string0 = "";
77
def_string $string1 = "";
88
def_string $string2 = "";
99
def_int $int3 = 0;
10+
def_string $string3 = "";
11+
def_int $int4 = 0;
1012
if (if_hassub(interface_162:558) = true & %varbit11879 = 1) {
11-
$chattype1, $int2, $string0, $string1, $string2, $int3 = chat_gethistory_byuid($mesuid0);
13+
$chattype1, $int2, $string0, $string1, $string2, $int3, $string3, $int4 = chat_gethistoryex_byuid($mesuid0);
1214
if (~meslayer_mode1_enabled($chattype1) = 1) {
13-
~meslayer_mode1($string2);
15+
~meslayer_mode1(~script4742($string3, $string2));
1416
}
1517
}
1618
~rebuildchatbox($mesuid0);

scripts/[clientscript,clan_board_addline].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 4357
22
[clientscript,clan_board_addline](int $int0, int $flags1, string $string0)
3-
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:15)) = false) {
3+
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
44
return;
55
}
66
def_component $component2 = enum(int, component, enum_3803, $int0);

scripts/[clientscript,clan_events_addevent].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// 4407
22
[clientscript,clan_events_addevent](int $int0, int $int1, int $int2, int $int3, string $string0)
3-
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:15)) = false) {
3+
if (if_hassub(enum(component, component, ~toplevel_getcomponents, interface_161:20)) = false) {
44
return;
55
}
66
def_string $string1 = "";

scripts/[clientscript,clan_members_init].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if_setonclick("script4227($component8, $component13, $component16)", $component8
1818
if_setonvartransmit("clan_members_draw($component0, $component1, $comsubid19, $component6, $component7, $component12, $component13, $component14, $component16, $component17){var3019, var3021}", $component0);
1919
if_setonclansettingstransmit("clan_members_draw($component0, $component1, $comsubid19, $component6, $component7, $component12, $component13, $component14, $component16, $component17)", $component0);
2020
def_int $int20 = 0;
21-
def_int $int21 = 264;
21+
def_int $int21 = 265;
2222
while ($int21 > 0) {
2323
$int20 = ~max($int20, parawidth(enum(int, string, enum_3797, $int21), 512, b12_full));
2424
$int21 = calc($int21 - 1);

scripts/[clientscript,clan_permission_init].cs2

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ while ($count15 < $count13) {
3030
if_setsize($int10, 0, ^setsize_abs, ^setsize_minus, $component3);
3131
if_setsize(calc($int10 - 1), 0, ^setsize_minus, ^setsize_minus, $component6);
3232
def_int $int16 = 0;
33-
def_int $int17 = 264;
33+
def_int $int17 = 265;
3434
while ($int17 > 0) {
3535
$int16 = ~max($int16, parawidth(enum(int, string, enum_3797, $int17), 512, p12_full));
3636
$int17 = calc($int17 - 1);

0 commit comments

Comments
 (0)