Skip to content

Commit

Permalink
212.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-F committed Mar 9, 2023
1 parent f1f6608 commit 07331f5
Show file tree
Hide file tree
Showing 56 changed files with 611 additions and 331 deletions.
30 changes: 23 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
[**356**](scripts/[proc,stonepanel_blue].cs2) `[proc,stonepanel_blue]`
[**357**](scripts/[clientscript,stonepanel_red].cs2) `[clientscript,stonepanel_red]`
[**358**](scripts/[proc,stonepanel_red].cs2) `[proc,stonepanel_red]`
[**359**](scripts/[proc,script359].cs2)
[**359**](scripts/[clientscript,script359].cs2)
[**360**](scripts/[clientscript,script360].cs2)
[**361**](scripts/[clientscript,soul_wars_game_hud_init].cs2) `[clientscript,soul_wars_game_hud_init]`
[**362**](scripts/[clientscript,soul_wars_game_hud_update].cs2) `[clientscript,soul_wars_game_hud_update]`
Expand Down Expand Up @@ -547,7 +547,7 @@
[**544**](scripts/[proc,league_reward_draw_item].cs2) `[proc,league_reward_draw_item]`
[**545**](scripts/[clientscript,wear_updateslot].cs2) `[clientscript,wear_updateslot]`
[**546**](scripts/[proc,wear_updateslot].cs2) `[proc,wear_updateslot]`
[**547**](scripts/[clientscript,runweight_visible].cs2) `[clientscript,runweight_visible]`
[**547**](scripts/[proc,script547].cs2)
[**548**](scripts/[proc,meslayer_mode12].cs2) `[proc,meslayer_mode12]`
[**549**](scripts/[proc,meslayer_mode12_setprompt].cs2) `[proc,meslayer_mode12_setprompt]`
[**550**](scripts/[proc,meslayer_mode13].cs2) `[proc,meslayer_mode13]`
Expand Down Expand Up @@ -2567,6 +2567,8 @@
[**2564**](scripts/[clientscript,membership_benefits_close_benefit_hover].cs2) `[clientscript,membership_benefits_close_benefit_hover]`
[**2565**](scripts/[clientscript,membership_benefits_close_benefit].cs2) `[clientscript,membership_benefits_close_benefit]`
[**2566**](scripts/[clientscript,script2566].cs2)
[**2567**](scripts/[clientscript,script2567].cs2)
[**2568**](scripts/[clientscript,script2568].cs2)
[**2569**](scripts/[proc,membership_benefits_prompt_button_init].cs2) `[proc,membership_benefits_prompt_button_init]`
[**2570**](scripts/[clientscript,membership_benefits_prompt_button_draw].cs2) `[clientscript,membership_benefits_prompt_button_draw]`
[**2571**](scripts/[proc,membership_benefits_prompt_button_draw].cs2) `[proc,membership_benefits_prompt_button_draw]`
Expand Down Expand Up @@ -2756,8 +2758,7 @@
[**2755**](scripts/[proc,wint_timer_resynch].cs2) `[proc,wint_timer_resynch]`
[**2756**](scripts/[clientscript,wint_timer_countdown].cs2) `[clientscript,wint_timer_countdown]`
[**2757**](scripts/[proc,wint_timer_countdown].cs2) `[proc,wint_timer_countdown]`
[**2758**](scripts/[proc,prayer_infobutton].cs2) `[proc,prayer_infobutton]`
[**2759**](scripts/[clientscript,prayer_infomode].cs2) `[clientscript,prayer_infomode]`
[**2758**](scripts/[proc,script2758].cs2)
[**2760**](scripts/[clientscript,prayer_levelupdate].cs2) `[clientscript,prayer_levelupdate]`
[**2761**](scripts/[proc,prayer_levelupdate].cs2) `[proc,prayer_levelupdate]`
[**2762**](scripts/[proc,prayer_gettooltiptext].cs2) `[proc,prayer_gettooltiptext]`
Expand Down Expand Up @@ -2792,7 +2793,7 @@
[**2791**](scripts/[proc,skill_guide_data_magic].cs2) `[proc,skill_guide_data_magic]`
[**2792**](scripts/[proc,orbs_spec_draw_button].cs2) `[proc,orbs_spec_draw_button]`
[**2793**](scripts/[clientscript,orbs_toggle_spec_op].cs2) `[clientscript,orbs_toggle_spec_op]`
[**2794**](scripts/[clientscript,orbs_blocked_spec_op].cs2) `[clientscript,orbs_blocked_spec_op]`
[**2794**](scripts/[clientscript,script2794].cs2)
[**2795**](scripts/[clientscript,itemsets_info_init].cs2) `[clientscript,itemsets_info_init]`
[**2796**](scripts/[clientscript,script2796].cs2)
[**2797**](scripts/[clientscript,journal_list_init].cs2) `[clientscript,journal_list_init]`
Expand Down Expand Up @@ -3151,6 +3152,12 @@
[**3150**](scripts/[proc,script3150].cs2)
[**3151**](scripts/[clientscript,boardgames_draughts_options_update_selections].cs2) `[clientscript,boardgames_draughts_options_update_selections]`
[**3152**](scripts/[proc,boardgames_draughts_options_update_selections].cs2) `[proc,boardgames_draughts_options_update_selections]`
[**3153**](scripts/[proc,script3153].cs2)
[**3154**](scripts/[proc,script3154].cs2)
[**3155**](scripts/[clientscript,script3155].cs2)
[**3156**](scripts/[proc,script3156].cs2)
[**3157**](scripts/[clientscript,script3157].cs2)
[**3158**](scripts/[proc,script3158].cs2)
[**3159**](scripts/[proc,script3159].cs2)
[**3160**](scripts/[proc,league_world].cs2) `[proc,league_world]`
[**3161**](scripts/[clientscript,clear_chat_all].cs2) `[clientscript,clear_chat_all]`
Expand Down Expand Up @@ -3299,6 +3306,9 @@
[**3304**](scripts/[clientscript,wiki_icon_init].cs2) `[clientscript,wiki_icon_init]`
[**3305**](scripts/[clientscript,wiki_icon_update].cs2) `[clientscript,wiki_icon_update]`
[**3306**](scripts/[proc,wiki_icon_update].cs2) `[proc,wiki_icon_update]`
[**3307**](scripts/[clientscript,script3307].cs2)
[**3308**](scripts/[proc,script3308].cs2)
[**3309**](scripts/[proc,script3309].cs2)
[**3310**](scripts/[proc,summary_sidepanel_draw].cs2) `[proc,summary_sidepanel_draw]`
[**3311**](scripts/[clientscript,nightmare_totems_init].cs2) `[clientscript,nightmare_totems_init]`
[**3312**](scripts/[clientscript,nightmare_totem_hud_fade_in].cs2) `[clientscript,nightmare_totem_hud_fade_in]`
Expand Down Expand Up @@ -3641,7 +3651,11 @@
[**3649**](scripts/[clientscript,script3649].cs2)
[**3650**](scripts/[clientscript,bondif_init].cs2) `[clientscript,bondif_init]`
[**3651**](scripts/[clientscript,script3651].cs2)
[**3652**](scripts/[proc,script3652].cs2)
[**3653**](scripts/[clientscript,script3653].cs2)
[**3654**](scripts/[proc,script3654].cs2)
[**3655**](scripts/[clientscript,script3655].cs2)
[**3656**](scripts/[proc,script3656].cs2)
[**3657**](scripts/[clientscript,trailblazer_areas_init].cs2) `[clientscript,trailblazer_areas_init]`
[**3658**](scripts/[proc,league_areas_draw_interface].cs2) `[proc,league_areas_draw_interface]`
[**3659**](scripts/[proc,script3659].cs2)
Expand Down Expand Up @@ -4532,6 +4546,7 @@
[**4544**](scripts/[loadnpc,_category_1513].cs2) `[loadnpc,_category_1513]`
[**4545**](scripts/[loadnpc,_category_1514].cs2) `[loadnpc,_category_1514]`
[**4546**](scripts/[loadnpc,_category_1533].cs2) `[loadnpc,_category_1533]`
[**4547**](scripts/[proc,script4547].cs2)
[**4548**](scripts/[clientscript,fishing_spot_indicator_vartransmit].cs2) `[clientscript,fishing_spot_indicator_vartransmit]`
[**4549**](scripts/[clientscript,fishing_spot_indicator_invtransmit].cs2) `[clientscript,fishing_spot_indicator_invtransmit]`
[**4550**](scripts/[clientscript,fishing_spot_indicator_stattransmit].cs2) `[clientscript,fishing_spot_indicator_stattransmit]`
Expand All @@ -4545,6 +4560,7 @@
[**4558**](scripts/[proc,script4558].cs2)
[**4559**](scripts/[clientscript,fishing_spot_indicator_tile_setup].cs2) `[clientscript,fishing_spot_indicator_tile_setup]`
[**4560**](scripts/[proc,fishing_spot_indicator_tile_setup].cs2) `[proc,fishing_spot_indicator_tile_setup]`
[**4561**](scripts/[proc,script4561].cs2)
[**4562**](scripts/[clientscript,script4562].cs2)
[**4563**](scripts/[proc,script4563].cs2)
[**4564**](scripts/[clientscript,settings_player_attack_options].cs2) `[clientscript,settings_player_attack_options]`
Expand Down Expand Up @@ -5175,6 +5191,7 @@
[**5189**](scripts/[proc,script5189].cs2)
[**5190**](scripts/[proc,settings_minimap_lock].cs2) `[proc,settings_minimap_lock]`
[**5191**](scripts/[clientscript,settings_minimap_lock].cs2) `[clientscript,settings_minimap_lock]`
[**5192**](scripts/[clientscript,script5192].cs2)
[**5193**](scripts/[proc,settings_set_draw_distance].cs2) `[proc,settings_set_draw_distance]`
[**5194**](scripts/[proc,script5194].cs2)
[**5195**](scripts/[clientscript,script5195].cs2)
Expand Down Expand Up @@ -5326,8 +5343,6 @@
[**5341**](scripts/[proc,script5341].cs2)
[**5342**](scripts/[proc,script5342].cs2)
[**5343**](scripts/[proc,script5343].cs2)
[**5344**](scripts/[proc,script5344].cs2)
[**5345**](scripts/[proc,script5345].cs2)
[**5346**](scripts/[proc,script5346].cs2)
[**5347**](scripts/[proc,script5347].cs2)
[**5348**](scripts/[proc,helper_generic_set_bit].cs2) `[proc,helper_generic_set_bit]`
Expand Down Expand Up @@ -6049,6 +6064,7 @@
[**6064**](scripts/[clientscript,script6064].cs2)
[**6065**](scripts/[proc,script6065].cs2)
[**6066**](scripts/[proc,script6066].cs2)
[**6067**](scripts/[proc,script6067].cs2)
[**6069**](scripts/[proc,script6069].cs2)
[**6070**](scripts/[proc,raffle_tab_not_selected].cs2) `[proc,raffle_tab_not_selected]`
[**6071**](scripts/[proc,raffle_tab_selected].cs2) `[proc,raffle_tab_selected]`
Expand Down
6 changes: 0 additions & 6 deletions scripts/[clientscript,orbs_blocked_spec_op].cs2

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/[clientscript,prayer_flash_prayer].cs2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 3403
[clientscript,prayer_flash_prayer](int $int0)
def_component $component1 = enum(int, component, enum_859, $int0);
[clientscript,prayer_flash_prayer](obj $obj0)
def_component $component1 = oc_param($obj0, param_1751);
if ($component1 = null) {
return;
}
Expand Down
13 changes: 0 additions & 13 deletions scripts/[clientscript,prayer_infomode].cs2

This file was deleted.

86 changes: 13 additions & 73 deletions scripts/[clientscript,prayer_init].cs2
Original file line number Diff line number Diff line change
@@ -1,82 +1,22 @@
// 458
[clientscript,prayer_init](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5)
def_int $intarray0(calc(28 + 1));
def_int $int6 = 0;
def_component $component7 = null;
def_int $int8 = 0;
[clientscript,prayer_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8)
def_int $int9 = 0;
def_int $int10 = 0;
while ($int10 <= 28) {
$component7 = enum(int, component, enum_859, $int10);
if ($component7 ! null) {
$intarray0($int6) = $int10;
$int6 = calc($int6 + 1);
cc_deleteall($component7);
cc_create($component7, ^iftype_graphic, 0);
cc_setsize(34, 34, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("prayerglow");
.cc_create($component7, ^iftype_graphic, 1);
.cc_setsize(30, 30, ^setsize_abs, ^setsize_abs);
.cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
$int8, $int9 = cc_getid, .cc_getid;
~prayer_updatebutton(false, $int10, $component7, $component2, $component5);
}
$int10 = calc($int10 + 1);
}
if ($int6 > 0) {
~prayer_quicksort(intarray0, 0, calc($int6 - 1));
}
def_int $width11 = if_getwidth(enum(int, component, enum_859, 0));
def_int $int12 = calc((if_getwidth($component2) - 5 * $width11) / 4 + $width11);
def_int $int13 = 0;
def_int $int14 = 0;
while ($int14 < $int6) {
$int13 = calc($int14 / 5 * $int12);
if_setposition(calc($int14 % 5 * $int12), $int13, ^setpos_abs_left, ^setpos_abs_top, enum(int, component, enum_859, $intarray0($int14)));
$int14 = calc($int14 + 1);
}
cc_deleteall($component1);
cc_create($component1, ^iftype_graphic, 0);
cc_setsize(17, 18, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_centre);
cc_setgraphic("options_icons_small,2");
.cc_create($component1, ^iftype_text, 1);
.cc_setsize(24, 0, ^setsize_minus, ^setsize_minus);
.cc_setposition(0, 0, ^setpos_abs_right, ^setpos_abs_centre);
.cc_setcolour(0xff981f);
.cc_settextalign(^settextalign_left, ^settextalign_centre, 0);
.cc_settextshadow(true);
.cc_settextfont(p12_full);
~prayer_levelupdate;
if_setonstattransmit("prayer_levelupdate(event_com, .cc_getid){prayer}", $component1);
def_string $string0 = "Enter";
def_boolean $boolean15 = true;
def_string $string1 = "Dismiss";
def_boolean $boolean16 = false;
cc_deleteall($component4);
if (~on_mobile = true) {
if_setposition(-40, 5, ^setpos_abs_centre, ^setpos_abs_bottom, $component1);
if_setposition(40, 5, ^setpos_abs_centre, ^setpos_abs_bottom, $component3);
if_sethide(false, $component3);
if_setopbase("<col=ff9040>Info mode</col>", $component3);
if_setsize(0, calc(4 + $int13 + 34 + 4), ^setsize_minus, ^setsize_abs, $component4);
$int10 = 0;
while ($int10 < 4) {
cc_create($component4, ^iftype_rectangle, $int10);
def_boolean $boolean10 = ~on_mobile;
def_string $string0 = "Info";
def_string $string1 = "Filters";
if ($boolean10 = true) {
while ($int9 < 4) {
cc_create($component4, ^iftype_rectangle, $int9);
cc_sethide(false);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(calc($int10 * 2), calc($int10 * 2), ^setsize_minus, ^setsize_minus);
cc_setsize(calc($int9 * 2), calc($int9 * 2), ^setsize_minus, ^setsize_minus);
cc_setcolour(^white);
cc_settrans(220);
cc_setfill(true);
$int10 = calc($int10 + 1);
$int9 = calc($int9 + 1);
}
~prayer_infobutton($string0, $boolean15, $string1, $boolean16, $component2, $int8, $int9, $component3, $component4, $component5);
} else {
if_setposition(0, 5, ^setpos_abs_centre, ^setpos_abs_bottom, $component1);
if_sethide(true, $component3);
if_setonop(null, $component3);
if_clearops($component3);
if_sethide(true, $component4);
}
~script3156(null, $boolean10, $component3, $component7, $component2, $component4, $component5, $component6, $component8, $string0, $string1);
~script547($boolean10, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1);
if_setonvartransmit("script359($boolean10, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1){var1377, var2900, var1050, var2972, var3109, var1429}", $component0);
if_setonstattransmit("script359($boolean10, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $string0, $string1){prayer}", $component0);
21 changes: 11 additions & 10 deletions scripts/[clientscript,prayer_op].cs2
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// 462
[clientscript,prayer_op](int $opindex0, boolean $boolean1, int $int2, component $component3, int $comsubid4, int $comsubid5, component $component6, component $component7)
[clientscript,prayer_op](int $opindex0, boolean $boolean1, obj $obj2, component $component3, component $component4, component $component5)
def_int $index6 = oc_param($obj2, param_630);
if ($opindex0 = 1) {
if ($boolean1 = false & cc_find($component3, $comsubid4) = ^true & .cc_find($component3, $comsubid5) = ^true) {
if (testbit(%varbit4101, $int2) = ^true) {
%varbit4101 = clearbit(%varbit4101, $int2);
~prayer_updatebutton($boolean1, $int2, $component3, $component6, $component7);
if ($boolean1 = false & cc_find($component3, 0) = ^true & .cc_find($component3, 1) = ^true) {
if (testbit(%varbit4101, $index6) = ^true) {
%varbit4101 = clearbit(%varbit4101, $index6);
~prayer_updatebutton($boolean1, $obj2, $component3, $component4, $component5);
return;
}
if (~prayer_isavailable($int2) = 0) {
if (~prayer_isavailable($obj2) = 0) {
sound_synth(prayer_off, 1, 0);
return;
}
Expand All @@ -16,14 +17,14 @@ if ($opindex0 = 1) {
mes("You need to recharge your Prayer at an altar.");
return;
}
%varbit4101 = setbit(%varbit4101, $int2);
~prayer_updatebutton($boolean1, $int2, $component3, $component6, $component7);
%varbit4101 = setbit(%varbit4101, $index6);
~prayer_updatebutton($boolean1, $obj2, $component3, $component4, $component5);
}
} else if ($opindex0 = 2) {
~deltooltip_action($component7);
~deltooltip_action($component5);
if ($boolean1 = true & %varcint218 ! $component3) {
sound_synth(interface_select1, 1, 0);
~tooltip_build($component3, -1, $component7, ~prayer_gettooltiptext($int2), if_getwidth($component6));
~tooltip_build($component3, -1, $component5, ~prayer_gettooltiptext($obj2), if_getwidth($component4));
%varcint218 = $component3;
} else {
%varcint218 = null;
Expand Down
4 changes: 2 additions & 2 deletions scripts/[clientscript,prayer_stop_flash].cs2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// 3405
[clientscript,prayer_stop_flash](int $int0)
def_component $component1 = enum(int, component, enum_859, $int0);
[clientscript,prayer_stop_flash](obj $obj0)
def_component $component1 = oc_param($obj0, param_1751);
if ($component1 = null) {
return;
}
Expand Down
8 changes: 4 additions & 4 deletions scripts/[clientscript,prayer_updatebutton].cs2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// 461
[clientscript,prayer_updatebutton](boolean $boolean0, int $int1, component $component2, int $comsubid3, int $comsubid4, component $component5, component $component6)
if (cc_find($component2, $comsubid3) = ^true & .cc_find($component2, $comsubid4) = ^true) {
~prayer_updatebutton($boolean0, $int1, $component2, $component5, $component6);
[clientscript,prayer_updatebutton](boolean $boolean0, obj $obj1, component $component2, component $component3, component $component4)
if (cc_find($component2, 0) = ^true & .cc_find($component2, 1) = ^true) {
~prayer_updatebutton($boolean0, $obj1, $component2, $component3, $component4);
}
if ($boolean0 = false & %varbit5711 = 1) {
~deltooltip_action($component6);
~deltooltip_action($component4);
}
13 changes: 7 additions & 6 deletions scripts/[clientscript,quickprayer_button_op].cs2
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
// 469
[clientscript,quickprayer_button_op](int $opindex0, int $int1, component $component2, int $comsubid3, int $comsubid4)
[clientscript,quickprayer_button_op](int $opindex0, obj $obj1, component $component2, int $comsubid3, int $comsubid4)
def_int $index5 = oc_param($obj1, param_630);
if ($opindex0 = 1 & .cc_find($component2, $comsubid4) = ^true) {
if (testbit(%varbit4102, $int1) = ^true) {
%varbit4102 = clearbit(%varbit4102, $int1);
if (testbit(%varbit4102, $index5) = ^true) {
%varbit4102 = clearbit(%varbit4102, $index5);
} else {
if (~prayer_isavailable($int1) = 0) {
if (~prayer_isavailable($obj1) = 0) {
return;
}
%varbit4102 = setbit(%varbit4102, $int1);
%varbit4102 = setbit(%varbit4102, $index5);
}
sound_synth(interface_select1, 1, 0);
if (cc_find($component2, $comsubid3) = ^true) {
~quickprayer_button_update($int1);
~quickprayer_button_update($obj1);
}
}
4 changes: 2 additions & 2 deletions scripts/[clientscript,quickprayer_button_update].cs2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 470
[clientscript,quickprayer_button_update](int $int0, component $component1, int $comsubid2, int $comsubid3)
[clientscript,quickprayer_button_update](obj $obj0, component $component1, int $comsubid2, int $comsubid3)
if (cc_find($component1, $comsubid2) = ^true & .cc_find($component1, $comsubid3) = ^true) {
~quickprayer_button_update($int0);
~quickprayer_button_update($obj0);
}
4 changes: 2 additions & 2 deletions scripts/[clientscript,quickprayer_icon_update].cs2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 467
[clientscript,quickprayer_icon_update](int $int0, component $component1, int $comsubid2)
[clientscript,quickprayer_icon_update](obj $obj0, component $component1, int $comsubid2)
if (.cc_find($component1, $comsubid2) = ^true) {
~quickprayer_icon_update($int0);
~quickprayer_icon_update($obj0);
}
Loading

0 comments on commit 07331f5

Please sign in to comment.