From 4d9e56fee2ae4e88bba228c2a3db29f4e4c67610 Mon Sep 17 00:00:00 2001 From: Joshua Filby Date: Wed, 19 Jan 2022 19:58:07 -0600 Subject: [PATCH] 202.5 --- README.md | 113 +++++++++ scripts/[clientscript,buff_bar_init].cs2 | 2 +- scripts/[clientscript,emote_init].cs2 | 10 +- scripts/[clientscript,emote_update].cs2 | 4 +- scripts/[clientscript,highlight_next].cs2 | 13 +- scripts/[clientscript,league_info_init].cs2 | 6 +- ...ientscript,league_reward_confirm_back].cs2 | 6 +- .../[clientscript,league_reward_shop_buy].cs2 | 6 +- ...lientscript,league_reward_shop_refuse].cs2 | 4 +- ...lientscript,league_reward_shop_select].cs2 | 6 +- ...tscript,league_reward_shop_showpoints].cs2 | 4 +- .../[clientscript,league_rewards_init].cs2 | 8 +- .../[clientscript,league_statistics_init].cs2 | 4 +- scripts/[clientscript,league_tasks_init].cs2 | 6 +- ...lientscript,leagues_closebutton_click].cs2 | 2 +- scripts/[clientscript,script5745].cs2 | 6 + scripts/[clientscript,script5747].cs2 | 91 +++++++ scripts/[clientscript,script5748].cs2 | 52 ++++ scripts/[clientscript,script5750].cs2 | 3 + scripts/[clientscript,script5753].cs2 | 6 + scripts/[clientscript,script5754].cs2 | 9 + scripts/[clientscript,script5755].cs2 | 4 + scripts/[clientscript,script5757].cs2 | 6 + scripts/[clientscript,script5759].cs2 | 12 + scripts/[clientscript,script5760].cs2 | 4 + scripts/[clientscript,script5762].cs2 | 11 + scripts/[clientscript,script5763].cs2 | 11 + scripts/[clientscript,script5764].cs2 | 11 + scripts/[clientscript,script5765].cs2 | 11 + scripts/[clientscript,script5766].cs2 | 6 + scripts/[clientscript,script5767].cs2 | 6 + scripts/[clientscript,script5768].cs2 | 6 + scripts/[clientscript,script5769].cs2 | 6 + scripts/[clientscript,script5775].cs2 | 3 + scripts/[clientscript,script5776].cs2 | 4 + scripts/[clientscript,script5794].cs2 | 21 ++ scripts/[clientscript,script5795].cs2 | 19 ++ scripts/[clientscript,script5796].cs2 | 26 ++ scripts/[clientscript,script5798].cs2 | 65 +++++ scripts/[clientscript,script5799].cs2 | 3 + scripts/[clientscript,script5800].cs2 | 3 + scripts/[clientscript,script5804].cs2 | 10 + scripts/[clientscript,script5805].cs2 | 52 ++++ scripts/[clientscript,script5806].cs2 | 8 + scripts/[clientscript,script5809].cs2 | 3 + scripts/[clientscript,script5810].cs2 | 4 + scripts/[clientscript,script5818].cs2 | 3 + scripts/[clientscript,script5821].cs2 | 53 ++++ scripts/[clientscript,script5823].cs2 | 80 ++++++ scripts/[clientscript,script5824].cs2 | 4 + scripts/[clientscript,script5825].cs2 | 4 + scripts/[clientscript,script5826].cs2 | 3 + scripts/[clientscript,script5828].cs2 | 4 + scripts/[clientscript,script5829].cs2 | 3 + scripts/[clientscript,script5835].cs2 | 4 + scripts/[clientscript,script5836].cs2 | 4 + scripts/[clientscript,script5837].cs2 | 4 + scripts/[clientscript,script5839].cs2 | 3 + scripts/[clientscript,script5840].cs2 | 6 + scripts/[clientscript,script5841].cs2 | 32 +++ scripts/[clientscript,script5842].cs2 | 5 + scripts/[clientscript,script5843].cs2 | 11 + scripts/[clientscript,script5844].cs2 | 15 ++ scripts/[clientscript,script883].cs2 | 2 +- scripts/[clientscript,script885].cs2 | 2 +- scripts/[clientscript,stats_init].cs2 | 14 +- scripts/[clientscript,xpdrops_fake].cs2 | 69 +++--- scripts/[clientscript,xpdrops_init].cs2 | 3 +- .../[clientscript,xpdrops_stattransmit].cs2 | 13 +- scripts/[proc,buff_bar_buff_amount].cs2 | 4 +- scripts/[proc,buff_bar_buff_create].cs2 | 33 ++- scripts/[proc,buff_bar_position_review].cs2 | 2 +- .../[proc,dynamic_stone_button_filled].cs2 | 56 +---- scripts/[proc,emote_checkunlocked].cs2 | 2 + scripts/[proc,emote_op1_configure].cs2 | 2 +- scripts/[proc,emote_op2_configure].cs2 | 9 +- scripts/[proc,emote_set_graphic].cs2 | 2 + scripts/[proc,emote_update].cs2 | 21 +- scripts/[proc,health_regen_timer].cs2 | 3 + scripts/[proc,highlight_textbox].cs2 | 8 +- scripts/[proc,in_league_tutorial].cs2 | 2 +- scripts/[proc,league_create_dropdown].cs2 | 16 +- scripts/[proc,league_get_league_name].cs2 | 6 +- scripts/[proc,league_info_draw_interface].cs2 | 12 +- scripts/[proc,league_points_earned].cs2 | 4 +- scripts/[proc,league_points_progress_bar].cs2 | 54 +++- scripts/[proc,league_relic_display].cs2 | 3 + scripts/[proc,league_reward_draw_item].cs2 | 86 +++---- .../[proc,league_reward_shop_showpoints].cs2 | 4 +- scripts/[proc,league_rewards_draw].cs2 | 157 ++++++------ .../[proc,league_side_panel_hudtoggle].cs2 | 9 +- scripts/[proc,league_statistics_draw].cs2 | 230 +++++++++--------- scripts/[proc,league_task_display].cs2 | 7 +- scripts/[proc,league_task_is_completed].cs2 | 8 + scripts/[proc,league_tasks_draw_list].cs2 | 31 ++- scripts/[proc,magic_spellbook_modifyops].cs2 | 22 +- scripts/[proc,questlist_showprogress].cs2 | 2 +- scripts/[proc,script1124].cs2 | 13 +- scripts/[proc,script1129].cs2 | 4 + scripts/[proc,script2614].cs2 | 26 +- scripts/[proc,script2833].cs2 | 6 +- scripts/[proc,script3210].cs2 | 2 + scripts/[proc,script3211].cs2 | 2 + scripts/[proc,script3292].cs2 | 6 +- scripts/[proc,script3809].cs2 | 6 + scripts/[proc,script5186].cs2 | 9 + scripts/[proc,script5288].cs2 | 25 +- scripts/[proc,script5291].cs2 | 2 +- scripts/[proc,script5465].cs2 | 7 + scripts/[proc,script5738].cs2 | 3 + scripts/[proc,script5739].cs2 | 24 ++ scripts/[proc,script5740].cs2 | 11 + scripts/[proc,script5741].cs2 | 11 + scripts/[proc,script5742].cs2 | 13 + scripts/[proc,script5743].cs2 | 33 +++ scripts/[proc,script5744].cs2 | 6 + scripts/[proc,script5746].cs2 | 21 ++ scripts/[proc,script5749].cs2 | 5 + scripts/[proc,script5751].cs2 | 70 ++++++ scripts/[proc,script5752].cs2 | 88 +++++++ scripts/[proc,script5756].cs2 | 8 + scripts/[proc,script5758].cs2 | 14 ++ scripts/[proc,script5761].cs2 | 11 + scripts/[proc,script5770].cs2 | 4 + scripts/[proc,script5771].cs2 | 23 ++ scripts/[proc,script5772].cs2 | 107 ++++++++ scripts/[proc,script5773].cs2 | 26 ++ scripts/[proc,script5774].cs2 | 11 + scripts/[proc,script5777].cs2 | 180 ++++++++++++++ scripts/[proc,script5778].cs2 | 65 +++++ scripts/[proc,script5779].cs2 | 44 ++++ scripts/[proc,script5780].cs2 | 16 ++ scripts/[proc,script5781].cs2 | 90 +++++++ scripts/[proc,script5782].cs2 | 22 ++ scripts/[proc,script5783].cs2 | 20 ++ scripts/[proc,script5784].cs2 | 31 +++ scripts/[proc,script5785].cs2 | 78 ++++++ scripts/[proc,script5786].cs2 | 24 ++ scripts/[proc,script5787].cs2 | 24 ++ scripts/[proc,script5788].cs2 | 112 +++++++++ scripts/[proc,script5789].cs2 | 12 + scripts/[proc,script5790].cs2 | 3 + scripts/[proc,script5791].cs2 | 20 ++ scripts/[proc,script5792].cs2 | 68 ++++++ scripts/[proc,script5793].cs2 | 60 +++++ scripts/[proc,script5797].cs2 | 3 + scripts/[proc,script5801].cs2 | 19 ++ scripts/[proc,script5802].cs2 | 22 ++ scripts/[proc,script5803].cs2 | 30 +++ scripts/[proc,script5807].cs2 | 21 ++ scripts/[proc,script5808].cs2 | 6 + scripts/[proc,script5811].cs2 | 9 + scripts/[proc,script5812].cs2 | 48 ++++ scripts/[proc,script5813].cs2 | 58 +++++ scripts/[proc,script5814].cs2 | 77 ++++++ scripts/[proc,script5815].cs2 | 57 +++++ scripts/[proc,script5816].cs2 | 76 ++++++ scripts/[proc,script5817].cs2 | 68 ++++++ scripts/[proc,script5819].cs2 | 55 +++++ scripts/[proc,script5820].cs2 | 28 +++ scripts/[proc,script5822].cs2 | 28 +++ scripts/[proc,script5827].cs2 | 70 ++++++ scripts/[proc,script5830].cs2 | 55 +++++ scripts/[proc,script5831].cs2 | 71 ++++++ scripts/[proc,script5832].cs2 | 81 ++++++ scripts/[proc,script5833].cs2 | 16 ++ scripts/[proc,script5834].cs2 | 140 +++++++++++ scripts/[proc,script5838].cs2 | 11 + scripts/[proc,script5845].cs2 | 50 ++++ scripts/[proc,script5846].cs2 | 20 ++ scripts/[proc,script5847].cs2 | 20 ++ scripts/[proc,script5848].cs2 | 20 ++ scripts/[proc,skill_guide_data_magic].cs2 | 3 + scripts/[proc,toplevel_redraw].cs2 | 10 +- 174 files changed, 3982 insertions(+), 468 deletions(-) create mode 100644 scripts/[clientscript,script5745].cs2 create mode 100644 scripts/[clientscript,script5747].cs2 create mode 100644 scripts/[clientscript,script5748].cs2 create mode 100644 scripts/[clientscript,script5750].cs2 create mode 100644 scripts/[clientscript,script5753].cs2 create mode 100644 scripts/[clientscript,script5754].cs2 create mode 100644 scripts/[clientscript,script5755].cs2 create mode 100644 scripts/[clientscript,script5757].cs2 create mode 100644 scripts/[clientscript,script5759].cs2 create mode 100644 scripts/[clientscript,script5760].cs2 create mode 100644 scripts/[clientscript,script5762].cs2 create mode 100644 scripts/[clientscript,script5763].cs2 create mode 100644 scripts/[clientscript,script5764].cs2 create mode 100644 scripts/[clientscript,script5765].cs2 create mode 100644 scripts/[clientscript,script5766].cs2 create mode 100644 scripts/[clientscript,script5767].cs2 create mode 100644 scripts/[clientscript,script5768].cs2 create mode 100644 scripts/[clientscript,script5769].cs2 create mode 100644 scripts/[clientscript,script5775].cs2 create mode 100644 scripts/[clientscript,script5776].cs2 create mode 100644 scripts/[clientscript,script5794].cs2 create mode 100644 scripts/[clientscript,script5795].cs2 create mode 100644 scripts/[clientscript,script5796].cs2 create mode 100644 scripts/[clientscript,script5798].cs2 create mode 100644 scripts/[clientscript,script5799].cs2 create mode 100644 scripts/[clientscript,script5800].cs2 create mode 100644 scripts/[clientscript,script5804].cs2 create mode 100644 scripts/[clientscript,script5805].cs2 create mode 100644 scripts/[clientscript,script5806].cs2 create mode 100644 scripts/[clientscript,script5809].cs2 create mode 100644 scripts/[clientscript,script5810].cs2 create mode 100644 scripts/[clientscript,script5818].cs2 create mode 100644 scripts/[clientscript,script5821].cs2 create mode 100644 scripts/[clientscript,script5823].cs2 create mode 100644 scripts/[clientscript,script5824].cs2 create mode 100644 scripts/[clientscript,script5825].cs2 create mode 100644 scripts/[clientscript,script5826].cs2 create mode 100644 scripts/[clientscript,script5828].cs2 create mode 100644 scripts/[clientscript,script5829].cs2 create mode 100644 scripts/[clientscript,script5835].cs2 create mode 100644 scripts/[clientscript,script5836].cs2 create mode 100644 scripts/[clientscript,script5837].cs2 create mode 100644 scripts/[clientscript,script5839].cs2 create mode 100644 scripts/[clientscript,script5840].cs2 create mode 100644 scripts/[clientscript,script5841].cs2 create mode 100644 scripts/[clientscript,script5842].cs2 create mode 100644 scripts/[clientscript,script5843].cs2 create mode 100644 scripts/[clientscript,script5844].cs2 create mode 100644 scripts/[proc,script5186].cs2 create mode 100644 scripts/[proc,script5465].cs2 create mode 100644 scripts/[proc,script5738].cs2 create mode 100644 scripts/[proc,script5739].cs2 create mode 100644 scripts/[proc,script5740].cs2 create mode 100644 scripts/[proc,script5741].cs2 create mode 100644 scripts/[proc,script5742].cs2 create mode 100644 scripts/[proc,script5743].cs2 create mode 100644 scripts/[proc,script5744].cs2 create mode 100644 scripts/[proc,script5746].cs2 create mode 100644 scripts/[proc,script5749].cs2 create mode 100644 scripts/[proc,script5751].cs2 create mode 100644 scripts/[proc,script5752].cs2 create mode 100644 scripts/[proc,script5756].cs2 create mode 100644 scripts/[proc,script5758].cs2 create mode 100644 scripts/[proc,script5761].cs2 create mode 100644 scripts/[proc,script5770].cs2 create mode 100644 scripts/[proc,script5771].cs2 create mode 100644 scripts/[proc,script5772].cs2 create mode 100644 scripts/[proc,script5773].cs2 create mode 100644 scripts/[proc,script5774].cs2 create mode 100644 scripts/[proc,script5777].cs2 create mode 100644 scripts/[proc,script5778].cs2 create mode 100644 scripts/[proc,script5779].cs2 create mode 100644 scripts/[proc,script5780].cs2 create mode 100644 scripts/[proc,script5781].cs2 create mode 100644 scripts/[proc,script5782].cs2 create mode 100644 scripts/[proc,script5783].cs2 create mode 100644 scripts/[proc,script5784].cs2 create mode 100644 scripts/[proc,script5785].cs2 create mode 100644 scripts/[proc,script5786].cs2 create mode 100644 scripts/[proc,script5787].cs2 create mode 100644 scripts/[proc,script5788].cs2 create mode 100644 scripts/[proc,script5789].cs2 create mode 100644 scripts/[proc,script5790].cs2 create mode 100644 scripts/[proc,script5791].cs2 create mode 100644 scripts/[proc,script5792].cs2 create mode 100644 scripts/[proc,script5793].cs2 create mode 100644 scripts/[proc,script5797].cs2 create mode 100644 scripts/[proc,script5801].cs2 create mode 100644 scripts/[proc,script5802].cs2 create mode 100644 scripts/[proc,script5803].cs2 create mode 100644 scripts/[proc,script5807].cs2 create mode 100644 scripts/[proc,script5808].cs2 create mode 100644 scripts/[proc,script5811].cs2 create mode 100644 scripts/[proc,script5812].cs2 create mode 100644 scripts/[proc,script5813].cs2 create mode 100644 scripts/[proc,script5814].cs2 create mode 100644 scripts/[proc,script5815].cs2 create mode 100644 scripts/[proc,script5816].cs2 create mode 100644 scripts/[proc,script5817].cs2 create mode 100644 scripts/[proc,script5819].cs2 create mode 100644 scripts/[proc,script5820].cs2 create mode 100644 scripts/[proc,script5822].cs2 create mode 100644 scripts/[proc,script5827].cs2 create mode 100644 scripts/[proc,script5830].cs2 create mode 100644 scripts/[proc,script5831].cs2 create mode 100644 scripts/[proc,script5832].cs2 create mode 100644 scripts/[proc,script5833].cs2 create mode 100644 scripts/[proc,script5834].cs2 create mode 100644 scripts/[proc,script5838].cs2 create mode 100644 scripts/[proc,script5845].cs2 create mode 100644 scripts/[proc,script5846].cs2 create mode 100644 scripts/[proc,script5847].cs2 create mode 100644 scripts/[proc,script5848].cs2 diff --git a/README.md b/README.md index 009461b71..5f5c21da5 100644 --- a/README.md +++ b/README.md @@ -5186,6 +5186,7 @@ [**5183**](scripts/[proc,script5183].cs2) [**5184**](scripts/[proc,settings_helper_agility].cs2) `[proc,settings_helper_agility]` [**5185**](scripts/[proc,settings_helper_agility_highlight_obstacles].cs2) `[proc,settings_helper_agility_highlight_obstacles]` +[**5186**](scripts/[proc,script5186].cs2) [**5187**](scripts/[proc,settings_buff_ammo].cs2) `[proc,settings_buff_ammo]` [**5188**](scripts/[proc,script5188].cs2) [**5189**](scripts/[proc,script5189].cs2) @@ -5464,6 +5465,7 @@ [**5462**](scripts/[proc,script5462].cs2) [**5463**](scripts/[clientscript,xptracker_ops].cs2) `[clientscript,xptracker_ops]` [**5464**](scripts/[clientscript,script5464].cs2) +[**5465**](scripts/[proc,script5465].cs2) [**5466**](scripts/[proc,xptracker_close_stat].cs2) `[proc,xptracker_close_stat]` [**5467**](scripts/[proc,xptracker_pause_stat].cs2) `[proc,xptracker_pause_stat]` [**5468**](scripts/[proc,xptracker_pause_overall].cs2) `[proc,xptracker_pause_overall]` @@ -5736,3 +5738,114 @@ [**5735**](scripts/[clientscript,script5735].cs2) [**5736**](scripts/[proc,script5736].cs2) [**5737**](scripts/[clientscript,script5737].cs2) +[**5738**](scripts/[proc,script5738].cs2) +[**5739**](scripts/[proc,script5739].cs2) +[**5740**](scripts/[proc,script5740].cs2) +[**5741**](scripts/[proc,script5741].cs2) +[**5742**](scripts/[proc,script5742].cs2) +[**5743**](scripts/[proc,script5743].cs2) +[**5744**](scripts/[proc,script5744].cs2) +[**5745**](scripts/[clientscript,script5745].cs2) +[**5746**](scripts/[proc,script5746].cs2) +[**5747**](scripts/[clientscript,script5747].cs2) +[**5748**](scripts/[clientscript,script5748].cs2) +[**5749**](scripts/[proc,script5749].cs2) +[**5750**](scripts/[clientscript,script5750].cs2) +[**5751**](scripts/[proc,script5751].cs2) +[**5752**](scripts/[proc,script5752].cs2) +[**5753**](scripts/[clientscript,script5753].cs2) +[**5754**](scripts/[clientscript,script5754].cs2) +[**5755**](scripts/[clientscript,script5755].cs2) +[**5756**](scripts/[proc,script5756].cs2) +[**5757**](scripts/[clientscript,script5757].cs2) +[**5758**](scripts/[proc,script5758].cs2) +[**5759**](scripts/[clientscript,script5759].cs2) +[**5760**](scripts/[clientscript,script5760].cs2) +[**5761**](scripts/[proc,script5761].cs2) +[**5762**](scripts/[clientscript,script5762].cs2) +[**5763**](scripts/[clientscript,script5763].cs2) +[**5764**](scripts/[clientscript,script5764].cs2) +[**5765**](scripts/[clientscript,script5765].cs2) +[**5766**](scripts/[clientscript,script5766].cs2) +[**5767**](scripts/[clientscript,script5767].cs2) +[**5768**](scripts/[clientscript,script5768].cs2) +[**5769**](scripts/[clientscript,script5769].cs2) +[**5770**](scripts/[proc,script5770].cs2) +[**5771**](scripts/[proc,script5771].cs2) +[**5772**](scripts/[proc,script5772].cs2) +[**5773**](scripts/[proc,script5773].cs2) +[**5774**](scripts/[proc,script5774].cs2) +[**5775**](scripts/[clientscript,script5775].cs2) +[**5776**](scripts/[clientscript,script5776].cs2) +[**5777**](scripts/[proc,script5777].cs2) +[**5778**](scripts/[proc,script5778].cs2) +[**5779**](scripts/[proc,script5779].cs2) +[**5780**](scripts/[proc,script5780].cs2) +[**5781**](scripts/[proc,script5781].cs2) +[**5782**](scripts/[proc,script5782].cs2) +[**5783**](scripts/[proc,script5783].cs2) +[**5784**](scripts/[proc,script5784].cs2) +[**5785**](scripts/[proc,script5785].cs2) +[**5786**](scripts/[proc,script5786].cs2) +[**5787**](scripts/[proc,script5787].cs2) +[**5788**](scripts/[proc,script5788].cs2) +[**5789**](scripts/[proc,script5789].cs2) +[**5790**](scripts/[proc,script5790].cs2) +[**5791**](scripts/[proc,script5791].cs2) +[**5792**](scripts/[proc,script5792].cs2) +[**5793**](scripts/[proc,script5793].cs2) +[**5794**](scripts/[clientscript,script5794].cs2) +[**5795**](scripts/[clientscript,script5795].cs2) +[**5796**](scripts/[clientscript,script5796].cs2) +[**5797**](scripts/[proc,script5797].cs2) +[**5798**](scripts/[clientscript,script5798].cs2) +[**5799**](scripts/[clientscript,script5799].cs2) +[**5800**](scripts/[clientscript,script5800].cs2) +[**5801**](scripts/[proc,script5801].cs2) +[**5802**](scripts/[proc,script5802].cs2) +[**5803**](scripts/[proc,script5803].cs2) +[**5804**](scripts/[clientscript,script5804].cs2) +[**5805**](scripts/[clientscript,script5805].cs2) +[**5806**](scripts/[clientscript,script5806].cs2) +[**5807**](scripts/[proc,script5807].cs2) +[**5808**](scripts/[proc,script5808].cs2) +[**5809**](scripts/[clientscript,script5809].cs2) +[**5810**](scripts/[clientscript,script5810].cs2) +[**5811**](scripts/[proc,script5811].cs2) +[**5812**](scripts/[proc,script5812].cs2) +[**5813**](scripts/[proc,script5813].cs2) +[**5814**](scripts/[proc,script5814].cs2) +[**5815**](scripts/[proc,script5815].cs2) +[**5816**](scripts/[proc,script5816].cs2) +[**5817**](scripts/[proc,script5817].cs2) +[**5818**](scripts/[clientscript,script5818].cs2) +[**5819**](scripts/[proc,script5819].cs2) +[**5820**](scripts/[proc,script5820].cs2) +[**5821**](scripts/[clientscript,script5821].cs2) +[**5822**](scripts/[proc,script5822].cs2) +[**5823**](scripts/[clientscript,script5823].cs2) +[**5824**](scripts/[clientscript,script5824].cs2) +[**5825**](scripts/[clientscript,script5825].cs2) +[**5826**](scripts/[clientscript,script5826].cs2) +[**5827**](scripts/[proc,script5827].cs2) +[**5828**](scripts/[clientscript,script5828].cs2) +[**5829**](scripts/[clientscript,script5829].cs2) +[**5830**](scripts/[proc,script5830].cs2) +[**5831**](scripts/[proc,script5831].cs2) +[**5832**](scripts/[proc,script5832].cs2) +[**5833**](scripts/[proc,script5833].cs2) +[**5834**](scripts/[proc,script5834].cs2) +[**5835**](scripts/[clientscript,script5835].cs2) +[**5836**](scripts/[clientscript,script5836].cs2) +[**5837**](scripts/[clientscript,script5837].cs2) +[**5838**](scripts/[proc,script5838].cs2) +[**5839**](scripts/[clientscript,script5839].cs2) +[**5840**](scripts/[clientscript,script5840].cs2) +[**5841**](scripts/[clientscript,script5841].cs2) +[**5842**](scripts/[clientscript,script5842].cs2) +[**5843**](scripts/[clientscript,script5843].cs2) +[**5844**](scripts/[clientscript,script5844].cs2) +[**5845**](scripts/[proc,script5845].cs2) +[**5846**](scripts/[proc,script5846].cs2) +[**5847**](scripts/[proc,script5847].cs2) +[**5848**](scripts/[proc,script5848].cs2) diff --git a/scripts/[clientscript,buff_bar_init].cs2 b/scripts/[clientscript,buff_bar_init].cs2 index e27a9618b..2296c0c90 100644 --- a/scripts/[clientscript,buff_bar_init].cs2 +++ b/scripts/[clientscript,buff_bar_init].cs2 @@ -1,7 +1,7 @@ // 3165 [clientscript,buff_bar_init](component $component0, component $component1, component $component2, component $component3) if_setonsubchange("buff_bar_setup($component0, $component1)", $component0); -if_setonvartransmit("buff_bar_setup($component0, $component1){var1734, var2632, var3074, var3075, var439, var3154}", $component0); +if_setonvartransmit("buff_bar_setup($component0, $component1){var1734, var2632, var3074, var3075, var439, var3154, var3279, var3280, var3281}", $component0); ~buff_bar_position_init($component3, $component2, $component0, $component1); ~buff_bar_setup($component0, $component1); ~deltooltip_action($component1); diff --git a/scripts/[clientscript,emote_init].cs2 b/scripts/[clientscript,emote_init].cs2 index 480b7ecb7..cd898f82f 100644 --- a/scripts/[clientscript,emote_init].cs2 +++ b/scripts/[clientscript,emote_init].cs2 @@ -2,7 +2,6 @@ [clientscript,emote_init](component $component0, component $component1, component $component2, component $component3) cc_deleteall($component1); cc_deleteall($component2); -def_string $string0 = ""; def_int $int4 = 0; def_int $height5 = 0; def_int $int6 = 0; @@ -13,8 +12,7 @@ while ($int6 <= 50) { cc_setsize(42, 48, ^setsize_abs, ^setsize_abs); $height5 = calc($int4 / 4 * 49 + 6); cc_setposition(calc($int4 % 4 * 43), $height5, ^setpos_abs_left, ^setpos_abs_top); - $string0 = enum(int, string, enum_1000, $int6); - cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component3, $string0, 25, 120)"); + cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component3, ~script5186($int6), 25, 120)"); cc_setonmouseleave("deltooltip($component3)"); $int4 = calc($int4 + 1); } else { @@ -32,6 +30,6 @@ if ($height5 > if_getheight($component1)) { if_setscrollsize(0, 0, $component1); } ~scrollbar_vertical($component2, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); -~emote_update($component1); -if_setonvartransmit("emote_update($component1){var313, var802, var465, var101, var904, var1336, var2886}", $component0); -if_setonstattransmit("emote_update($component1)", $component0); +~emote_update($component1, $component3); +if_setonvartransmit("emote_update($component1, $component3){var313, var802, var465, var101, var904, var1336, var2886}", $component0); +if_setonstattransmit("emote_update($component1, $component3)", $component0); diff --git a/scripts/[clientscript,emote_update].cs2 b/scripts/[clientscript,emote_update].cs2 index d89ffdfea..acae96c45 100644 --- a/scripts/[clientscript,emote_update].cs2 +++ b/scripts/[clientscript,emote_update].cs2 @@ -1,3 +1,3 @@ // 700 -[clientscript,emote_update](component $component0) -~emote_update($component0); +[clientscript,emote_update](component $component0, component $component1) +~emote_update($component0, $component1); diff --git a/scripts/[clientscript,highlight_next].cs2 b/scripts/[clientscript,highlight_next].cs2 index be759bc8e..f540595e9 100644 --- a/scripts/[clientscript,highlight_next].cs2 +++ b/scripts/[clientscript,highlight_next].cs2 @@ -1,6 +1,17 @@ // 3420 [clientscript,highlight_next](boolean $boolean0, component $component1, int $comsubid2) -sound_synth(interface_select1, 1, 0); +def_int $int3 = 1; +if (%varbit10032 = 3) { + if (%varbit10037 = 9 & %varbit10308 = 6) { + $int3 = 0; + } + if (%varbit10037 = 11 & %varbit10308 = 7) { + $int3 = 0; + } +} +if ($int3 = 1) { + sound_synth(interface_select1, 1, 0); +} if (cc_find($component1, $comsubid2) = ^true) { cc_setonop(null); cc_setop(1, ""); diff --git a/scripts/[clientscript,league_info_init].cs2 b/scripts/[clientscript,league_info_init].cs2 index ba712e39c..862c0057b 100644 --- a/scripts/[clientscript,league_info_init].cs2 +++ b/scripts/[clientscript,league_info_init].cs2 @@ -1,5 +1,9 @@ // 3217 [clientscript,league_info_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9) ~leagues_close_button($component9, false); -def_int $comsubid10 = ~steelborder(interface_654:2, "Trailblazer Info", 1); +def_string $text0 = "League Info"; +if (%varbit10032 = 2) { + $text0 = "Trailblazer Info"; +} +def_int $comsubid10 = ~steelborder(interface_654:2, $text0, 1); ~league_info_draw_interface($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, 0, 0, $comsubid10); diff --git a/scripts/[clientscript,league_reward_confirm_back].cs2 b/scripts/[clientscript,league_reward_confirm_back].cs2 index 956196a6f..f09e5cbe8 100644 --- a/scripts/[clientscript,league_reward_confirm_back].cs2 +++ b/scripts/[clientscript,league_reward_confirm_back].cs2 @@ -1,6 +1,6 @@ // 3289 -[clientscript,league_reward_confirm_back](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12) +[clientscript,league_reward_confirm_back](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14) sound_synth(interface_select1, 1, 0); -if_sethide(true, $component7); +if_sethide(true, $component9); %varbit10110 = -1; -~league_rewards_draw($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, if_getscrolly($component4)); +~league_rewards_draw($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, if_getscrolly($component6)); diff --git a/scripts/[clientscript,league_reward_shop_buy].cs2 b/scripts/[clientscript,league_reward_shop_buy].cs2 index beb8a92d3..b29ee5077 100644 --- a/scripts/[clientscript,league_reward_shop_buy].cs2 +++ b/scripts/[clientscript,league_reward_shop_buy].cs2 @@ -1,8 +1,8 @@ // 3288 -[clientscript,league_reward_shop_buy](int $opindex0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12) +[clientscript,league_reward_shop_buy](int $opindex0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14) if ($opindex0 ! 1) { return; } sound_synth(interface_select1, 1, 0); -if_sethide(true, $component7); -~league_rewards_draw(-1, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, if_getscrolly($component4)); +if_sethide(true, $component9); +~league_rewards_draw(-1, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, if_getscrolly($component6)); diff --git a/scripts/[clientscript,league_reward_shop_refuse].cs2 b/scripts/[clientscript,league_reward_shop_refuse].cs2 index 8064d3935..06fd506d2 100644 --- a/scripts/[clientscript,league_reward_shop_refuse].cs2 +++ b/scripts/[clientscript,league_reward_shop_refuse].cs2 @@ -1,5 +1,5 @@ // 3285 -[clientscript,league_reward_shop_refuse](string $mes0, component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, struct $struct12) +[clientscript,league_reward_shop_refuse](string $mes0, 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, component $component13, struct $struct14) sound_synth(pillory_wrong, 1, 0); mes($mes0); -~league_rewards_draw(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, if_getscrolly($component3)); +~league_rewards_draw(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, if_getscrolly($component5)); diff --git a/scripts/[clientscript,league_reward_shop_select].cs2 b/scripts/[clientscript,league_reward_shop_select].cs2 index c902f2611..2ffda7b3d 100644 --- a/scripts/[clientscript,league_reward_shop_select].cs2 +++ b/scripts/[clientscript,league_reward_shop_select].cs2 @@ -1,7 +1,7 @@ // 3284 -[clientscript,league_reward_shop_select](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, struct $struct13) -if (~script3292($struct13) = 0) { +[clientscript,league_reward_shop_select](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, struct $struct15) +if (~script3292($struct15) = 0) { return; } sound_synth(interface_select1, 1, 0); -~league_rewards_draw($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, if_getscrolly($component4)); +~league_rewards_draw($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, if_getscrolly($component6)); diff --git a/scripts/[clientscript,league_reward_shop_showpoints].cs2 b/scripts/[clientscript,league_reward_shop_showpoints].cs2 index 4071ae53d..9d77be497 100644 --- a/scripts/[clientscript,league_reward_shop_showpoints].cs2 +++ b/scripts/[clientscript,league_reward_shop_showpoints].cs2 @@ -1,3 +1,3 @@ // 3291 -[clientscript,league_reward_shop_showpoints](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11) -~league_reward_shop_showpoints($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11); +[clientscript,league_reward_shop_showpoints](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, component $component13) +~league_reward_shop_showpoints($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13); diff --git a/scripts/[clientscript,league_rewards_init].cs2 b/scripts/[clientscript,league_rewards_init].cs2 index 6749697ed..0645720f6 100644 --- a/scripts/[clientscript,league_rewards_init].cs2 +++ b/scripts/[clientscript,league_rewards_init].cs2 @@ -1,5 +1,5 @@ // 232 -[clientscript,league_rewards_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) -~league_reward_shop_showpoints($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11); -if_setonvartransmit("league_reward_shop_showpoints($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11){var2613}", $component1); -~league_rewards_draw(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, 0); +[clientscript,league_rewards_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, component $component13) +~league_reward_shop_showpoints($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13); +if_setonvartransmit("league_reward_shop_showpoints($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13){var2613}", $component1); +~league_rewards_draw(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, 0); diff --git a/scripts/[clientscript,league_statistics_init].cs2 b/scripts/[clientscript,league_statistics_init].cs2 index 6019ba120..9e3152f35 100644 --- a/scripts/[clientscript,league_statistics_init].cs2 +++ b/scripts/[clientscript,league_statistics_init].cs2 @@ -1,5 +1,5 @@ // 1110 -[clientscript,league_statistics_init](component $component0, component $component1, component $component2, component $component3, int $int4, int $int5, string $string0) +[clientscript,league_statistics_init](component $component0, component $component1, component $component2, component $component3, int $int4, int $int5, int $int6, string $string0) ~leagues_close_button($component3, false); if_setposition(50, 5, ^setpos_abs_right, ^setpos_abs_top, $component3); -~league_statistics_draw($component0, $component1, $component2, $string0, $int4, $int5); +~league_statistics_draw($component0, $component1, $component2, $string0, $int4, $int5, $int6); diff --git a/scripts/[clientscript,league_tasks_init].cs2 b/scripts/[clientscript,league_tasks_init].cs2 index 326bc2055..17d029617 100644 --- a/scripts/[clientscript,league_tasks_init].cs2 +++ b/scripts/[clientscript,league_tasks_init].cs2 @@ -1,6 +1,10 @@ // 3202 [clientscript,league_tasks_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, component $component13, component $component14) ~leagues_close_button($component14, false); -def_int $comsubid15 = ~steelborder(interface_657:2, "Trailblazer Tasks", 1); +def_string $text0 = "League Tasks"; +if (%varbit10032 = 2) { + $text0 = "Trailblazer Tasks"; +} +def_int $comsubid15 = ~steelborder(interface_657:2, $text0, 1); if_setonvartransmit("league_tasks_draw_list(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, 0, $comsubid15){var2606, var2805}", $component1); ~league_tasks_draw_list(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, 0, $comsubid15); diff --git a/scripts/[clientscript,leagues_closebutton_click].cs2 b/scripts/[clientscript,leagues_closebutton_click].cs2 index 6ec91a861..32886f0d9 100644 --- a/scripts/[clientscript,leagues_closebutton_click].cs2 +++ b/scripts/[clientscript,leagues_closebutton_click].cs2 @@ -1,6 +1,6 @@ // 3692 [clientscript,leagues_closebutton_click](boolean $boolean0) -if (~in_league_tutorial = 1) { +if (~in_league_tutorial = 1 & %varbit10032 = 2) { if ($boolean0 = true & %varbit10037 < 9 & ~script3681(2) = 0) { sound_synth(pillory_wrong, 1, 0); } diff --git a/scripts/[clientscript,script5745].cs2 b/scripts/[clientscript,script5745].cs2 new file mode 100644 index 000000000..74069c238 --- /dev/null +++ b/scripts/[clientscript,script5745].cs2 @@ -0,0 +1,6 @@ +// 5745 +[clientscript,script5745](component $component0, component $component1, component $component2, component $component3, int $int4) +~leagues_close_button($component3, false); +def_string $text0 = "League Fragments"; +def_int $comsubid5 = ~steelborder(interface_735:6, $text0, 1); +~script5746($component0, $component1, $component2, $component3, $comsubid5, $int4); diff --git a/scripts/[clientscript,script5747].cs2 b/scripts/[clientscript,script5747].cs2 new file mode 100644 index 000000000..654cbf4e4 --- /dev/null +++ b/scripts/[clientscript,script5747].cs2 @@ -0,0 +1,91 @@ +// 5747 +[clientscript,script5747](component $component0) +cc_deleteall($component0); +def_int $int1 = ~script5786; +def_int $colour2 = ~script5465(3); +def_int $int3 = 0; +def_int $int4 = 0; +def_int $colour5 = ^black; +def_graphic $graphic6 = null; +def_struct $struct7 = null; +while ($int3 < 7) { + if ($int3 < $int1) { + $colour5 = 0x726451; + $struct7 = struct_3712; + } else { + $colour5 = 0x2e2b22; + $struct7 = struct_3714; + } + $int4 = ~script5288($component0, $int4, calc($int3 * 50), 0, 38, 38, $struct7, $colour5); + $int3 = calc($int3 + 1); +} +$int3 = 0; +while ($int3 < 7) { + if ($int3 < $int1) { + $colour5 = $colour2; + switch_int ($int3) { + case 0 : + $graphic6 = "graphic_3745"; + case 1 : + $graphic6 = "graphic_3746"; + case 2 : + $graphic6 = "graphic_3747"; + case 3 : + $graphic6 = "graphic_3748"; + case 4 : + $graphic6 = "graphic_3749"; + case 5 : + $graphic6 = "graphic_3750"; + case 6 : + $graphic6 = "graphic_3751"; + } + } else { + $colour5 = 0x726451; + switch_int ($int3) { + case 0 : + $graphic6 = "graphic_3752"; + case 1 : + $graphic6 = "graphic_3753"; + case 2 : + $graphic6 = "graphic_3754"; + case 3 : + $graphic6 = "graphic_3755"; + case 4 : + $graphic6 = "graphic_3756"; + case 5 : + $graphic6 = "graphic_3757"; + case 6 : + $graphic6 = "graphic_3758"; + } + } + $int4 = ~script5288($component0, $int4, calc($int3 * 50 + 9), 37, 20, 14, struct_3712, $colour5); + ~create_graphic($component0, $int4, $graphic6, calc($int3 * 50 + 11), 40, ^setpos_abs_left, ^setpos_abs_top, 16, 8, ^setsize_abs, ^setsize_abs); + $int4 = calc($int4 + 1); + $int3 = calc($int3 + 1); +} +$int3 = 0; +while ($int3 < 6) { + ~create_graphic($component0, $int4, struct_param(struct_3714, param_1388), calc($int3 * 50 + 28), 41, ^setpos_abs_left, ^setpos_abs_top, 32, 4, ^setsize_abs, ^setsize_abs); + $int4 = calc($int4 + 1); + ~create_graphic($component0, $int4, struct_param(struct_3714, param_1394), calc($int3 * 50 + 28), 43, ^setpos_abs_left, ^setpos_abs_top, 32, 4, ^setsize_abs, ^setsize_abs); + $int4 = calc($int4 + 1); + cc_create($component0, ^iftype_rectangle, $int4); + cc_setposition(calc($int3 * 50 + 28), 42, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(32, 4, ^setsize_abs, ^setsize_abs); + cc_setfill(true); + cc_setcolour(0x726451); + $int4 = calc($int4 + 1); + cc_create($component0, ^iftype_rectangle, $int4); + cc_setposition(calc($int3 * 50 + 28), 42, ^setpos_abs_left, ^setpos_abs_top); + if (calc($int1 - 1) > $int3) { + cc_setsize(32, 4, ^setsize_abs, ^setsize_abs); + } else if (calc($int1 - 1) = $int3) { + cc_setsize(scale(~script5787, 32), 4, ^setsize_abs, ^setsize_abs); + } else { + cc_setsize(0, 4, ^setsize_abs, ^setsize_abs); + } + cc_setfill(true); + cc_setcolour($colour2); + $int4 = calc($int4 + 1); + $int3 = calc($int3 + 1); +} diff --git a/scripts/[clientscript,script5748].cs2 b/scripts/[clientscript,script5748].cs2 new file mode 100644 index 000000000..46aecfdd0 --- /dev/null +++ b/scripts/[clientscript,script5748].cs2 @@ -0,0 +1,52 @@ +// 5748 +[clientscript,script5748](component $component0) +cc_deleteall($component0); +def_int $int1 = 0; +def_int $comsubid2 = 0; +def_int $int3 = 0; +def_int $int4 = 0; +def_struct $struct5 = null; +def_struct $struct6 = null; +def_int $int7 = 0; +def_int $int8 = 0; +def_int $int9 = 0; +def_int $int10 = 0; +while ($int3 < 7) { + $int4 = ~script5791($int3); + if ($int4 ! 0) { + $int10 = 0; + $struct5 = enum(int, struct, enum_4136, $int4); + $int7 = struct_param($struct5, param_1459); + $struct6 = enum(int, struct, enum_4137, $int7); + $int8 = ~script5792($int7); + $int9 = struct_param($struct6, param_1468); + if ($int8 >= $int9) { + $int10 = 1; + } + if ($int10 = 0) { + $int7 = struct_param($struct5, param_1460); + $struct6 = enum(int, struct, enum_4137, $int7); + $int8 = ~script5792($int7); + $int9 = struct_param($struct6, param_1468); + if ($int8 >= $int9) { + $int10 = 1; + } + } + $comsubid2 = calc($int1 + 1); + $int1 = ~script5793($component0, $int1, calc($int3 * 50 + 3), 3, struct_param($struct5, param_1461), ~script5788($int4), $int10); + if (cc_find($component0, $comsubid2) = ^true) { + cc_setop(1, "View"); + cc_setop(2, "Unequip"); + cc_setopbase(""); + cc_setonop("script5776(interface_735:32, interface_735:33, $int4, event_opindex, 1, 0)"); + } + } else { + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + } + $int3 = calc($int3 + 1); +} diff --git a/scripts/[clientscript,script5750].cs2 b/scripts/[clientscript,script5750].cs2 new file mode 100644 index 000000000..484cd1225 --- /dev/null +++ b/scripts/[clientscript,script5750].cs2 @@ -0,0 +1,3 @@ +// 5750 +[clientscript,script5750](component $component0, component $component1) +~script5751($component0, $component1); diff --git a/scripts/[clientscript,script5753].cs2 b/scripts/[clientscript,script5753].cs2 new file mode 100644 index 000000000..fb0017cf5 --- /dev/null +++ b/scripts/[clientscript,script5753].cs2 @@ -0,0 +1,6 @@ +// 5753 +[clientscript,script5753](int $int0) +$int0 = calc(($int0 - 1) * 42); +if (cc_find(interface_735:18, 1) = ^true) { + ~scrollbar_vertical_doscroll(interface_735:18, interface_735:17, $int0, true); +} diff --git a/scripts/[clientscript,script5754].cs2 b/scripts/[clientscript,script5754].cs2 new file mode 100644 index 000000000..bfa63b575 --- /dev/null +++ b/scripts/[clientscript,script5754].cs2 @@ -0,0 +1,9 @@ +// 5754 +[clientscript,script5754](component $component0, component $component1, component $component2) +sound_synth(interface_select1, 1, 0); +if_sethide(false, $component1); +if_settext("Hide Filters", $component2); +if_setonop("script5755($component0, $component1, $component2)", $component0); +if_setop(1, "Hide", $component0); +if_setopbase("Filters", $component0); +~script5761($component1, interface_735:27, interface_735:28, interface_735:29, interface_735:30, interface_735:3, interface_735:4, interface_735:5); diff --git a/scripts/[clientscript,script5755].cs2 b/scripts/[clientscript,script5755].cs2 new file mode 100644 index 000000000..cdfaf46ad --- /dev/null +++ b/scripts/[clientscript,script5755].cs2 @@ -0,0 +1,4 @@ +// 5755 +[clientscript,script5755](component $component0, component $component1, component $component2) +sound_synth(interface_select1, 1, 0); +~script5756($component0, $component1, $component2); diff --git a/scripts/[clientscript,script5757].cs2 b/scripts/[clientscript,script5757].cs2 new file mode 100644 index 000000000..464bb74e4 --- /dev/null +++ b/scripts/[clientscript,script5757].cs2 @@ -0,0 +1,6 @@ +// 5757 +[clientscript,script5757](component $component0, component $component1) +if_setonop("script5759($component0, $component1)", $component0); +if_setop(1, "Clear", $component0); +if_setopbase("Filters", $component0); +~script5758($component0, $component1); diff --git a/scripts/[clientscript,script5759].cs2 b/scripts/[clientscript,script5759].cs2 new file mode 100644 index 000000000..3fe4c11cf --- /dev/null +++ b/scripts/[clientscript,script5759].cs2 @@ -0,0 +1,12 @@ +// 5759 +[clientscript,script5759](component $component0, component $component1) +if (%varcint968 < 1 & %varcint969 < 1 & %varcint970 < 1 & %varcint971 < 1) { + return; +} +sound_synth(interface_select1, 1, 0); +%varcint968 = 0; +%varcint969 = 0; +%varcint970 = 0; +%varcint971 = 0; +~script5758($component0, $component1); +~script5756(interface_735:8, interface_735:19, interface_735:9); diff --git a/scripts/[clientscript,script5760].cs2 b/scripts/[clientscript,script5760].cs2 new file mode 100644 index 000000000..1bfffde8e --- /dev/null +++ b/scripts/[clientscript,script5760].cs2 @@ -0,0 +1,4 @@ +// 5760 +[clientscript,script5760](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +def_int $int8 = ~thinbox($component0, 0); +~script5761($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7); diff --git a/scripts/[clientscript,script5762].cs2 b/scripts/[clientscript,script5762].cs2 new file mode 100644 index 000000000..20fe1ec90 --- /dev/null +++ b/scripts/[clientscript,script5762].cs2 @@ -0,0 +1,11 @@ +// 5762 +[clientscript,script5762](component $component0, component $component1, component $component2, component $component3, enum $enum4, int $colour5) +sound_synth(interface_select1, 1, 0); +~script5772($component0, $component1, $component2, $component3, $enum4, $colour5); +def_int $count6 = 0; +while ($count6 < enum_getoutputcount($enum4)) { + if (cc_find($component1, calc(1 + $count6 * 2)) = ^true) { + cc_setonop("script5766($component0, $component3, $count6, $enum4, $colour5)"); + } + $count6 = calc($count6 + 1); +} diff --git a/scripts/[clientscript,script5763].cs2 b/scripts/[clientscript,script5763].cs2 new file mode 100644 index 000000000..e9e39b1fe --- /dev/null +++ b/scripts/[clientscript,script5763].cs2 @@ -0,0 +1,11 @@ +// 5763 +[clientscript,script5763](component $component0, component $component1, component $component2, component $component3, enum $enum4, int $colour5) +sound_synth(interface_select1, 1, 0); +~script5772($component0, $component1, $component2, $component3, $enum4, $colour5); +def_int $count6 = 0; +while ($count6 < enum_getoutputcount($enum4)) { + if (cc_find($component1, calc(1 + $count6 * 2)) = ^true) { + cc_setonop("script5767($component0, $component3, $count6, $enum4, $colour5)"); + } + $count6 = calc($count6 + 1); +} diff --git a/scripts/[clientscript,script5764].cs2 b/scripts/[clientscript,script5764].cs2 new file mode 100644 index 000000000..62488d723 --- /dev/null +++ b/scripts/[clientscript,script5764].cs2 @@ -0,0 +1,11 @@ +// 5764 +[clientscript,script5764](component $component0, component $component1, component $component2, component $component3, enum $enum4, int $colour5) +sound_synth(interface_select1, 1, 0); +~script5772($component0, $component1, $component2, $component3, $enum4, $colour5); +def_int $count6 = 0; +while ($count6 < enum_getoutputcount($enum4)) { + if (cc_find($component1, calc(1 + $count6 * 2)) = ^true) { + cc_setonop("script5768($component0, $component3, $count6, $enum4, $colour5)"); + } + $count6 = calc($count6 + 1); +} diff --git a/scripts/[clientscript,script5765].cs2 b/scripts/[clientscript,script5765].cs2 new file mode 100644 index 000000000..db56e8474 --- /dev/null +++ b/scripts/[clientscript,script5765].cs2 @@ -0,0 +1,11 @@ +// 5765 +[clientscript,script5765](component $component0, component $component1, component $component2, component $component3, enum $enum4, int $colour5) +sound_synth(interface_select1, 1, 0); +~script5772($component0, $component1, $component2, $component3, $enum4, $colour5); +def_int $count6 = 0; +while ($count6 < enum_getoutputcount($enum4)) { + if (cc_find($component1, calc(1 + $count6 * 2)) = ^true) { + cc_setonop("script5769($component0, $component3, $count6, $enum4, $colour5)"); + } + $count6 = calc($count6 + 1); +} diff --git a/scripts/[clientscript,script5766].cs2 b/scripts/[clientscript,script5766].cs2 new file mode 100644 index 000000000..27ae31389 --- /dev/null +++ b/scripts/[clientscript,script5766].cs2 @@ -0,0 +1,6 @@ +// 5766 +[clientscript,script5766](component $component0, component $component1, int $count2, enum $enum3, int $colour4) +sound_synth(interface_select1, 1, 0); +%varcint968 = $count2; +~script5770($component0, $component1, $count2, $enum3, $colour4); +~script5758(interface_735:10, interface_735:11); diff --git a/scripts/[clientscript,script5767].cs2 b/scripts/[clientscript,script5767].cs2 new file mode 100644 index 000000000..5ac38b6c9 --- /dev/null +++ b/scripts/[clientscript,script5767].cs2 @@ -0,0 +1,6 @@ +// 5767 +[clientscript,script5767](component $component0, component $component1, int $count2, enum $enum3, int $colour4) +sound_synth(interface_select1, 1, 0); +%varcint969 = $count2; +~script5770($component0, $component1, $count2, $enum3, $colour4); +~script5758(interface_735:10, interface_735:11); diff --git a/scripts/[clientscript,script5768].cs2 b/scripts/[clientscript,script5768].cs2 new file mode 100644 index 000000000..c65ac6360 --- /dev/null +++ b/scripts/[clientscript,script5768].cs2 @@ -0,0 +1,6 @@ +// 5768 +[clientscript,script5768](component $component0, component $component1, int $count2, enum $enum3, int $colour4) +sound_synth(interface_select1, 1, 0); +%varcint970 = $count2; +~script5770($component0, $component1, $count2, $enum3, $colour4); +~script5758(interface_735:10, interface_735:11); diff --git a/scripts/[clientscript,script5769].cs2 b/scripts/[clientscript,script5769].cs2 new file mode 100644 index 000000000..3033905b4 --- /dev/null +++ b/scripts/[clientscript,script5769].cs2 @@ -0,0 +1,6 @@ +// 5769 +[clientscript,script5769](component $component0, component $component1, int $count2, enum $enum3, int $colour4) +sound_synth(interface_select1, 1, 0); +%varcint971 = $count2; +~script5770($component0, $component1, $count2, $enum3, $colour4); +~script5758(interface_735:10, interface_735:11); diff --git a/scripts/[clientscript,script5775].cs2 b/scripts/[clientscript,script5775].cs2 new file mode 100644 index 000000000..9f35db203 --- /dev/null +++ b/scripts/[clientscript,script5775].cs2 @@ -0,0 +1,3 @@ +// 5775 +[clientscript,script5775](component $component0, component $component1, int $int2, int $int3, int $int4, int $int5) +~script5777($component0, $component1, $int2, $int3, $int4, $int5); diff --git a/scripts/[clientscript,script5776].cs2 b/scripts/[clientscript,script5776].cs2 new file mode 100644 index 000000000..72833f3f8 --- /dev/null +++ b/scripts/[clientscript,script5776].cs2 @@ -0,0 +1,4 @@ +// 5776 +[clientscript,script5776](component $component0, component $component1, int $int2, int $opindex3, int $int4, int $int5) +sound_synth(interface_select1, 1, 0); +~script5777($component0, $component1, $int2, $opindex3, $int4, $int5); diff --git a/scripts/[clientscript,script5794].cs2 b/scripts/[clientscript,script5794].cs2 new file mode 100644 index 000000000..506eed9ef --- /dev/null +++ b/scripts/[clientscript,script5794].cs2 @@ -0,0 +1,21 @@ +// 5794 +[clientscript,script5794](component $component0, int $comsubid1, int $int2, int $int3) +def_int $trans4 = 238; +def_int $trans5 = 125; +def_int $int6 = 2; +def_int $trans7 = 0; +if (cc_find($component0, $comsubid1) = ^true) { + $int2 = calc($int2 - 1); + if ($int2 <= 0) { + $trans7 = calc(cc_gettrans + $int3); + if ($trans7 >= $trans4) { + $int3 = -3; + } + if ($trans7 <= $trans5) { + $int3 = 3; + } + cc_settrans($trans7); + $int2 = $int6; + } + cc_setontimer("script5794($component0, $comsubid1, $int2, $int3)"); +} diff --git a/scripts/[clientscript,script5795].cs2 b/scripts/[clientscript,script5795].cs2 new file mode 100644 index 000000000..25d55b8b0 --- /dev/null +++ b/scripts/[clientscript,script5795].cs2 @@ -0,0 +1,19 @@ +// 5795 +[clientscript,script5795](component $component0, int $comsubid1, int $int2) +def_int $int3 = 218; +def_int $int4 = 125; +def_int $int5 = 2; +def_int $trans6 = 0; +def_int $trans7 = calc($int4 + randominc($int3 - $int4)); +if (cc_find($component0, $comsubid1) = ^true) { + $int2 = calc($int2 - 1); + if ($int2 <= 0) { + $trans6 = ~min(calc(cc_gettrans + 7), $int3); + if ($trans7 < $trans6 & random(3) = 1) { + $trans6 = $trans7; + } + cc_settrans($trans6); + $int2 = $int5; + } + cc_setontimer("script5795($component0, $comsubid1, $int2)"); +} diff --git a/scripts/[clientscript,script5796].cs2 b/scripts/[clientscript,script5796].cs2 new file mode 100644 index 000000000..0920be015 --- /dev/null +++ b/scripts/[clientscript,script5796].cs2 @@ -0,0 +1,26 @@ +// 5796 +[clientscript,script5796](component $component0, int $comsubid1, int $int2, int $int3, int $int4) +def_enum $enum5 = enum(int, enum, enum_4145, $int3); +def_graphic $graphic6 = enum(int, graphic, $enum5, $int4); +if (cc_find($component0, $comsubid1) = ^true) { + $int2 = calc($int2 - 1); + if ($int2 <= 0) { + $enum5 = enum(int, enum, enum_4145, $int3); + cc_setgraphic(enum(int, graphic, $enum5, $int4)); + if ($graphic6 = null) { + $int4 = 0; + $int2 = calc(3 + randominc(3)); + $int3 = random(enum_getoutputcount(enum_4145)); + switch_int (randominc(1)) { + case 0 : + cc_sethflip(false); + case 1 : + cc_sethflip(true); + } + } else { + $int4 = calc($int4 + 1); + $int2 = calc(4 + randominc(1)); + } + } + cc_setontimer("script5796($component0, $comsubid1, $int2, $int3, $int4)"); +} diff --git a/scripts/[clientscript,script5798].cs2 b/scripts/[clientscript,script5798].cs2 new file mode 100644 index 000000000..9a485bf2b --- /dev/null +++ b/scripts/[clientscript,script5798].cs2 @@ -0,0 +1,65 @@ +// 5798 +[clientscript,script5798](component $component0, component $component1, component $component2, component $component3, int $int4) +cc_deleteall($component0); +cc_deleteall($component1); +cc_deleteall($component2); +~v2_stone_button_filled($component0); +if (~on_mobile = false) { + if_setonmouseleave("league_side_panel_button_hover($component0, 0)", $component0); + if_setonmouseover("league_side_panel_button_hover($component0, 1)", $component0); +} +if_setonop("button_select_sound", $component0); +~v2_stone_button_filled($component1); +if (~on_mobile = false) { + if_setonmouseleave("league_side_panel_button_hover($component1, 0)", $component1); + if_setonmouseover("league_side_panel_button_hover($component1, 1)", $component1); +} +if_setonop("button_select_sound", $component1); +~v2_stone_button_filled($component2); +if (~on_mobile = false) { + if_setonmouseleave("league_side_panel_button_hover($component2, 0)", $component2); + if_setonmouseover("league_side_panel_button_hover($component2, 1)", $component2); +} +~v2_stone_button_filled($component3); +if (~on_mobile = false) { + if_setonmouseleave("league_side_panel_button_hover($component3, 0)", $component3); + if_setonmouseover("league_side_panel_button_hover($component3, 1)", $component3); +} +def_struct $struct5 = enum(int, struct, enum_2670, %varbit10032); +def_int $colour6 = 0xff981f; +if ($struct5 ! null) { + if_setgraphic(struct_param($struct5, param_1024), interface_736:10); + if_setgraphic(struct_param($struct5, param_1025), interface_736:9); + $colour6 = struct_param($struct5, param_1027); +} +if_setcolour($colour6, interface_736:2); +if_setcolour($colour6, interface_736:6); +if_setcolour($colour6, interface_736:12); +if_setcolour($colour6, interface_736:14); +if_setcolour($colour6, interface_736:16); +def_string $string0 = "Display Fragments"; +def_component $component7 = interface_736:33; +def_component $component8 = interface_736:32; +if_setopbase("<$string0>", $component8); +if_setsize(calc(parawidth($string0, 190, p11_full) + 20), if_getheight($component8), ^setsize_abs, ^setsize_abs, $component8); +cc_create($component8, ^iftype_graphic, 0); +cc_setsize(17, 17, ^setsize_abs, ^setsize_abs); +cc_setposition(0, 5, ^setpos_abs_left, ^setpos_abs_top); +.cc_create($component8, ^iftype_text, 1); +.cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +.cc_setposition(0, 1, ^setpos_abs_centre, ^setpos_abs_top); +.cc_setcolour($colour6); +.cc_settextfont(p11_full); +.cc_settextshadow(true); +.cc_settextalign(^settextalign_right, ^settextalign_centre, 0); +.cc_settext($string0); +.cc_setonmouseleave("deltooltip($component7)"); +if (~on_mobile = false) { + if_setonmouseover("cc_colour_swapper(event_com, .cc_getid, ^white)", $component8); + if_setonmouseleave("cc_colour_swapper(event_com, .cc_getid, $colour6)", $component8); +} +~league_side_panel_hudtoggle($component8, $component7); +if_setonvartransmit("league_side_panel_hudtoggle($component8, cc_getid, .cc_getid, $component7){var1734}", $component8); +if_setonop("league_side_panel_hudop(event_opindex, $component8, cc_getid, .cc_getid, $component7)", $component8); +~script5801(interface_736:10, %var2615); +if_setonvartransmit("script5799(interface_736:10){var2615, var3276}", interface_736:9); diff --git a/scripts/[clientscript,script5799].cs2 b/scripts/[clientscript,script5799].cs2 new file mode 100644 index 000000000..1ac38e672 --- /dev/null +++ b/scripts/[clientscript,script5799].cs2 @@ -0,0 +1,3 @@ +// 5799 +[clientscript,script5799](component $component0) +~script5801($component0, %var2615); diff --git a/scripts/[clientscript,script5800].cs2 b/scripts/[clientscript,script5800].cs2 new file mode 100644 index 000000000..8f9edc213 --- /dev/null +++ b/scripts/[clientscript,script5800].cs2 @@ -0,0 +1,3 @@ +// 5800 +[clientscript,script5800](component $component0, int $int1) +~script5801($component0, $int1); diff --git a/scripts/[clientscript,script5804].cs2 b/scripts/[clientscript,script5804].cs2 new file mode 100644 index 000000000..6d84ea393 --- /dev/null +++ b/scripts/[clientscript,script5804].cs2 @@ -0,0 +1,10 @@ +// 5804 +[clientscript,script5804] +if (~on_mobile = false) { + if_setonmouseover("v2_stone_button_in(event_com)", interface_737:6); + if_setonmouseleave("v2_stone_button(event_com)", interface_737:6); + if_setonmouseover("v2_stone_button_in(event_com)", interface_737:11); + if_setonmouseleave("v2_stone_button(event_com)", interface_737:11); + if_setonmouseover("v2_stone_button_in(event_com)", interface_737:16); + if_setonmouseleave("v2_stone_button(event_com)", interface_737:16); +} diff --git a/scripts/[clientscript,script5805].cs2 b/scripts/[clientscript,script5805].cs2 new file mode 100644 index 000000000..dcf8a24bd --- /dev/null +++ b/scripts/[clientscript,script5805].cs2 @@ -0,0 +1,52 @@ +// 5805 +[clientscript,script5805] +if (%var3345 < 1) { + if_sethide(true, interface_737:20); + return; +} +def_int $colour0 = ~script5465(3); +def_graphic $graphic1 = null; +def_string $string0 = ""; +def_string $string1 = ""; +def_string $string2 = ""; +def_int $int2 = 0; +if (%var3345 = 1) { + $string0, $string1, $string2, $graphic1 = "Unwavering Warrior", "Unholy Warrior", "Improved Melee Accuracy
on 0 Prayer", "graphic_4236"; +} +if (%var3345 = 2) { + $string0, $string1, $string2, $graphic1 = "Focused Ranger", "Bottomless Quiver", "Chance to save Ammo and Ranged Weapon Charges.", "graphic_4239"; +} +if (%var3345 = 3) { + $string0, $string1, $string2, $graphic1 = "Masterful Wizard", "Arcane Conduit", "Chance to save Runes and Magic Weapon Charges.", "graphic_4241"; +} +if_sethide(false, interface_737:20); +cc_deleteall(interface_737:22); +$int2 = ~steelbox(interface_737:22, $int2, 1); +cc_create(interface_737:22, ^iftype_text, $int2); +cc_setposition(16, 16, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(32, 40, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_top, 20); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($colour0); +cc_settext("Are you sure you wish to become a:
<$string0>
Other combat skills and Fragments may still be unlocked later."); +$int2 = calc($int2 + 1); +~create_graphic(interface_737:22, $int2, $graphic1, 0, -15, ^setpos_abs_centre, ^setpos_abs_centre, 50, 50, ^setsize_abs, ^setsize_abs); +$int2 = calc($int2 + 1); +cc_create(interface_737:22, ^iftype_text, $int2); +cc_setposition(16, 165, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(32, 40, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_top, 20); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($colour0); +cc_settext("<$string1> Fragment:
<$string2>"); +$int2 = calc($int2 + 1); +~script5820(interface_737:23, 0, 0, 0, if_getwidth(interface_737:23), if_getheight(interface_737:23), struct_3927); +~script5820(interface_737:26, 0, 0, 0, if_getwidth(interface_737:26), if_getheight(interface_737:26), struct_3924); +if (~on_mobile = false) { + if_setonmouseover("script5821(interface_737:23, 0, struct_3929)", interface_737:23); + if_setonmouseover("script5821(interface_737:26, 0, struct_3926)", interface_737:26); + if_setonmouseleave("script5821(interface_737:23, 0, struct_3927)", interface_737:23); + if_setonmouseleave("script5821(interface_737:26, 0, struct_3924)", interface_737:26); +} diff --git a/scripts/[clientscript,script5806].cs2 b/scripts/[clientscript,script5806].cs2 new file mode 100644 index 000000000..4eadd9145 --- /dev/null +++ b/scripts/[clientscript,script5806].cs2 @@ -0,0 +1,8 @@ +// 5806 +[clientscript,script5806](component $component0, component $component1, component $component2, component $component3, component $component4, int $int5, int $int6, int $int7, int $int8, int $int9) +~leagues_close_button($component3, false); +def_string $text0 = "League Unlocks"; +def_int $comsubid10 = ~steelborder(interface_733:2, $text0, 1); +if_sethide(true, interface_733:40); +if_sethide(true, interface_733:25); +~script5807($component0, $component1, $component2, $component4, $comsubid10); diff --git a/scripts/[clientscript,script5809].cs2 b/scripts/[clientscript,script5809].cs2 new file mode 100644 index 000000000..e9c8eb8ff --- /dev/null +++ b/scripts/[clientscript,script5809].cs2 @@ -0,0 +1,3 @@ +// 5809 +[clientscript,script5809](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +~script5811($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7); diff --git a/scripts/[clientscript,script5810].cs2 b/scripts/[clientscript,script5810].cs2 new file mode 100644 index 000000000..8836bfc86 --- /dev/null +++ b/scripts/[clientscript,script5810].cs2 @@ -0,0 +1,4 @@ +// 5810 +[clientscript,script5810](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +sound_synth(interface_select1, 1, 0); +~script5811($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7); diff --git a/scripts/[clientscript,script5818].cs2 b/scripts/[clientscript,script5818].cs2 new file mode 100644 index 000000000..c07503f81 --- /dev/null +++ b/scripts/[clientscript,script5818].cs2 @@ -0,0 +1,3 @@ +// 5818 +[clientscript,script5818](component $component0, int $int1, int $int2, int $int3) +~script5819($component0, $int1, $int2, $int3); diff --git a/scripts/[clientscript,script5821].cs2 b/scripts/[clientscript,script5821].cs2 new file mode 100644 index 000000000..9acccbb43 --- /dev/null +++ b/scripts/[clientscript,script5821].cs2 @@ -0,0 +1,53 @@ +// 5821 +[clientscript,script5821](component $component0, int $int1, struct $struct2) +if (cc_find($component0, calc($int1 + 0)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1391)); +} +if (cc_find($component0, calc($int1 + 1)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1388)); +} +if (cc_find($component0, calc($int1 + 2)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1388)); +} +if (cc_find($component0, calc($int1 + 3)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1474)); +} +if (cc_find($component0, calc($int1 + 4)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1394)); +} +if (cc_find($component0, calc($int1 + 5)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1394)); +} +if (cc_find($component0, calc($int1 + 6)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1477)); +} +if (cc_find($component0, calc($int1 + 7)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1390)); +} +if (cc_find($component0, calc($int1 + 8)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1390)); +} +if (cc_find($component0, calc($int1 + 9)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1475)); +} +if (cc_find($component0, calc($int1 + 10)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1392)); +} +if (cc_find($component0, calc($int1 + 11)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1392)); +} +if (cc_find($component0, calc($int1 + 12)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1476)); +} +if (cc_find($component0, calc($int1 + 13)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1387)); +} +if (cc_find($component0, calc($int1 + 14)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1389)); +} +if (cc_find($component0, calc($int1 + 15)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1393)); +} +if (cc_find($component0, calc($int1 + 16)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1395)); +} diff --git a/scripts/[clientscript,script5823].cs2 b/scripts/[clientscript,script5823].cs2 new file mode 100644 index 000000000..daae896a8 --- /dev/null +++ b/scripts/[clientscript,script5823].cs2 @@ -0,0 +1,80 @@ +// 5823 +[clientscript,script5823] +def_int $colour0 = ~script5465(3); +sound_synth(interface_select1, 1, 0); +if_sethide(false, interface_733:25); +def_struct $struct1 = enum(int, struct, enum_4131, calc(%var3344 - 1)); +def_string $string0 = ""; +def_int $int2 = 0; +$string0, $int2 = ~script5834($struct1); +cc_deleteall(interface_733:26); +def_int $int3 = 0; +$int3 = ~steelbox(interface_733:26, $int3, 1); +cc_create(interface_733:26, ^iftype_text, $int3); +cc_setposition(10, 13, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(228, 20, ^setsize_abs, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 15); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($colour0); +cc_settext(" - Quest List"); +$int3 = calc($int3 + 1); +if_settext("Full list of everything that will be auto-completed. Anything already completed will reduce the cost.", interface_733:29); +cc_deleteall(interface_733:35); +$int3 = 0; +def_int $int4 = 0; +def_int $index5 = 0; +def_int $int6 = 20; +def_int $int7 = string_indexof_string($string0, "br>", $index5); +while ($int7 ! -1) { + cc_create(interface_733:35, ^iftype_rectangle, $int3); + cc_setposition(0, calc($int4 * $int6), ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(0, $int6, ^setsize_minus, ^setsize_abs); + cc_setfill(true); + cc_setcolour(^black); + if (calc($int4 % 2) = 0) { + cc_settrans(200); + } else { + cc_settrans(220); + } + $int3 = calc($int3 + 1); + cc_create(interface_733:35, ^iftype_text, $int3); + cc_setposition(5, calc($int4 * $int6), ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(5, $int6, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_centre, $int6); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_settext(substring($string0, $index5, calc($int7 - 1))); + $int3 = calc($int3 + 1); + $int4 = calc($int4 + 1); + $int7 = calc($int7 + 3); + $index5 = $int7; + $int7 = string_indexof_string($string0, "br>", $index5); +} +cc_deleteall(interface_733:33); +if_setscrollpos(0, 0, interface_733:35); +if ($int2 > 8) { + if_setscrollsize(0, calc($int2 * $int6), interface_733:35); +} else { + if_setscrollsize(0, 0, interface_733:35); + cc_create(interface_733:35, ^iftype_rectangle, $int3); + cc_setposition(0, calc($int6 * $int4), ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(0, calc($int6 * $int4), ^setsize_minus, ^setsize_minus); + cc_setfill(true); + cc_setcolour(^black); + if (calc($int4 % 2) = 0) { + cc_settrans(200); + } else { + cc_settrans(220); + } +} +~scrollbar_vertical(interface_733:33, interface_733:35, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +if (cc_find(interface_733:33, 1) = ^true) { + ~scrollbar_vertical_setdragger(interface_733:33, interface_733:35); +} +if_settext(struct_param($struct1, param_1446), interface_733:32); +~script5820(interface_733:36, 0, 0, 0, if_getwidth(interface_733:36), if_getheight(interface_733:36), struct_3927); +if (~on_mobile = false) { + if_setonmouseover("script5821(interface_733:36, 0, struct_3929)", interface_733:36); + if_setonmouseleave("script5821(interface_733:36, 0, struct_3927)", interface_733:36); +} diff --git a/scripts/[clientscript,script5824].cs2 b/scripts/[clientscript,script5824].cs2 new file mode 100644 index 000000000..3b731d756 --- /dev/null +++ b/scripts/[clientscript,script5824].cs2 @@ -0,0 +1,4 @@ +// 5824 +[clientscript,script5824] +sound_synth(interface_select1, 1, 0); +if_sethide(true, interface_733:25); diff --git a/scripts/[clientscript,script5825].cs2 b/scripts/[clientscript,script5825].cs2 new file mode 100644 index 000000000..39c6e63a9 --- /dev/null +++ b/scripts/[clientscript,script5825].cs2 @@ -0,0 +1,4 @@ +// 5825 +[clientscript,script5825](component $component0) +sound_synth(interface_select1, 1, 0); +~script5827($component0); diff --git a/scripts/[clientscript,script5826].cs2 b/scripts/[clientscript,script5826].cs2 new file mode 100644 index 000000000..1186873cd --- /dev/null +++ b/scripts/[clientscript,script5826].cs2 @@ -0,0 +1,3 @@ +// 5826 +[clientscript,script5826](component $component0) +~script5827($component0); diff --git a/scripts/[clientscript,script5828].cs2 b/scripts/[clientscript,script5828].cs2 new file mode 100644 index 000000000..7e9023489 --- /dev/null +++ b/scripts/[clientscript,script5828].cs2 @@ -0,0 +1,4 @@ +// 5828 +[clientscript,script5828] +sound_synth(interface_select1, 1, 0); +if_sethide(true, interface_733:40); diff --git a/scripts/[clientscript,script5829].cs2 b/scripts/[clientscript,script5829].cs2 new file mode 100644 index 000000000..e6d441fe1 --- /dev/null +++ b/scripts/[clientscript,script5829].cs2 @@ -0,0 +1,3 @@ +// 5829 +[clientscript,script5829](component $component0) +if_settext(tostring(%var3276), $component0); diff --git a/scripts/[clientscript,script5835].cs2 b/scripts/[clientscript,script5835].cs2 new file mode 100644 index 000000000..2b90ee00a --- /dev/null +++ b/scripts/[clientscript,script5835].cs2 @@ -0,0 +1,4 @@ +// 5835 +[clientscript,script5835] +if_setposition(0, 424, ^setpos_abs_centre, ^setpos_abs_top, interface_734:12); +if_setmodelangle(0, -20, 514, 0, 0, 819, interface_734:5); diff --git a/scripts/[clientscript,script5836].cs2 b/scripts/[clientscript,script5836].cs2 new file mode 100644 index 000000000..db33240c1 --- /dev/null +++ b/scripts/[clientscript,script5836].cs2 @@ -0,0 +1,4 @@ +// 5836 +[clientscript,script5836] +%varcint967 = 1; +~script5838(0); diff --git a/scripts/[clientscript,script5837].cs2 b/scripts/[clientscript,script5837].cs2 new file mode 100644 index 000000000..30fecae17 --- /dev/null +++ b/scripts/[clientscript,script5837].cs2 @@ -0,0 +1,4 @@ +// 5837 +[clientscript,script5837](int $int0) +sound_synth(interface_select1, 1, 0); +~script5838($int0); diff --git a/scripts/[clientscript,script5839].cs2 b/scripts/[clientscript,script5839].cs2 new file mode 100644 index 000000000..b7195dc82 --- /dev/null +++ b/scripts/[clientscript,script5839].cs2 @@ -0,0 +1,3 @@ +// 5839 +[clientscript,script5839] +_3209(7, 25); diff --git a/scripts/[clientscript,script5840].cs2 b/scripts/[clientscript,script5840].cs2 new file mode 100644 index 000000000..d8730c252 --- /dev/null +++ b/scripts/[clientscript,script5840].cs2 @@ -0,0 +1,6 @@ +// 5840 +[clientscript,script5840] +~setvolumemusic; +~setvolumesounds; +~setvolumeareasounds; +%varcint967 = 0; diff --git a/scripts/[clientscript,script5841].cs2 b/scripts/[clientscript,script5841].cs2 new file mode 100644 index 000000000..dca01577d --- /dev/null +++ b/scripts/[clientscript,script5841].cs2 @@ -0,0 +1,32 @@ +// 5841 +[clientscript,script5841](component $component0, int $int1, struct $struct2, int $colour3) +if (cc_find($component0, $int1) = ^true) { + cc_setcolour($colour3); +} +if (cc_find($component0, calc($int1 + 1)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1391)); +} +if (cc_find($component0, calc($int1 + 2)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1388)); +} +if (cc_find($component0, calc($int1 + 3)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1394)); +} +if (cc_find($component0, calc($int1 + 4)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1390)); +} +if (cc_find($component0, calc($int1 + 5)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1392)); +} +if (cc_find($component0, calc($int1 + 6)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1387)); +} +if (cc_find($component0, calc($int1 + 7)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1389)); +} +if (cc_find($component0, calc($int1 + 8)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1393)); +} +if (cc_find($component0, calc($int1 + 9)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1395)); +} diff --git a/scripts/[clientscript,script5842].cs2 b/scripts/[clientscript,script5842].cs2 new file mode 100644 index 000000000..6f7e7878c --- /dev/null +++ b/scripts/[clientscript,script5842].cs2 @@ -0,0 +1,5 @@ +// 5842 +[clientscript,script5842](boolean $boolean0, component $component1, int $comsubid2) +if (~on_mobile = false & cc_find($component1, $comsubid2) = ^true) { + cc_sethide($boolean0); +} diff --git a/scripts/[clientscript,script5843].cs2 b/scripts/[clientscript,script5843].cs2 new file mode 100644 index 000000000..01caaa92b --- /dev/null +++ b/scripts/[clientscript,script5843].cs2 @@ -0,0 +1,11 @@ +// 5843 +[clientscript,script5843](component $component0, int $trans1, int $int2) +if ($int2 = 0) { + return; +} +if ($trans1 < 0) { + $trans1 = 0; +} else if ($trans1 > 255) { + $trans1 = 255; +} +if_setontimer("script5844(event_com, $trans1, $int2)", $component0); diff --git a/scripts/[clientscript,script5844].cs2 b/scripts/[clientscript,script5844].cs2 new file mode 100644 index 000000000..9b0425e63 --- /dev/null +++ b/scripts/[clientscript,script5844].cs2 @@ -0,0 +1,15 @@ +// 5844 +[clientscript,script5844](component $component0, int $trans1, int $int2) +def_int $trans3 = calc(if_gettrans($component0) + $int2); +if ($int2 < 0) { + if ($trans3 < $trans1) { + if_settrans($trans1, $component0); + if_setontimer(null, $component0); + return; + } +} else if ($trans3 > $trans1) { + if_settrans($trans1, $component0); + if_setontimer(null, $component0); + return; +} +if_settrans($trans3, $component0); diff --git a/scripts/[clientscript,script883].cs2 b/scripts/[clientscript,script883].cs2 index b357d3825..74c827be8 100644 --- a/scripts/[clientscript,script883].cs2 +++ b/scripts/[clientscript,script883].cs2 @@ -13,7 +13,7 @@ if (cc_find(interface_676:18, $comsubid0) = ^true) { cc_settext($text2); } if (cc_find(interface_676:16, $comsubid0) = ^true) { - cc_setgraphic(struct_param(enum(int, struct, enum_2670, 2), param_1144)); + cc_setgraphic(struct_param(enum(int, struct, enum_2670, 3), param_1144)); if (string_length($string1) > 0) { cc_setposition(0, calc(cc_gety - 5), ^setpos_abs_centre, ^setpos_abs_top); } diff --git a/scripts/[clientscript,script885].cs2 b/scripts/[clientscript,script885].cs2 index ca4cfad52..85d104eac 100644 --- a/scripts/[clientscript,script885].cs2 +++ b/scripts/[clientscript,script885].cs2 @@ -33,7 +33,7 @@ cc_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_top); cc_settextfont(p11_full); cc_settextshadow(true); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -~script1109($component1, 2); +~script1109($component1, 3); if_sethide(true, $component2); .cc_setonclick("script886($component0, $component1, $int6, $component2, $component3, $int4)"); ~league_setup_display_hoveroff($component1, $int4); diff --git a/scripts/[clientscript,stats_init].cs2 b/scripts/[clientscript,stats_init].cs2 index 9e11c15e0..32cef3077 100644 --- a/scripts/[clientscript,stats_init].cs2 +++ b/scripts/[clientscript,stats_init].cs2 @@ -1,10 +1,15 @@ // 393 [clientscript,stats_init](component $component0, component $component1, int $int2, int $int3) -def_string $string0 = enum(int, string, enum_108, $int2); def_stat $stat4 = enum(int, stat, enum_681, $int2); -def_boolean $boolean5 = enum(stat, boolean, enum_1497, $stat4); +def_int $int5 = 1; +def_string $string0 = enum(int, string, enum_108, $int2); +def_boolean $boolean6 = enum(stat, boolean, enum_1497, $stat4); cc_deleteall($component0); cc_create($component0, ^iftype_graphic, 0); +if (~league_world = 1 & %varbit10032 = 3) { + $int5 = ~script5830($stat4); + cc_setonvartransmit("stats_init($component0, $component1, $int2, $int3){var3278}"); +} cc_setposition(-2, -2, ^setpos_abs_left, ^setpos_abs_top); cc_setsize(36, 36, ^setsize_abs, ^setsize_abs); cc_setgraphic("miscgraphics,4"); @@ -41,7 +46,10 @@ if (~on_mobile = true) { if_setonstattransmit("stats_setlevels($stat4, $component0, $string0, cc_getid, .cc_getid, $component1){$stat4, attack, strength, defence, ranged, magic}", $component0); if_setonvartransmit("stats_setlevels($stat4, $component0, $string0, cc_getid, .cc_getid, $component1){var427, var1588, var1437, var1438, var1439, var1436, var1435, var1440, var1453, var1447, var1452, var1443, var1449, var1441, var1442, var1444, var1450, var1457, var1445, var1446, var1454, var1455, var1456, var1451, var1448}", $component0); ~stats_setlevels($stat4, $component0, $string0, $component1); -if ($boolean5 = false | map_members = ^true | %varcint103 = 1) { +if (~league_world = 0 & ($boolean6 = false | map_members = ^true | %varcint103 = 1)) { + return; +} +if (%varbit10032 = 3 & $int5 = 1) { return; } cc_create($component0, ^iftype_graphic, 6); diff --git a/scripts/[clientscript,xpdrops_fake].cs2 b/scripts/[clientscript,xpdrops_fake].cs2 index 0662ddc14..0615bbf44 100644 --- a/scripts/[clientscript,xpdrops_fake].cs2 +++ b/scripts/[clientscript,xpdrops_fake].cs2 @@ -1,33 +1,40 @@ // 2091 -[clientscript,xpdrops_fake](stat $stat0, int $z1) -if (enum(int, stat, enum_681, coordx(%varcint207)) = $stat0) { - %varcint207 = movecoord(%varcint207, 0, 0, $z1); -} else if (enum(int, stat, enum_681, coordx(%varcint208)) = $stat0) { - %varcint208 = movecoord(%varcint208, 0, 0, $z1); -} else if (enum(int, stat, enum_681, coordx(%varcint209)) = $stat0) { - %varcint209 = movecoord(%varcint209, 0, 0, $z1); -} else if (enum(int, stat, enum_681, coordx(%varcint210)) = $stat0) { - %varcint210 = movecoord(%varcint210, 0, 0, $z1); -} else if (enum(int, stat, enum_681, coordx(%varcint211)) = $stat0) { - %varcint211 = movecoord(%varcint211, 0, 0, $z1); -} else if (enum(int, stat, enum_681, coordx(%varcint212)) = $stat0) { - %varcint212 = movecoord(%varcint212, 0, 0, $z1); -} else if (enum(int, stat, enum_681, coordx(%varcint213)) = $stat0) { - %varcint213 = movecoord(%varcint213, 0, 0, $z1); -} else if ($stat0 = hitpoints & $z1 = 20000001) { - %varcint207 = 1_1_1_1_1; -} else if (%varcint207 = null) { - %varcint207 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); -} else if (%varcint208 = null) { - %varcint208 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); -} else if (%varcint209 = null) { - %varcint209 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); -} else if (%varcint210 = null) { - %varcint210 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); -} else if (%varcint211 = null) { - %varcint211 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); -} else if (%varcint212 = null) { - %varcint212 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); -} else if (%varcint213 = null) { - %varcint213 = movecoord(0_0_0_0_0, enum(stat, int, enum_81, $stat0), 0, $z1); +[clientscript,xpdrops_fake](stat $stat0, int $int1) +if (enum(int, stat, enum_681, %varcint953) = $stat0) { + %varcint960 = calc(%varcint960 + $int1); +} else if (enum(int, stat, enum_681, %varcint954) = $stat0) { + %varcint961 = calc(%varcint961 + $int1); +} else if (enum(int, stat, enum_681, %varcint955) = $stat0) { + %varcint962 = calc(%varcint962 + $int1); +} else if (enum(int, stat, enum_681, %varcint956) = $stat0) { + %varcint963 = calc(%varcint963 + $int1); +} else if (enum(int, stat, enum_681, %varcint957) = $stat0) { + %varcint964 = calc(%varcint964 + $int1); +} else if (enum(int, stat, enum_681, %varcint958) = $stat0) { + %varcint965 = calc(%varcint965 + $int1); +} else if (enum(int, stat, enum_681, %varcint959) = $stat0) { + %varcint966 = calc(%varcint966 + $int1); +} else if ($stat0 = hitpoints & $int1 = 20000001) { + %varcint960 = -10; +} else if (%varcint953 = -1) { + %varcint953 = enum(stat, int, enum_81, $stat0); + %varcint960 = $int1; +} else if (%varcint954 = -1) { + %varcint954 = enum(stat, int, enum_81, $stat0); + %varcint961 = $int1; +} else if (%varcint955 = -1) { + %varcint955 = enum(stat, int, enum_81, $stat0); + %varcint962 = $int1; +} else if (%varcint956 = -1) { + %varcint956 = enum(stat, int, enum_81, $stat0); + %varcint963 = $int1; +} else if (%varcint957 = -1) { + %varcint957 = enum(stat, int, enum_81, $stat0); + %varcint964 = $int1; +} else if (%varcint958 = -1) { + %varcint958 = enum(stat, int, enum_81, $stat0); + %varcint965 = $int1; +} else if (%varcint959 = -1) { + %varcint959 = enum(stat, int, enum_81, $stat0); + %varcint966 = $int1; } diff --git a/scripts/[clientscript,xpdrops_init].cs2 b/scripts/[clientscript,xpdrops_init].cs2 index 5e195d8a1..be616bf24 100644 --- a/scripts/[clientscript,xpdrops_init].cs2 +++ b/scripts/[clientscript,xpdrops_init].cs2 @@ -2,7 +2,8 @@ [clientscript,xpdrops_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10) ~script2511($component1, $component2, $component4); %varcint70, %varcint71 = 0, 0; -%varcint207, %varcint208, %varcint209, %varcint210, %varcint211, %varcint212, %varcint213 = null, null, null, null, null, null, null; +%varcint953, %varcint954, %varcint955, %varcint956, %varcint957, %varcint958, %varcint959 = -1, -1, -1, -1, -1, -1, -1; +%varcint960, %varcint961, %varcint962, %varcint963, %varcint964, %varcint965, %varcint966 = -1, -1, -1, -1, -1, -1, -1; if (%varcint76 <= 0) { %varcint76 = clientclock; } diff --git a/scripts/[clientscript,xpdrops_stattransmit].cs2 b/scripts/[clientscript,xpdrops_stattransmit].cs2 index bd537af89..6fbb664a0 100644 --- a/scripts/[clientscript,xpdrops_stattransmit].cs2 +++ b/scripts/[clientscript,xpdrops_stattransmit].cs2 @@ -1,6 +1,6 @@ // 1004 [clientscript,xpdrops_stattransmit](boolean $boolean0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, int $int10, int $xp11, int $xp12, int $xp13, int $xp14, int $xp15, int $xp16, int $xp17, int $xp18, int $xp19, int $xp20, int $xp21, int $xp22, int $xp23, int $xp24, int $xp25, int $xp26, int $xp27, int $xp28, int $xp29, int $xp30, int $xp31, int $xp32, int $xp33) -if ($boolean0 = true & %varcint207 = null) { +if ($boolean0 = true & %varcint953 = -1) { return; } def_int $length34 = calc(23 + 1); @@ -9,17 +9,18 @@ def_int $intarray1($length34); def_int $int35 = 0; def_int $int36 = 0; if ($boolean0 = true) { - while (%varcint207 ! null) { - if (%varcint207 = 1_1_1_1_1) { + while (%varcint953 ! -1) { + if (%varcint960 = -10) { ~xpdrops_showpanel($component1, $component3, $component8, $component9); } else { - $statarray0($int35) = enum(int, stat, enum_681, coordx(%varcint207)); - $intarray1($int35) = coordz(%varcint207); + $statarray0($int35) = enum(int, stat, enum_681, %varcint953); + $intarray1($int35) = %varcint960; if ($statarray0($int35) ! null & $intarray1($int35) > 0) { $int35 = calc($int35 + 1); } } - %varcint207, %varcint208, %varcint209, %varcint210, %varcint211, %varcint212, %varcint213 = %varcint208, %varcint209, %varcint210, %varcint211, %varcint212, %varcint213, null; + %varcint953, %varcint954, %varcint955, %varcint956, %varcint957, %varcint958, %varcint959 = %varcint954, %varcint955, %varcint956, %varcint957, %varcint958, %varcint959, -1; + %varcint960, %varcint961, %varcint962, %varcint963, %varcint964, %varcint965, %varcint966 = %varcint961, %varcint962, %varcint963, %varcint964, %varcint965, %varcint966, -1; } } else { $int36 = calc(stat_xp(fishing) - $xp25); diff --git a/scripts/[proc,buff_bar_buff_amount].cs2 b/scripts/[proc,buff_bar_buff_amount].cs2 index 1a8049a70..b81e8df0e 100644 --- a/scripts/[proc,buff_bar_buff_amount].cs2 +++ b/scripts/[proc,buff_bar_buff_amount].cs2 @@ -1,12 +1,12 @@ // 4669 [proc,buff_bar_buff_amount]()(int) def_int $int0 = 0; -def_int $int1 = calc(9 - 1); +def_int $int1 = calc(10 - 1); def_int $int2 = 0; while ($int2 = 0) { if (cc_find(interface_651:4, $int1) = ^true) { $int0 = calc($int0 + 1); - $int1 = calc($int1 + 9); + $int1 = calc($int1 + 10); } else { return($int0); } diff --git a/scripts/[proc,buff_bar_buff_create].cs2 b/scripts/[proc,buff_bar_buff_create].cs2 index 7251a4756..7b97856e8 100644 --- a/scripts/[proc,buff_bar_buff_create].cs2 +++ b/scripts/[proc,buff_bar_buff_create].cs2 @@ -31,7 +31,7 @@ def_int $int12 = 0; def_int $int13 = 0; def_int $trans14 = enum(int, int, enum_2653, $int11); $int12, $int13 = ~buff_bar_buff_position($component0, $int1); -$int1 = calc($int1 * 9); +$int1 = calc($int1 * 10); if ($int12 < 0 | $int13 < 0) { return(0); } @@ -76,7 +76,12 @@ def_int $int15 = calc(coordx(struct_param($struct3, param_1280)) % 64); def_int $int16 = calc(coordz(struct_param($struct3, param_1280)) % 64); cc_setposition(calc($int12 + 1 + (37 - 5) / 2 - $int15 / 2 + coordx(struct_param($struct3, param_1284)) % 64), calc($int13 + 1 + (37 - 5) / 2 - $int16 / 2 + coordz(struct_param($struct3, param_1284)) % 64), ^setpos_abs_left, ^setpos_abs_bottom); cc_setsize($int15, $int16, ^setsize_abs, ^setsize_abs); -def_graphic $graphic17 = struct_param($struct3, param_1278); +def_graphic $graphic17 = null; +if (struct_param($struct3, param_1480) = true) { + $graphic17 = ~script5847($int5); +} else { + $graphic17 = struct_param($struct3, param_1278); +} if (struct_param($struct3, param_1285) ! null & $int4 ! -1) { $graphic17 = enum(int, graphic, struct_param($struct3, param_1285), $int4); } @@ -87,6 +92,23 @@ if ($graphic17 ! null) { cc_setobject_nonum(oc_uncert($obj10), 100000); } $int1 = calc($int1 + 1); +cc_create($component0, ^iftype_graphic, $int1); +$int15 = calc(coordx(struct_param($struct3, param_1483)) % 64); +$int16 = calc(coordz(struct_param($struct3, param_1483)) % 64); +cc_setposition(calc($int12 + 1 + (37 - 5) / 2 - $int15 / 2 + coordx(struct_param($struct3, param_1484)) % 64), calc($int13 + 1 + (37 - 5) / 2 - $int16 / 2 + coordz(struct_param($struct3, param_1484)) % 64), ^setpos_abs_left, ^setpos_abs_bottom); +cc_setsize($int15, $int16, ^setsize_abs, ^setsize_abs); +$graphic17 = null; +if (struct_param($struct3, param_1481) = true) { + $graphic17 = ~script5848($int5); +} else { + $graphic17 = struct_param($struct3, param_1479); +} +if ($graphic17 ! null) { + cc_setgraphic($graphic17); +} else { + cc_sethide(true); +} +$int1 = calc($int1 + 1); cc_create($component0, ^iftype_text, $int1); cc_setposition($int12, calc($int13 + 1), ^setpos_abs_left, ^setpos_abs_bottom); cc_setsize(calc(37 - 3), 12, ^setsize_abs, ^setsize_abs); @@ -117,6 +139,7 @@ cc_setcolour(^white); cc_settextfont(p11_full); cc_settextshadow(true); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +def_int $int18 = $int5; $int5 = struct_param($struct3, param_1409); $int6 = struct_param($struct3, param_1410); $int8 = 0; @@ -148,5 +171,9 @@ if (struct_param($struct3, param_1411) = true) { ~buff_bar_get_transmit($int5, $int6, $struct3, ~script4681($int5), $component0, $component2, $int1); } $int1 = calc($int1 + 1); -~buff_bar_buff_create_tooltip($component0, $int1, $component2, struct_param($struct3, param_1279), $int12, $int13); +if (struct_param($struct3, param_1482) = true) { + ~buff_bar_buff_create_tooltip($component0, $int1, $component2, ~script5846($int18), $int12, $int13); +} else { + ~buff_bar_buff_create_tooltip($component0, $int1, $component2, struct_param($struct3, param_1279), $int12, $int13); +} return(1); diff --git a/scripts/[proc,buff_bar_position_review].cs2 b/scripts/[proc,buff_bar_position_review].cs2 index b1e73c6bb..7df14fcff 100644 --- a/scripts/[proc,buff_bar_position_review].cs2 +++ b/scripts/[proc,buff_bar_position_review].cs2 @@ -13,7 +13,7 @@ if ($clock4 ! %varcint384) { $enum5 = ~toplevel_getcomponents; if ($enum5 = enum_1745) { $x6 = 1; - $y7 = 1; + $y7 = 94; $width8 = 91; $height9 = 249; $setposh12 = ^setpos_abs_right; diff --git a/scripts/[proc,dynamic_stone_button_filled].cs2 b/scripts/[proc,dynamic_stone_button_filled].cs2 index ab7656331..bdc27111f 100644 --- a/scripts/[proc,dynamic_stone_button_filled].cs2 +++ b/scripts/[proc,dynamic_stone_button_filled].cs2 @@ -1,57 +1,3 @@ // 4849 [proc,dynamic_stone_button_filled](component $component0, component $component1, string $string0, int $int2, int $int3, int $int4, int $int5, int $int6, int $comsubid7, int $int8)(int) -def_int $int9 = calc($int4 - 9); -def_int $int10 = calc($int5 - 9); -def_int $width11 = calc($int4 - 18); -def_int $height12 = calc($int5 - 18); -~create_graphic($component0, $int6, "tradebacking", $int2, $int3, ^setpos_abs_left, ^setpos_abs_top, $int4, $int5, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(1 + $int6), "v2_stone_button,0", $int2, $int3, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(2 + $int6), "v2_stone_button,1", calc($int2 + $int9), $int3, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(3 + $int6), "v2_stone_button,2", $int2, calc($int3 + $int10), ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(4 + $int6), "v2_stone_button,3", calc($int2 + $int9), calc($int3 + $int10), ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(5 + $int6), "v2_stone_button,4", $int2, calc($int3 + 9), ^setpos_abs_left, ^setpos_abs_top, 9, $height12, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(6 + $int6), "v2_stone_button,5", calc($int2 + 9), $int3, ^setpos_abs_left, ^setpos_abs_top, $width11, 9, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(7 + $int6), "v2_stone_button,6", calc($int2 + $int9), calc($int3 + 9), ^setpos_abs_left, ^setpos_abs_top, 9, $height12, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc(8 + $int6), "v2_stone_button,7", calc($int2 + 9), calc($int3 + $int10), ^setpos_abs_left, ^setpos_abs_top, $width11, 9, ^setsize_abs, ^setsize_abs); -def_int $int13 = ~max($int4, 26); -def_int $int14 = ~max($int5, 26); -def_int $x15 = calc($int2 - ($int13 - $int4) / 2); -def_int $y16 = calc($int3 - ($int14 - $int5) / 2); -def_boolean $boolean17 = false; -if ($int8 = 1 & $component1 ! null) { - $boolean17 = ~on_mobile; - cc_create($component1, ^iftype_rectangle, $comsubid7); - if ($boolean17 = true) { - cc_setsize($int13, $int14, ^setsize_abs, ^setsize_abs); - } else { - cc_setsize($int4, $int5, ^setsize_abs, ^setsize_abs); - } - if ($boolean17 = true) { - cc_setposition($x15, $y16, ^setpos_abs_left, ^setpos_abs_top); - } else { - cc_setposition($int2, $int3, ^setpos_abs_left, ^setpos_abs_top); - } - if ($boolean17 = false) { - cc_setonmouseover("v2_stone_button_in_filled_free($component0, $int6, ^white)"); - cc_setonmouseleave("v2_stone_button_filled_free($component0, $int6, 0xdfdfdf)"); - } else { - cc_setonclick("v2_stone_button_in_filled_free($component0, $int6, ^white)"); - } - cc_settrans(255); -} -if (string_length($string0) > 0) { - cc_create($component0, ^iftype_text, calc(9 + $int6)); - cc_setsize($int4, $int5, ^setsize_abs, ^setsize_abs); - cc_setposition($int2, $int3, ^setpos_abs_left, ^setpos_abs_top); - cc_settext($string0); - cc_settextfont(p11_full); - cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_settextshadow(true); - if ($int8 = 1) { - cc_setcolour(0xdfdfdf); - } else { - cc_setcolour(0x969696); - } - return(calc(10 + $int6)); -} -return(calc(9 + $int6)); +return(~script5845($component0, $component1, $string0, p11_full, 0xdfdfdf, ^white, 0x969696, $int2, $int3, $int4, $int5, $int6, $comsubid7, $int8)); diff --git a/scripts/[proc,emote_checkunlocked].cs2 b/scripts/[proc,emote_checkunlocked].cs2 index 903ade422..71bf37bb3 100644 --- a/scripts/[proc,emote_checkunlocked].cs2 +++ b/scripts/[proc,emote_checkunlocked].cs2 @@ -86,6 +86,8 @@ switch_int ($int0) { return(true); case 6 : return(true); + case 9 : + return(true); case default : return(false); } diff --git a/scripts/[proc,emote_op1_configure].cs2 b/scripts/[proc,emote_op1_configure].cs2 index ea771f8a2..53333940e 100644 --- a/scripts/[proc,emote_op1_configure].cs2 +++ b/scripts/[proc,emote_op1_configure].cs2 @@ -1,3 +1,3 @@ // 4105 [proc,emote_op1_configure](int $int0) -cc_setop(1, enum(int, string, enum_1000, $int0)); +cc_setop(1, ~script5186($int0)); diff --git a/scripts/[proc,emote_op2_configure].cs2 b/scripts/[proc,emote_op2_configure].cs2 index debe4cdbb..c3f4b9490 100644 --- a/scripts/[proc,emote_op2_configure].cs2 +++ b/scripts/[proc,emote_op2_configure].cs2 @@ -1,5 +1,10 @@ // 4106 [proc,emote_op2_configure](int $int0) -if ($int0 = 50 & %varbit11757 = 6) { - cc_setop(2, "Area unlock"); +if ($int0 = 50) { + switch_int (%varbit11757) { + case 6 : + cc_setop(2, "Area unlock"); + case 9 : + cc_setop(2, "Shattered unlock"); + } } diff --git a/scripts/[proc,emote_set_graphic].cs2 b/scripts/[proc,emote_set_graphic].cs2 index 1dfe114cb..a7b95de2b 100644 --- a/scripts/[proc,emote_set_graphic].cs2 +++ b/scripts/[proc,emote_set_graphic].cs2 @@ -7,6 +7,8 @@ if ($int0 = 50) { $graphic1 = "emotes,49"; case 6 : $graphic1 = "emotes,50"; + case 9 : + $graphic1 = "emotes,52"; case default : $graphic1 = "emotes_locked,29"; } diff --git a/scripts/[proc,emote_update].cs2 b/scripts/[proc,emote_update].cs2 index 3b75d8214..c54f65a37 100644 --- a/scripts/[proc,emote_update].cs2 +++ b/scripts/[proc,emote_update].cs2 @@ -1,16 +1,17 @@ // 701 -[proc,emote_update](component $component0) -def_int $int1 = 0; -while ($int1 <= 50) { - if (cc_find($component0, $int1) = ^true) { - if (~emote_checkunlocked($int1) = true) { - ~emote_set_graphic($int1); +[proc,emote_update](component $component0, component $component1) +def_int $int2 = 0; +while ($int2 <= 50) { + if (cc_find($component0, $int2) = ^true) { + if (~emote_checkunlocked($int2) = true) { + ~emote_set_graphic($int2); } else { - cc_setgraphic(enum(int, graphic, enum_1002, $int1)); + cc_setgraphic(enum(int, graphic, enum_1002, $int2)); } cc_clearops; - ~emote_op1_configure($int1); - ~emote_op2_configure($int1); + ~emote_op1_configure($int2); + ~emote_op2_configure($int2); + cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component1, ~script5186($int2), 25, 120)"); } - $int1 = calc($int1 + 1); + $int2 = calc($int2 + 1); } diff --git a/scripts/[proc,health_regen_timer].cs2 b/scripts/[proc,health_regen_timer].cs2 index b6cd20aa2..9da6d348b 100644 --- a/scripts/[proc,health_regen_timer].cs2 +++ b/scripts/[proc,health_regen_timer].cs2 @@ -20,6 +20,9 @@ if (~league_relic_active(endless_endurance_725) = 1) { if (~league_relic_active(fluid_strikes_1729) = 1) { $int2 = scale(1, 4, $int2); } +if (~script5792(8) >= 3) { + $int2 = scale(1, 4, $int2); +} $int2 = calc($int2 * 30); if ($int0 >= $int2) { $int0 = calc($int0 % $int2); diff --git a/scripts/[proc,highlight_textbox].cs2 b/scripts/[proc,highlight_textbox].cs2 index 82a274841..f832e3752 100644 --- a/scripts/[proc,highlight_textbox].cs2 +++ b/scripts/[proc,highlight_textbox].cs2 @@ -26,7 +26,7 @@ def_int $int10 = if_gety(interface_664:7); def_int $width11 = if_getwidth(interface_664:7); def_int $height12 = if_getheight(interface_664:7); if (if_gethide(interface_664:7) = false) { - if (calc($int10 + $int8 + 10) >= $height5) { + if (calc($int8 + 10) <= $int10) { $int10 = calc($int10 - 10 - $int8); $int9 = calc($int9 + if_getwidth(interface_664:7) / 2 - $int7 / 2); if ($int9 <= 1) { @@ -35,7 +35,7 @@ if (if_gethide(interface_664:7) = false) { $int9 = calc($width6 - 2 - $int7); } if_setposition($int9, $int10, ^setpos_abs_left, ^setpos_abs_top, interface_664:8); - } else if (calc($int10 + $height12 + $int8 + 10) < $height5) { + } else if (calc($int10 + $height12 + $int8 + 10) <= $height5) { $int10 = calc($int10 + 10 + if_getheight(interface_664:7)); $int9 = calc($int9 + if_getwidth(interface_664:7) / 2 - $int7 / 2); if ($int9 <= 1) { @@ -44,7 +44,7 @@ if (if_gethide(interface_664:7) = false) { $int9 = calc($width6 - 2 - $int7); } if_setposition($int9, $int10, ^setpos_abs_left, ^setpos_abs_top, interface_664:8); - } else if (calc($int9 + $int7 + 10) >= $width6) { + } else if (calc($int7 + 10) <= $int9) { $int9 = calc($int9 - 10 - $int7); $int10 = calc($int10 + if_getheight(interface_664:7) / 2 - $int8 / 2); if ($int10 <= 1) { @@ -53,7 +53,7 @@ if (if_gethide(interface_664:7) = false) { $int10 = calc($height5 - 2 - $int8); } if_setposition($int9, $int10, ^setpos_abs_left, ^setpos_abs_top, interface_664:8); - } else if (calc($int9 + $width11 + $int7 + 10) < $width6) { + } else if (calc($int9 + $width11 + $int7 + 10) <= $width6) { $int9 = calc($int9 + 10 + if_getwidth(interface_664:7)); $int10 = calc($int10 + if_getheight(interface_664:7) / 2 - $int8 / 2); if ($int10 <= 1) { diff --git a/scripts/[proc,in_league_tutorial].cs2 b/scripts/[proc,in_league_tutorial].cs2 index 075668d11..7c6f97c8c 100644 --- a/scripts/[proc,in_league_tutorial].cs2 +++ b/scripts/[proc,in_league_tutorial].cs2 @@ -1,6 +1,6 @@ // 3719 [proc,in_league_tutorial]()(int) -if (~league_world = 1 & %varbit10037 < 12) { +if (~league_world = 1 & %varbit10037 < ~script5744) { return(1); } return(0); diff --git a/scripts/[proc,league_create_dropdown].cs2 b/scripts/[proc,league_create_dropdown].cs2 index d02cc9d53..18d0921c3 100644 --- a/scripts/[proc,league_create_dropdown].cs2 +++ b/scripts/[proc,league_create_dropdown].cs2 @@ -86,6 +86,10 @@ cc_setonop("league_menu_frame_click($component0, $component1, $component2)"); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); $int3 = calc($int3 + 1); $int10 = calc($int10 + $int9); +def_string $text0 = "Areas"; +if (%varbit10032 = 3) { + $text0 = "Unlocks"; +} cc_create($component1, ^iftype_rectangle, $int3); cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs); cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top); @@ -100,7 +104,7 @@ $int3 = calc($int3 + 1); cc_create($component1, ^iftype_text, $int3); cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs); cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top); -cc_settext("Areas"); +cc_settext($text0); cc_settextfont(p12_full); cc_settextshadow(true); if ($int4 = 3) { @@ -113,11 +117,15 @@ if ($int4 = 3) { cc_setonmouseleave("league_info_mouseleave($component1, $int3, $colour5)"); } } -cc_setop(1, "View Areas"); +cc_setop(1, "View <$text0>"); cc_setonop("league_menu_frame_click($component0, $component1, $component2)"); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); $int3 = calc($int3 + 1); $int10 = calc($int10 + $int9); +$text0 = "Relics"; +if (%varbit10032 = 3) { + $text0 = "Fragments"; +} cc_create($component1, ^iftype_rectangle, $int3); cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs); cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top); @@ -132,7 +140,7 @@ $int3 = calc($int3 + 1); cc_create($component1, ^iftype_text, $int3); cc_setsize(calc($int8 - 12), $int9, ^setsize_abs, ^setsize_abs); cc_setposition(6, $int10, ^setpos_abs_left, ^setpos_abs_top); -cc_settext("Relics"); +cc_settext($text0); cc_settextfont(p12_full); cc_settextshadow(true); if ($int4 = 2) { @@ -145,6 +153,6 @@ if ($int4 = 2) { cc_setonmouseleave("league_info_mouseleave($component1, $int3, $colour5)"); } } -cc_setop(1, "View Relics"); +cc_setop(1, "View <$text0>"); cc_setonop("league_menu_frame_click($component0, $component1, $component2)"); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); diff --git a/scripts/[proc,league_get_league_name].cs2 b/scripts/[proc,league_get_league_name].cs2 index 96a264d90..fad2e1fdd 100644 --- a/scripts/[proc,league_get_league_name].cs2 +++ b/scripts/[proc,league_get_league_name].cs2 @@ -1,7 +1,7 @@ // 3219 [proc,league_get_league_name]()(string) -if (%varbit10032 = 0 | %varbit10032 > 2) { - mes("League variable was incorrectly set. Previous value: . New Value: ."); - %varbit10032 = 2; +if (%varbit10032 = 0 | %varbit10032 > 3) { + ~debug_mes("League variable was incorrectly set. Previous value: . New Value: ."); + %varbit10032 = 3; } return(struct_param(enum(int, struct, enum_2670, %varbit10032), param_858)); diff --git a/scripts/[proc,league_info_draw_interface].cs2 b/scripts/[proc,league_info_draw_interface].cs2 index 968c73c1f..142d39b2b 100644 --- a/scripts/[proc,league_info_draw_interface].cs2 +++ b/scripts/[proc,league_info_draw_interface].cs2 @@ -10,13 +10,17 @@ def_struct $struct12 = enum(int, struct, enum_2670, %varbit10032); if ($struct12 = null) { return; } -def_struct $struct13 = struct_1239; +def_struct $struct13 = struct_param(enum(int, struct, enum_2670, %varbit10032), param_1434); def_int $colour14 = 0xff981f; -$colour14 = struct_param($struct12, param_1027); +if (%varbit10032 = 3) { + $colour14 = ^white; +} else { + $colour14 = struct_param($struct12, param_1027); +} if (cc_find(interface_654:2, $comsubid11) = ^true) { cc_setcolour($colour14); } else { - mes("Couldn't find the frame."); + ~debug_mes("Couldn't find the frame."); } cc_create($component0, ^iftype_text, 0); cc_setposition(0, 1, ^setpos_abs_centre, ^setpos_abs_top); @@ -61,7 +65,7 @@ def_string $string1 = " <~text_device("Click", "Tap")> to open the Leagu def_int $int31 = calc(12 * paraheight($string1, $width29 - 10, p12_full) + 10); def_string $string2 = " <~text_device("Click", "Tap")> to open the <~league_get_league_name> blog!
"; def_string $url3 = "https://osrs.game/Leagues"; -def_string $url4 = "https://osrs.game/Trailblazer-League"; +def_string $url4 = "https://secure.runescape.com/m=news/leagues-iii---shattered-relics-launch?oldschool=1"; def_int $int32 = calc(12 * paraheight($string2, $width30 - 10, p12_full) + 10); def_int $int33 = $int32; if ($int31 > $int32) { diff --git a/scripts/[proc,league_points_earned].cs2 b/scripts/[proc,league_points_earned].cs2 index 83177178f..ad5faa092 100644 --- a/scripts/[proc,league_points_earned].cs2 +++ b/scripts/[proc,league_points_earned].cs2 @@ -1,10 +1,12 @@ // 1125 -[proc,league_points_earned](struct $struct0, int $int1, int $int2)(int) +[proc,league_points_earned](struct $struct0, int $int1, int $int2, int $int3)(int) switch_struct ($struct0) { case leagues_i_twisted_723 : return($int1); case leagues_ii_trailblazer_1721 : return($int2); + case leagues_iii_shattered_relics_3771 : + return($int3); case default : return(0); } diff --git a/scripts/[proc,league_points_progress_bar].cs2 b/scripts/[proc,league_points_progress_bar].cs2 index ae76fe6af..747d8b57f 100644 --- a/scripts/[proc,league_points_progress_bar].cs2 +++ b/scripts/[proc,league_points_progress_bar].cs2 @@ -20,7 +20,9 @@ def_int $int14 = 0; def_int $int15 = -1; def_graphic $graphic16 = struct_param($struct4, param_1022); def_graphic $graphic17 = struct_param($struct4, param_1023); -if ($struct11 ! null) { +if ($struct4 = leagues_iii_shattered_relics_3771) { + $int12 = ~script5803($int3, 0); +} else if ($struct11 ! null) { $int12 = struct_param($struct11, param_877); } if ($int12 ! -1 & $int3 = 0) { @@ -75,7 +77,43 @@ if (cc_find($component0, 0) = ^false) { $int9 = calc($int9 + 1); } } else { - if ($struct4 ! null) { + if ($struct4 = leagues_iii_shattered_relics_3771) { + $enum5 = enum_4127; + if ($enum5 ! null) { + $int7 = enum_getoutputcount($enum5); + $int8 = 1; + while ($int8 <= $int7) { + cc_create($component0, ^iftype_graphic, $int9); + cc_setsize(10, 31, ^setsize_abs, ^setsize_abs); + $int14 = enum(int, int, $enum5, $int8); + $int15 = scale($int14, $int12, calc($int13 - 4)); + if ($int15 <= 2) { + $int15 = 0; + } else if ($int15 >= calc($int13 - 4)) { + $int15 = $int13; + } else { + $int15 = calc($int15 + 2); + } + cc_setposition(calc($int15 - 4), 1, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic(struct_param($struct4, param_1031)); + if ($int14 = 1) { + $string0 = "Fragment Slot unlocked at point."; + } else { + $string0 = "Fragment Slot unlocked at points."; + } + if (~on_mobile = true) { + cc_setop(1, "Show Threshold"); + cc_setonop("league_progress_bar_mobile_tooltip(event_com, event_comsubid, $component1, $string0, 512)"); + } else { + cc_setop(1, ""); + cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component1, $string0, 25, 512)"); + cc_setonmouseleave("deltooltip($component1)"); + } + $int8 = calc($int8 + 1); + $int9 = calc($int9 + 1); + } + } + } else if ($struct4 ! null) { $enum5 = struct_param($struct4, param_870); if ($enum5 ! null) { $int7 = enum_getoutputcount($enum5); @@ -140,12 +178,12 @@ if ($int3 = 0) { $comsubid10 = 3; } def_int $width18 = calc($int13 - 4); -def_int $width19 = $width18; +def_int $width19 = calc($width18 - 2); if ($int12 ! -1 & $int12 > 0) { $width19 = scale(%var2615, $int12, $width18); } if ($width19 > $width18) { - $width19 = $width18; + $width19 = calc($width18 - 1); } if (cc_find($component0, 2) = ^true) { if ($int2 = 1) { @@ -170,7 +208,13 @@ if ($comsubid10 ! -1 & cc_find($component0, $comsubid10) = ^true) { } } else { $int20 = calc($int12 - %var2615); - if ($int20 = 1) { + if ($struct4 = leagues_iii_shattered_relics_3771) { + if ($int20 = 1) { + cc_settext(" league point until your next Fragment Slot."); + } else { + cc_settext(" League Points until your next Fragment Slot."); + } + } else if ($int20 = 1) { cc_settext(" point until your next Relic."); } else { cc_settext(" points until your next Relic."); diff --git a/scripts/[proc,league_relic_display].cs2 b/scripts/[proc,league_relic_display].cs2 index 134699e74..23367870f 100644 --- a/scripts/[proc,league_relic_display].cs2 +++ b/scripts/[proc,league_relic_display].cs2 @@ -8,6 +8,9 @@ switch_int (%varbit10032) { return(~league_relic_display_core($component0, $component1, $int2)); case 2 : return(~league_relic_display_core($component0, $component1, $int2)); + case 3 : + $int2 = ~script5739($component0, $component1, $int2); + return(~script5743($component0, $component1, $int2)); case default : return($int2); } diff --git a/scripts/[proc,league_reward_draw_item].cs2 b/scripts/[proc,league_reward_draw_item].cs2 index d4cd7cb96..f27fd832d 100644 --- a/scripts/[proc,league_reward_draw_item].cs2 +++ b/scripts/[proc,league_reward_draw_item].cs2 @@ -1,78 +1,82 @@ // 544 -[proc,league_reward_draw_item](component $component0, int $int1, int $y2, int $int3, struct $struct4, int $int5, int $int6, int $int7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, struct $struct20)(int) -.cc_create($component0, ^iftype_rectangle, $int7); -.cc_setsize($int3, 32, ^setsize_abs, ^setsize_abs); -.cc_setposition($int1, $y2, ^setpos_abs_left, ^setpos_abs_top); +[proc,league_reward_draw_item](int $int0, int $y1, int $int2, struct $struct3, int $int4, int $int5, int $int6, int $int7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, struct $struct22)(int, int) +.cc_create($component11, ^iftype_rectangle, $int7); +.cc_setsize($int2, 32, ^setsize_abs, ^setsize_abs); +.cc_setposition($int0, $y1, ^setpos_abs_left, ^setpos_abs_top); .cc_setcolour(^black); .cc_setfill(true); .cc_settrans(255); -.cc_setop(1, "Select "); +.cc_setop(1, "Select "); $int7 = calc($int7 + 1); -def_namedobj $namedobj21 = struct_param($struct4, param_150); -if ($namedobj21 = null) { - return($int7); +def_namedobj $namedobj23 = struct_param($struct3, param_150); +if ($namedobj23 = null) { + return($int6, $int7); } -cc_create($component0, ^iftype_graphic, $int7); +cc_create($component12, ^iftype_graphic, $int6); cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); -cc_setposition(calc($int1 + (40 - 36) / 2), $y2, ^setpos_abs_left, ^setpos_abs_top); -cc_setobject_nonum($namedobj21, 1); +cc_setposition(calc($int0 + (40 - 36) / 2), $y1, ^setpos_abs_left, ^setpos_abs_top); +cc_setobject_nonum($namedobj23, 1); cc_setgraphicshadow(0x333333); cc_setoutline(1); -def_int $width22 = calc($int3 - 40); -$int1 = calc($int1 + 40); -$int7 = calc($int7 + 1); -cc_create($component0, ^iftype_text, $int7); -cc_setsize($width22, 32, ^setsize_abs, ^setsize_abs); -cc_setposition($int1, $y2, ^setpos_abs_left, ^setpos_abs_top); +def_int $width24 = calc($int2 - 40); +$int0 = calc($int0 + 40); +$int6 = calc($int6 + 1); +cc_create($component12, ^iftype_text, $int6); +cc_setsize($width24, 32, ^setsize_abs, ^setsize_abs); +cc_setposition($int0, $y1, ^setpos_abs_left, ^setpos_abs_top); cc_settextalign(^settextalign_left, ^settextalign_top, 0); cc_settextfont(p12_full); cc_settextshadow(true); -def_int $int23 = struct_param($struct4, param_151); +def_int $int25 = struct_param($struct3, param_151); def_string $mes0 = ""; def_string $string1 = ","; -if (~script3292($struct20) = 0) { +if (~script3292($struct22) = 0) { cc_setcolour(0x9f9f9f); cc_settextalign(^settextalign_left, ^settextalign_top, 15); $mes0 = "You can't purchase that reward until the current League has ended."; - cc_settext("
<~tostring_spacer($int23, $string1)> points"); - .cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)"); -} else if (oc_members($namedobj21) = ^true & map_members = ^false) { + if ($struct22 = leagues_iii_shattered_relics_3771) { + cc_settext("
Available soon"); + } else { + cc_settext("
<~tostring_spacer($int25, $string1)> points"); + } + .cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $struct22)"); +} else if (oc_members($namedobj23) = ^true & map_members = ^false) { cc_setcolour(0x9f9f9f); cc_settextalign(^settextalign_left, ^settextalign_top, 15); $mes0 = "You must be on a members' world to purchase that reward."; - cc_settext("
<~tostring_spacer($int23, $string1)> points"); - .cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)"); -} else if (%var2613 < $int23) { + cc_settext("
<~tostring_spacer($int25, $string1)> points"); + .cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $struct22)"); +} else if (%var2613 < $int25) { cc_setcolour(0x9f9f9f); cc_settextalign(^settextalign_left, ^settextalign_top, 15); - if ($int23 = 1) { - $mes0 = "You need <~tostring_spacer($int23, $string1)> point to purchase that reward."; - cc_settext("
<~tostring_spacer($int23, $string1)> points"); + if ($int25 = 1) { + $mes0 = "You need <~tostring_spacer($int25, $string1)> point to purchase that reward."; + cc_settext("
<~tostring_spacer($int25, $string1)> points"); } else { - $mes0 = "You need <~tostring_spacer($int23, $string1)> points to purchase that reward."; - cc_settext("
<~tostring_spacer($int23, $string1)> points"); + $mes0 = "You need <~tostring_spacer($int25, $string1)> points to purchase that reward."; + cc_settext("
<~tostring_spacer($int25, $string1)> points"); } - .cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)"); + .cc_setonop("league_reward_shop_refuse($mes0, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $struct22)"); } else { - if ($int6 = $int5 & ~script3292($struct20) = 1) { + if ($int5 = $int4 & ~script3292($struct22) = 1) { cc_setcolour(^white); - if ($int23 = 1) { - cc_settext("
<~tostring_spacer($int23, $string1)> point"); + if ($int25 = 1) { + cc_settext("
<~tostring_spacer($int25, $string1)> point"); } else { - cc_settext("
<~tostring_spacer($int23, $string1)> points"); + cc_settext("
<~tostring_spacer($int25, $string1)> points"); } .cc_setonmouserepeat(null); .cc_setonmouseleave(null); } else { cc_setcolour(0x0dc10d); - if ($int23 = 1) { - cc_settext("
<~tostring_spacer($int23, $string1)> point"); + if ($int25 = 1) { + cc_settext("
<~tostring_spacer($int25, $string1)> point"); } else { - cc_settext("
<~tostring_spacer($int23, $string1)> points"); + cc_settext("
<~tostring_spacer($int25, $string1)> points"); } } cc_settextalign(^settextalign_left, ^settextalign_top, 15); - .cc_setonop("league_reward_shop_select($int5, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $struct20)"); + .cc_setonop("league_reward_shop_select($int4, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $component15, $component16, $component17, $component18, $component19, $component20, $component21, $struct22)"); } -$int7 = calc($int7 + 1); -return($int7); +$int6 = calc($int6 + 1); +return($int6, $int7); diff --git a/scripts/[proc,league_reward_shop_showpoints].cs2 b/scripts/[proc,league_reward_shop_showpoints].cs2 index a95f5bb37..a0cf68943 100644 --- a/scripts/[proc,league_reward_shop_showpoints].cs2 +++ b/scripts/[proc,league_reward_shop_showpoints].cs2 @@ -1,8 +1,8 @@ // 3290 -[proc,league_reward_shop_showpoints](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11) +[proc,league_reward_shop_showpoints](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, component $component13) def_string $string0 = ","; if_settext("League Points: <~tostring_spacer(%var2613, $string0)>", $component1); if_settextfont(p12_full, $component1); if_settextshadow(true, $component1); if_settextalign(^settextalign_centre, ^settextalign_centre, 0, $component1); -~league_rewards_draw(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, if_getscrolly($component3)); +~league_rewards_draw(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, if_getscrolly($component5)); diff --git a/scripts/[proc,league_rewards_draw].cs2 b/scripts/[proc,league_rewards_draw].cs2 index abbdd2002..94f99ea24 100644 --- a/scripts/[proc,league_rewards_draw].cs2 +++ b/scripts/[proc,league_rewards_draw].cs2 @@ -1,92 +1,95 @@ // 503 -[proc,league_rewards_draw](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, int $y13) +[proc,league_rewards_draw](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10, component $component11, component $component12, component $component13, component $component14, int $y15) cc_deleteall($component4); -def_int $int14 = 0; -def_int $height15 = 7; -def_int $int16 = calc(if_getwidth($component4) / 2); -def_enum $enum17 = enum_2670; -def_int $count18 = enum_getoutputcount($enum17); -def_int $int19 = 0; -def_int $int20 = 1; +cc_deleteall($component5); +cc_deleteall($component6); +def_int $int16 = 0; +def_int $height17 = 7; +def_int $int18 = calc(if_getwidth($component6) / 2); +def_enum $enum19 = enum_2670; +def_int $count20 = enum_getoutputcount($enum19); def_int $int21 = 0; -def_int $int22 = 0; -def_struct $struct23 = null; -def_enum $enum24 = null; -def_int $int25 = 0; +def_int $int22 = 1; +def_int $int23 = 0; +def_int $int24 = 0; +def_struct $struct25 = null; +def_enum $enum26 = null; +def_int $int27 = 0; +def_int $int28 = 0; %varbit10110 = -1; -while ($int20 <= $count18) { - $struct23 = enum(int, struct, $enum17, $int20); - $enum24 = struct_param($struct23, param_87); - if ($enum24 ! null & enum_getoutputcount($enum24) > 0) { - if ($int20 ! 1) { - $height15, $int25 = ~pest_rewards_divider(5, $component4, $height15, $int25); +while ($int22 <= $count20) { + $struct25 = enum(int, struct, $enum19, $int22); + $enum26 = struct_param($struct25, param_87); + if ($enum26 ! null & enum_getoutputcount($enum26) > 0) { + if ($int22 ! 1) { + $height17, $int27 = ~pest_rewards_divider(5, $component5, $height17, $int27); } - cc_create($component4, ^iftype_text, $int25); - cc_settext(struct_param($struct23, param_858)); + cc_create($component5, ^iftype_text, $int27); + cc_settext(struct_param($struct25, param_858)); cc_settextfont(b12_full); cc_settextshadow(true); cc_setcolour(0xff891f); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_setsize(if_getwidth($component4), 13, ^setsize_abs, ^setsize_abs); - cc_setposition(0, $height15, ^setpos_abs_left, ^setpos_abs_top); - $height15 = calc($height15 + 13); - $int25 = calc($int25 + 1); - $height15, $int25 = ~pest_rewards_divider(5, $component4, $height15, $int25); - while ($int21 < enum_getoutputcount($enum24)) { - if (calc($int21 % 2) = 0) { - $int14 = 0; + cc_setsize(if_getwidth($component6), 13, ^setsize_abs, ^setsize_abs); + cc_setposition(0, $height17, ^setpos_abs_left, ^setpos_abs_top); + $height17 = calc($height17 + 13); + $int27 = calc($int27 + 1); + $height17, $int27 = ~pest_rewards_divider(5, $component5, $height17, $int27); + while ($int23 < enum_getoutputcount($enum26)) { + if (calc($int23 % 2) = 0) { + $int16 = 0; } else { - $int14 = calc($int16 - 1); + $int16 = calc($int18 - 1); } - $int14 = calc($int14 + 4); - if ($int21 ! 0 & calc($int21 % 2) = 0) { - $height15 = calc($height15 + 32 + 8); + $int16 = calc($int16 + 4); + if ($int23 ! 0 & calc($int23 % 2) = 0) { + $height17 = calc($height17 + 32 + 8); } - $int25 = ~league_reward_draw_item($component4, $int14, $height15, $int16, enum(int, struct, $enum24, $int21), $int22, $int0, $int25, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $struct23); - $int21 = calc($int21 + 1); - $int22 = calc($int22 + 1); + $int27, $int28 = ~league_reward_draw_item($int16, $height17, $int18, enum(int, struct, $enum26, $int23), $int24, $int0, $int27, $int28, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14, $struct25); + $int23 = calc($int23 + 1); + $int24 = calc($int24 + 1); } - $height15 = calc($height15 + 32 + 10); + $height17 = calc($height17 + 32 + 10); } - $int20 = calc($int20 + 1); - $int21 = 0; + $int22 = calc($int22 + 1); + $int23 = 0; } -$int25 = 0; +$int27 = 0; def_string $text0 = ""; def_string $string1 = ""; -def_int $int26 = 0; +def_int $int29 = 0; def_string $op2 = ""; def_string $string3 = ","; -def_struct $struct27 = null; -cc_deleteall($component5); -cc_deleteall($component8); +def_struct $struct30 = null; +cc_deleteall($component7); cc_deleteall($component10); -cc_deleteall($component11); +cc_deleteall($component12); +cc_deleteall($component13); if ($int0 ! -1) { - $text0, $string1, $int26, $struct27 = ~script3286($int0); - if (~script3292($struct27) = 1) { + $text0, $string1, $int29, $struct30 = ~script3286($int0); + if (~script3292($struct30) = 1) { %varbit10110 = $int0; - ~pest_rewards_confirmdraw(false, $text0, $component6); - while ($int25 < $int0) { - cc_create($component5, ^iftype_rectangle, $int25); + ~pest_rewards_confirmdraw(false, $text0, $component8); + while ($int27 < $int0) { + cc_create($component7, ^iftype_rectangle, $int27); cc_sethide(true); - $int25 = calc($int25 + 1); + $int27 = calc($int27 + 1); } - cc_create($component5, ^iftype_rectangle, $int25); + cc_create($component7, ^iftype_rectangle, $int27); cc_sethide(false); cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); cc_setop(1, "Confirm"); cc_setopbase("<$text0>"); if (~on_mobile = false) { - cc_setonmouserepeat("pest_rewards_confirmdraw(true, $text0, $component6)"); - cc_setonmouseleave("pest_rewards_confirmdraw(false, $text0, $component6)"); + cc_setonmouserepeat("pest_rewards_confirmdraw(true, $text0, $component8)"); + cc_setonmouseleave("pest_rewards_confirmdraw(false, $text0, $component8)"); } - cc_setonop("league_reward_shop_confirmop(event_opindex, $component7, $struct27)"); - ~steelborder($component8, $text0, 1); - if_settext("<$text0>
<$string1>

Are you sure that you wish to buy this item for <~tostring_spacer($int26, $string3)> points?
You cannot sell this item back if you change your mind.", $component9); - $int25 = ~v2_stone_button($component10); - cc_create($component10, ^iftype_text, $int25); + cc_setonop("league_reward_shop_confirmop(event_opindex, $component9, $struct30)"); + ~steelborder($component10, $text0, 1); + if_settext("<$text0>
<$string1>

Are you sure that you wish to buy this item for <~tostring_spacer($int29, $string3)> points?
You cannot sell this item back if you change your mind.", $component11); + $int27 = ~v2_stone_button($component12); + cc_create($component12, ^iftype_text, $int27); cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); $op2 = "Confirm"; @@ -95,14 +98,14 @@ if ($int0 ! -1) { cc_settextshadow(true); cc_setcolour(^white); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - if_setop(1, $op2, $component10); + if_setop(1, $op2, $component12); if (~on_mobile = false) { - if_setonmouseleave("league_relic_button_hover($component10, false, $op2, ^white)", $component10); - if_setonmouseover("league_relic_button_hover($component10, true, $op2, 0xaaaaaa)", $component10); + if_setonmouseleave("league_relic_button_hover($component12, false, $op2, ^white)", $component12); + if_setonmouseover("league_relic_button_hover($component12, true, $op2, 0xaaaaaa)", $component12); } - if_setonop("league_reward_shop_buy(event_opindex, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component10); - $int25 = ~v2_stone_button($component11); - cc_create($component11, ^iftype_text, $int25); + if_setonop("league_reward_shop_buy(event_opindex, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14)", $component12); + $int27 = ~v2_stone_button($component13); + cc_create($component13, ^iftype_text, $int27); cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); $op2 = "Cancel"; @@ -111,16 +114,16 @@ if ($int0 ! -1) { cc_settextshadow(true); cc_setcolour(^white); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - if_setop(1, $op2, $component11); + if_setop(1, $op2, $component13); if (~on_mobile = false) { - if_setonmouseleave("league_relic_button_hover($component11, false, $op2, ^white)", $component11); - if_setonmouseover("league_relic_button_hover($component11, true, $op2, 0xaaaaaa)", $component11); + if_setonmouseleave("league_relic_button_hover($component13, false, $op2, ^white)", $component13); + if_setonmouseover("league_relic_button_hover($component13, true, $op2, 0xaaaaaa)", $component13); } - if_setonop("league_reward_confirm_back($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12)", $component11); + if_setonop("league_reward_confirm_back($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $component13, $component14)", $component13); } } else { - $int25 = ~v2_stone_button_in_filled($component6); - cc_create($component6, ^iftype_text, $int25); + $int27 = ~v2_stone_button_in_filled($component8); + cc_create($component8, ^iftype_text, $int27); cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); cc_setcolour(0x9f9f9f); @@ -129,12 +132,12 @@ if ($int0 ! -1) { cc_settextshadow(false); cc_settext("Confirm"); } -cc_deleteall($component12); -~scrollbar_vertical($component12, $component4, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); -if ($height15 > if_getheight($component4)) { - if_setscrollsize(0, $height15, $component4); +cc_deleteall($component14); +~scrollbar_vertical($component14, $component6, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +if ($height17 > if_getheight($component6)) { + if_setscrollsize(0, $height17, $component6); } else { - if_setscrollsize(0, 0, $component4); + if_setscrollsize(0, 0, $component6); } -if_setscrollpos(0, $y13, $component4); -~scrollbar_vertical_rebuild($component12, $component4); +if_setscrollpos(0, $y15, $component6); +~scrollbar_vertical_rebuild($component14, $component6); diff --git a/scripts/[proc,league_side_panel_hudtoggle].cs2 b/scripts/[proc,league_side_panel_hudtoggle].cs2 index 40c043d08..8e67d2023 100644 --- a/scripts/[proc,league_side_panel_hudtoggle].cs2 +++ b/scripts/[proc,league_side_panel_hudtoggle].cs2 @@ -1,10 +1,17 @@ // 3232 [proc,league_side_panel_hudtoggle](component $component0, component $component1) def_string $string0 = "Disable showing your Relics in the buff bar."; +if (%varbit10032 = 3) { + $string0 = "Disable showing your Fragments in the buff bar."; +} if (%varbit12383 = 1) { cc_setgraphic("options_radio_buttons,1"); if_setop(1, "Enable", $component0); - $string0 = "Enable showing your Relics in the buff bar.."; + if (%varbit10032 = 3) { + $string0 = "Enable showing your Fragments in the buff bar."; + } else { + $string0 = "Enable showing your Relics in the buff bar."; + } } else { cc_setgraphic("options_radio_buttons,2"); if_setop(1, "Disable", $component0); diff --git a/scripts/[proc,league_statistics_draw].cs2 b/scripts/[proc,league_statistics_draw].cs2 index 286c0644e..1689c0ddd 100644 --- a/scripts/[proc,league_statistics_draw].cs2 +++ b/scripts/[proc,league_statistics_draw].cs2 @@ -1,174 +1,176 @@ // 1111 -[proc,league_statistics_draw](component $component0, component $component1, component $component2, string $string0, int $int3, int $int4) +[proc,league_statistics_draw](component $component0, component $component1, component $component2, string $string0, int $int3, int $int4, int $int5) cc_deleteall($component1); cc_deleteall($component0); -def_int $int5 = 0; -def_struct $struct6 = null; -def_enum $enum7 = enum_2670; -def_int $count8 = enum_getoutputcount($enum7); -def_int $count9 = calc(0 + 1); -def_int $int10 = 0; -def_int $height11 = 0; +def_int $int6 = 0; +def_struct $struct7 = null; +def_enum $enum8 = enum_2670; +def_int $count9 = enum_getoutputcount($enum8); +def_int $count10 = calc(0 + 1); +def_int $int11 = 0; +def_int $height12 = 0; def_string $string1 = ","; -def_int $int12 = 0; -def_int $colour13 = ^white; -def_int $width14 = if_getwidth($component1); -def_int $int15 = calc($int3 + $int4); -def_int $int16 = 15; -cc_create($component0, ^iftype_text, $int5); +def_int $int13 = 0; +def_int $colour14 = ^white; +def_int $width15 = if_getwidth($component1); +def_int $int16 = calc($int3 + $int4 + $int5); +def_int $int17 = 15; +cc_create($component0, ^iftype_text, $int6); cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); cc_setposition(0, 1, ^setpos_4, ^setpos_abs_top); cc_settext("League Statistics - <$string0>"); cc_settextfont(b12_full); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextshadow(true); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -$int5 = 0; -$height11, $int5 = ~script857(5, $component1, $height11, $int5); -cc_create($component1, ^iftype_text, $int5); +$int6 = 0; +$height12, $int6 = ~script857(5, $component1, $height12, $int6); +cc_create($component1, ^iftype_text, $int6); cc_settext("General League Statistics"); cc_settextfont(b12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize($width14, $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$height11 = calc($height11 + $int16); -$int5 = calc($int5 + 1); -$height11, $int5 = ~script857(5, $component1, $height11, $int5); -cc_create($component1, ^iftype_text, $int5); +cc_setsize($width15, $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$height12 = calc($height12 + $int17); +$int6 = calc($int6 + 1); +$height12, $int6 = ~script857(5, $component1, $height12, $int6); +cc_create($component1, ^iftype_text, $int6); cc_settext("Leagues participations"); cc_settextfont(p12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$int5 = calc($int5 + 1); -$height11 = calc($height11 + $int16); -cc_create($component1, ^iftype_text, $int5); -cc_settext(tostring(~script1124($int3, $int4))); +cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$int6 = calc($int6 + 1); +$height12 = calc($height12 + $int17); +cc_create($component1, ^iftype_text, $int6); +cc_settext(tostring(~script1124($int3, $int4, $int5))); cc_settextfont(p12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$int5 = calc($int5 + 1); -$height11 = calc($height11 - $int16); -$int10 = calc($int10 + $width14 / 2); -cc_create($component1, ^iftype_text, $int5); -cc_settext("Total League points"); +cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$int6 = calc($int6 + 1); +$height12 = calc($height12 - $int17); +$int11 = calc($int11 + $width15 / 2); +cc_create($component1, ^iftype_text, $int6); +cc_settext("Total League Points"); cc_settextfont(p12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$int5 = calc($int5 + 1); -$height11 = calc($height11 + $int16); -cc_create($component1, ^iftype_text, $int5); -cc_settext(~tostring_spacer($int15, $string1)); +cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$int6 = calc($int6 + 1); +$height12 = calc($height12 + $int17); +cc_create($component1, ^iftype_text, $int6); +cc_settext(~tostring_spacer($int16, $string1)); cc_settextfont(p12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$int5 = calc($int5 + 1); -$height11 = calc($height11 + $int16); -$int10 = 0; -cc_create($component1, ^iftype_text, $int5); +cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$int6 = calc($int6 + 1); +$height12 = calc($height12 + $int17); +$int11 = 0; +cc_create($component1, ^iftype_text, $int6); cc_settext("Best trophy"); cc_settextfont(p12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$int5 = calc($int5 + 1); -$height11 = calc($height11 + $int16); -cc_create($component1, ^iftype_text, $int5); +cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$int6 = calc($int6 + 1); +$height12 = calc($height12 + $int17); +cc_create($component1, ^iftype_text, $int6); cc_settext(~script1127($int3, $int4)); cc_settextfont(p12_full); cc_settextshadow(true); -cc_setcolour($colour13); +cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); -cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); -$int5 = calc($int5 + 1); -$height11 = calc($height11 + $int16); -$int10 = 0; -while ($count9 <= $count8) { - $struct6 = enum(int, struct, $enum7, $count9); - switch_struct ($struct6) { +cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); +cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); +$int6 = calc($int6 + 1); +$height12 = calc($height12 + $int17); +$int11 = 0; +while ($count10 <= $count9) { + $struct7 = enum(int, struct, $enum8, $count10); + switch_struct ($struct7) { case leagues_i_twisted_723 : - $int12 = $int3; + $int13 = $int3; case leagues_ii_trailblazer_1721 : - $int12 = $int4; + $int13 = $int4; + case leagues_iii_shattered_relics_3771 : + $int13 = $int5; } - if ($int12 > 0) { - $height11, $int5 = ~script857(5, $component1, $height11, $int5); - cc_create($component1, ^iftype_text, $int5); - cc_settext(struct_param($struct6, param_858)); + if ($int13 > 0) { + $height12, $int6 = ~script857(5, $component1, $height12, $int6); + cc_create($component1, ^iftype_text, $int6); + cc_settext(struct_param($struct7, param_858)); cc_settextfont(b12_full); cc_settextshadow(true); - cc_setcolour($colour13); + cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_setsize(if_getwidth($component1), $int16, ^setsize_abs, ^setsize_abs); - cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); - $height11 = calc($height11 + $int16); - $int5 = calc($int5 + 1); - $height11, $int5 = ~script857(5, $component1, $height11, $int5); - cc_create($component1, ^iftype_text, $int5); - cc_settext("League points"); + cc_setsize(if_getwidth($component1), $int17, ^setsize_abs, ^setsize_abs); + cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); + $height12 = calc($height12 + $int17); + $int6 = calc($int6 + 1); + $height12, $int6 = ~script857(5, $component1, $height12, $int6); + cc_create($component1, ^iftype_text, $int6); + cc_settext("League Points"); cc_settextfont(p12_full); cc_settextshadow(true); - cc_setcolour($colour13); + cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); - cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); - $int5 = calc($int5 + 1); - $height11 = calc($height11 + $int16); - cc_create($component1, ^iftype_text, $int5); - cc_settext(~tostring_spacer(~league_points_earned($struct6, $int3, $int4), $string1)); + cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); + cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); + $int6 = calc($int6 + 1); + $height12 = calc($height12 + $int17); + cc_create($component1, ^iftype_text, $int6); + cc_settext(~tostring_spacer(~league_points_earned($struct7, $int3, $int4, $int5), $string1)); cc_settextfont(p12_full); cc_settextshadow(true); - cc_setcolour($colour13); + cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); - cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); - $int5 = calc($int5 + 1); - $height11 = calc($height11 - $int16); - $int10 = calc($int10 + $width14 / 2); - cc_create($component1, ^iftype_text, $int5); + cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); + cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); + $int6 = calc($int6 + 1); + $height12 = calc($height12 - $int17); + $int11 = calc($int11 + $width15 / 2); + cc_create($component1, ^iftype_text, $int6); cc_settext("Trophy"); cc_settextfont(p12_full); cc_settextshadow(true); - cc_setcolour($colour13); + cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); - cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); - $int5 = calc($int5 + 1); - $height11 = calc($height11 + $int16); - cc_create($component1, ^iftype_text, $int5); - cc_settext(~script1126($struct6, $int3, $int4)); + cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); + cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); + $int6 = calc($int6 + 1); + $height12 = calc($height12 + $int17); + cc_create($component1, ^iftype_text, $int6); + cc_settext(~script1126($struct7, $int3, $int4)); cc_settextfont(p12_full); cc_settextshadow(true); - cc_setcolour($colour13); + cc_setcolour($colour14); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); - cc_setsize(calc($width14 / 2), $int16, ^setsize_abs, ^setsize_abs); - cc_setposition($int10, $height11, ^setpos_abs_left, ^setpos_abs_top); - $int5 = calc($int5 + 1); - $height11 = calc($height11 + $int16); - $int10 = 0; + cc_setsize(calc($width15 / 2), $int17, ^setsize_abs, ^setsize_abs); + cc_setposition($int11, $height12, ^setpos_abs_left, ^setpos_abs_top); + $int6 = calc($int6 + 1); + $height12 = calc($height12 + $int17); + $int11 = 0; } - $count9 = calc($count9 + 1); + $count10 = calc($count10 + 1); } -$height11 = calc($height11 + 5); +$height12 = calc($height12 + 5); cc_deleteall($component2); -if ($height11 > if_getheight($component1)) { - if_setscrollsize(0, $height11, $component1); +if ($height12 > if_getheight($component1)) { + if_setscrollsize(0, $height12, $component1); } else { if_setscrollsize(0, 0, $component1); } diff --git a/scripts/[proc,league_task_display].cs2 b/scripts/[proc,league_task_display].cs2 index 803552386..effe7c5bc 100644 --- a/scripts/[proc,league_task_display].cs2 +++ b/scripts/[proc,league_task_display].cs2 @@ -1,5 +1,5 @@ // 3699 -[proc,league_task_display](int $int0, int $int1, int $int2, int $int3)(int) +[proc,league_task_display](int $int0, int $int1, int $int2, int $int3, int $int4)(int) if (%varbit10033 ! 0 & %varbit10033 ! $int0) { return(0); } @@ -7,7 +7,7 @@ if (%varbit11689 ! 0 & %varbit11689 ! $int2) { return(0); } if (%varbit11692 ! 0) { - if (%varbit11692 = 11) { + if (%varbit11692 = 12) { if (~script3681($int3) = 0) { return(0); } @@ -15,6 +15,9 @@ if (%varbit11692 ! 0) { return(0); } } +if (%varbit13340 ! 0 & ~script5833($int4) = 0) { + return(0); +} if (%varbit10034 ! 0 & calc(%varbit10034 - 1) ! $int1) { return(0); } diff --git a/scripts/[proc,league_task_is_completed].cs2 b/scripts/[proc,league_task_is_completed].cs2 index 1580ed347..b187d85a5 100644 --- a/scripts/[proc,league_task_is_completed].cs2 +++ b/scripts/[proc,league_task_is_completed].cs2 @@ -103,6 +103,14 @@ switch_int ($int5) { return(testbit(%var2834, $index4)); case 43 : return(testbit(%var2835, $index4)); + case 44 : + return(testbit(%var3339, $index4)); + case 45 : + return(testbit(%var3340, $index4)); + case 46 : + return(testbit(%var3341, $index4)); + case 47 : + return(testbit(%var3342, $index4)); case default : return(0); } diff --git a/scripts/[proc,league_tasks_draw_list].cs2 b/scripts/[proc,league_tasks_draw_list].cs2 index bd897c444..4a7517586 100644 --- a/scripts/[proc,league_tasks_draw_list].cs2 +++ b/scripts/[proc,league_tasks_draw_list].cs2 @@ -42,12 +42,14 @@ def_int $int32 = -1; def_int $int33 = -1; def_int $int34 = -1; def_int $int35 = -1; -def_int $int36 = 0; +def_int $int36 = -1; +def_int $int37 = 0; +def_int $int38 = 0; if (cc_find(interface_657:2, $int16) = ^true) { cc_setcolour($colour20); } if (%var2615 < %var2614) { - $int36 = 1; + $int37 = 1; } while ($int22 < $count21) { $struct24 = enum(int, struct, $enum19, $int22); @@ -56,13 +58,16 @@ while ($int22 < $count21) { $text0 = struct_param($struct24, param_874); $string1 = struct_param($struct24, param_875); $int32 = enum(int, int, enum_2671, $int31); + $int32 = scale($int32, 100, struct_param($struct18, param_754)); $int33 = struct_param($struct24, param_1016); $int34 = struct_param($struct24, param_1017); - if (~league_task_display($int31, $int30, $int33, $int34) = 1) { + $int35 = struct_param($struct24, param_1018); + $int38 = enum(int, int, enum_4128, $int31); + if (~league_task_display($int31, $int30, $int33, $int34, $int35) = 1) { cc_create($component2, ^iftype_rectangle, $int17); if ($int22 = $int0) { - $int35 = paraheight("Description: <$string1>", calc(if_getwidth($component2) - 10), p11_full); - cc_setsize(0, calc($int26 + (10 * $int35 + 25)), ^setsize_minus, ^setsize_abs); + $int36 = paraheight("Description: <$string1>", calc(if_getwidth($component2) - 10), p11_full); + cc_setsize(0, calc($int26 + (10 * $int36 + 25)), ^setsize_minus, ^setsize_abs); $graphic28 = "open_buttons_small,3"; $graphic29 = "open_buttons_small,2"; } else { @@ -114,15 +119,19 @@ while ($int22 < $count21) { cc_settextalign(^settextalign_left, ^settextalign_centre, 0); cc_settextshadow(true); if ($int30 = 1) { - cc_setcolour(0x0dc10d); + cc_setcolour($colour20); } else { cc_setcolour(0x9f9f9f); } cc_create($component4, ^iftype_text, $int17); - if ($int32 = 1) { - cc_settext("Reward: point"); + if (struct_param($struct18, param_1421) = true) { + if ($int38 = 1) { + cc_settext("Reward: League Points, Sage's Renown"); + } else { + cc_settext("Reward: League Points, Sage's Renown"); + } } else { - cc_settext("Reward: points"); + cc_settext("Reward: League Points."); } cc_setsize(51, 11, ^setsize_minus, ^setsize_abs); cc_setposition(51, calc($height25 + $int26 / 2 + 2), ^setpos_abs_left, ^setpos_abs_top); @@ -149,7 +158,7 @@ while ($int22 < $count21) { cc_setcolour($colour20); cc_create($component7, ^iftype_text, 0); cc_settext("Description: <$string1>"); - cc_setsize(10, calc(10 * $int35), ^setsize_minus, ^setsize_abs); + cc_setsize(10, calc(10 * $int36), ^setsize_minus, ^setsize_abs); cc_setposition(5, calc($height25 + $int26 + 19), ^setpos_abs_left, ^setpos_abs_top); cc_settextfont(p11_full); cc_settextalign(^settextalign_left, ^settextalign_centre, 0); @@ -157,7 +166,7 @@ while ($int22 < $count21) { cc_setcolour($colour20); } if ($int22 = $int0) { - $height25 = calc($height25 + $int35 * 10 + $int26 + 25); + $height25 = calc($height25 + $int36 * 10 + $int26 + 25); } else { $height25 = calc($height25 + $int26); } diff --git a/scripts/[proc,magic_spellbook_modifyops].cs2 b/scripts/[proc,magic_spellbook_modifyops].cs2 index e2e525784..944967834 100644 --- a/scripts/[proc,magic_spellbook_modifyops].cs2 +++ b/scripts/[proc,magic_spellbook_modifyops].cs2 @@ -1,9 +1,9 @@ // 2615 [proc,magic_spellbook_modifyops](component $component0) switch_component ($component0) { - case magic_spellbook:5, magic_spellbook:99, magic_spellbook:100, magic_spellbook:144 : + case magic_spellbook:6, magic_spellbook:100, magic_spellbook:101, magic_spellbook:145 : if_setop(10, "Animation", $component0); - case magic_spellbook:20 : + case magic_spellbook:21 : if (%varbit4585 = 1 & map_members = ^true) { if_setop(1, "", $component0); if_setop(3, "Cast", $component0); @@ -11,7 +11,7 @@ switch_component ($component0) { if_setop(1, "Cast", $component0); if_setop(3, "", $component0); } - case magic_spellbook:31 : + case magic_spellbook:32 : if (%varbit4560 = 1 & map_members = ^true) { if_setop(1, "", $component0); if_setop(3, "Cast", $component0); @@ -19,7 +19,7 @@ switch_component ($component0) { if_setop(1, "Cast", $component0); if_setop(3, "", $component0); } - case magic_spellbook:28 : + case magic_spellbook:29 : if (%varbit4744 = 1) { if_setop(1, "", $component0); if_setop(3, "Cast", $component0); @@ -27,7 +27,7 @@ switch_component ($component0) { if_setop(1, "Cast", $component0); if_setop(3, "", $component0); } - case magic_spellbook:42 : + case magic_spellbook:43 : if (%varbit4548 = 1 & map_members = ^true) { if_setop(1, "", $component0); if_setop(3, "Cast", $component0); @@ -35,37 +35,37 @@ switch_component ($component0) { if_setop(1, "Cast", $component0); if_setop(3, "", $component0); } - case magic_spellbook:104 : + case magic_spellbook:105 : if (%varbit5006 = 10 & %varbit5037 = 1) { if_setop(2, "Steve", $component0); } else { if_setop(2, enum(int, string, enum_1702, %varbit5006), $component0); } - case magic_spellbook:69 : + case magic_spellbook:70 : if (%varbit236 = 1) { if_setop(10, "Disable warning", $component0); } else { if_setop(10, "Enable warning", $component0); } - case magic_spellbook:95 : + case magic_spellbook:96 : if (%varbit6284 = 1) { if_setop(10, "Disable warning", $component0); } else { if_setop(10, "Enable warning", $component0); } - case magic_spellbook:96 : + case magic_spellbook:97 : if (%varbit6285 = 1) { if_setop(10, "Disable warning", $component0); } else { if_setop(10, "Enable warning", $component0); } - case magic_spellbook:97 : + case magic_spellbook:98 : if (%varbit6286 = 1) { if_setop(10, "Disable warning", $component0); } else { if_setop(10, "Enable warning", $component0); } - case magic_spellbook:98 : + case magic_spellbook:99 : if (%varbit6287 = 1) { if_setop(10, "Disable warning", $component0); } else { diff --git a/scripts/[proc,questlist_showprogress].cs2 b/scripts/[proc,questlist_showprogress].cs2 index 9c5175967..5bb45e16b 100644 --- a/scripts/[proc,questlist_showprogress].cs2 +++ b/scripts/[proc,questlist_showprogress].cs2 @@ -4,7 +4,7 @@ def_int $int3 = 0; def_int $colour4 = ^black; def_int $count5 = 0; def_int $count6 = ~quest_f2p_count; -~magic_spellbook_redraw(magic_spellbook:3, magic_spellbook:189, magic_spellbook:198, magic_spellbook:1, magic_spellbook:195, magic_spellbook:196, magic_spellbook:197, magic_spellbook:2, magic_spellbook:191, magic_spellbook:194, "Info", "Filters", ~on_mobile); +~magic_spellbook_redraw(magic_spellbook:3, magic_spellbook:190, magic_spellbook:199, magic_spellbook:1, magic_spellbook:196, magic_spellbook:197, magic_spellbook:198, magic_spellbook:2, magic_spellbook:192, magic_spellbook:195, "Info", "Filters", ~on_mobile); while ($count5 < $count6) { if (cc_find($component0, $count5) = ^true) { $int3 = ~quest_f2p_index_status_get($count5); diff --git a/scripts/[proc,script1124].cs2 b/scripts/[proc,script1124].cs2 index edc0c7f70..ced7d1ba6 100644 --- a/scripts/[proc,script1124].cs2 +++ b/scripts/[proc,script1124].cs2 @@ -1,10 +1,13 @@ // 1124 -[proc,script1124](int $int0, int $int1)(int) -def_int $int2 = 0; +[proc,script1124](int $int0, int $int1, int $int2)(int) +def_int $int3 = 0; if ($int0 > 0) { - $int2 = calc($int2 + 1); + $int3 = calc($int3 + 1); } if ($int1 > 0) { - $int2 = calc($int2 + 1); + $int3 = calc($int3 + 1); } -return($int2); +if ($int2 > 0) { + $int3 = calc($int3 + 1); +} +return($int3); diff --git a/scripts/[proc,script1129].cs2 b/scripts/[proc,script1129].cs2 index 06c4fee0e..b3df5eccb 100644 --- a/scripts/[proc,script1129].cs2 +++ b/scripts/[proc,script1129].cs2 @@ -13,5 +13,9 @@ switch_int ($int1) { if ($int2 > %var2772) { return(0); } + case 3 : + if ($int2 > %var3275) { + return(0); + } } return(1); diff --git a/scripts/[proc,script2614].cs2 b/scripts/[proc,script2614].cs2 index 55b9f2691..c288dd5ea 100644 --- a/scripts/[proc,script2614].cs2 +++ b/scripts/[proc,script2614].cs2 @@ -5,75 +5,75 @@ if (stat(magic) < oc_param($obj0, spell_levelreq)) { return(0, null); } switch_component ($component1) { - case magic_spellbook:138, magic_spellbook:137 : + case magic_spellbook:139, magic_spellbook:138 : if (%varbit2451 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:139 : + case magic_spellbook:140 : if (%varbit925 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:124 : + case magic_spellbook:125 : if (%varbit5438 > 0) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:18 : + case magic_spellbook:19 : if ((inv_total(inv, explorers_ring_1_13125) > 0 | inv_total(inv, explorers_ring_2_13126) > 0 | inv_total(inv, explorers_ring_3_13127) > 0 | inv_total(worn, explorers_ring_1_13125) > 0 | inv_total(worn, explorers_ring_2_13126) > 0 | inv_total(worn, explorers_ring_3_13127) > 0 | inv_total(inv, explorers_ring_4_13128) > 0 | inv_total(worn, explorers_ring_4_13128) > 0) & map_members = ^true & %varbit4554 < 30) { return(1, null); } - case magic_spellbook:39 : + case magic_spellbook:40 : if ((inv_total(inv, explorers_ring_4_13128) > 0 | inv_total(worn, explorers_ring_4_13128) > 0) & map_members = ^true & %varbit4554 < 30) { return(1, null); } - case magic_spellbook:171, magic_spellbook:172 : + case magic_spellbook:172, magic_spellbook:173 : if (%varbit12288 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:178 : + case magic_spellbook:179 : if (%varbit12289 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:179 : + case magic_spellbook:180 : if (%varbit12138 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:180, magic_spellbook:181, magic_spellbook:182, magic_spellbook:183, magic_spellbook:184, magic_spellbook:185, magic_spellbook:186, magic_spellbook:187, magic_spellbook:188 : + case magic_spellbook:181, magic_spellbook:182, magic_spellbook:183, magic_spellbook:184, magic_spellbook:185, magic_spellbook:186, magic_spellbook:187, magic_spellbook:188, magic_spellbook:189 : if (%varbit12290 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:176 : + case magic_spellbook:177 : if (%varbit12291 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:177 : + case magic_spellbook:178 : if (%varbit12292 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:170 : + case magic_spellbook:171 : if (%varbit12293 = 1) { if_settrans(150, $component1); } else { if_settrans(0, $component1); } - case magic_spellbook:173, magic_spellbook:174 : + case magic_spellbook:174, magic_spellbook:175 : if (%varbit12423 = 1) { if_settrans(150, $component1); } else { diff --git a/scripts/[proc,script2833].cs2 b/scripts/[proc,script2833].cs2 index ed2fea298..ddaae3dc7 100644 --- a/scripts/[proc,script2833].cs2 +++ b/scripts/[proc,script2833].cs2 @@ -11,7 +11,11 @@ def_int $int6 = 0; def_int $y7 = -1; def_boolean $boolean8 = null; while ($count2 < $count3) { - $struct4 = enum(int, struct, enum_2320, $count2); + if (~league_world = 1) { + $struct4 = enum(int, struct, enum_4106, $count2); + } else { + $struct4 = enum(int, struct, enum_2320, $count2); + } $component5 = enum(int, component, enum_2321, $count2); $boolean8 = struct_param($struct4, param_925); if ($struct4 = struct_3770) { diff --git a/scripts/[proc,script3210].cs2 b/scripts/[proc,script3210].cs2 index 364b751ad..11706d248 100644 --- a/scripts/[proc,script3210].cs2 +++ b/scripts/[proc,script3210].cs2 @@ -7,6 +7,8 @@ switch_enum ($enum0) { return(%varbit10034); case enum_3413 : return(%varbit11689); + case enum_4105 : + return(%varbit13340); case enum_3414 : return(%varbit11692); case default : diff --git a/scripts/[proc,script3211].cs2 b/scripts/[proc,script3211].cs2 index 3608836c0..90c391e01 100644 --- a/scripts/[proc,script3211].cs2 +++ b/scripts/[proc,script3211].cs2 @@ -7,6 +7,8 @@ switch_enum ($enum0) { %varbit10034 = $int1; case enum_3413 : %varbit11689 = $int1; + case enum_4105 : + %varbit13340 = $int1; case enum_3414 : %varbit11692 = $int1; } diff --git a/scripts/[proc,script3292].cs2 b/scripts/[proc,script3292].cs2 index ff9bf41e3..6082b285f 100644 --- a/scripts/[proc,script3292].cs2 +++ b/scripts/[proc,script3292].cs2 @@ -2,9 +2,11 @@ [proc,script3292](struct $struct0)(int) switch_struct ($struct0) { case leagues_i_twisted_723 : - return(1); + return(0); case leagues_ii_trailblazer_1721 : - return(1); + return(0); + case leagues_iii_shattered_relics_3771 : + return(0); case default : return(0); } diff --git a/scripts/[proc,script3809].cs2 b/scripts/[proc,script3809].cs2 index 99132bcc6..0f9d79660 100644 --- a/scripts/[proc,script3809].cs2 +++ b/scripts/[proc,script3809].cs2 @@ -35,4 +35,10 @@ switch_stat ($stat1) { return(0); } } +if (%varbit10032 = 3 & ~league_world = 1 & ~script5830($stat1) = 0) { + if ($int2 = 1) { + mes("You haven't unlocked this skill yet."); + } + return(0); +} return(1); diff --git a/scripts/[proc,script5186].cs2 b/scripts/[proc,script5186].cs2 new file mode 100644 index 000000000..609d4bc3c --- /dev/null +++ b/scripts/[proc,script5186].cs2 @@ -0,0 +1,9 @@ +// 5186 +[proc,script5186](int $int0)(string) +if ($int0 = 50) { + switch_int (%varbit11757) { + case 9 : + return("Fragment unlock"); + } +} +return(enum(int, string, enum_1000, $int0)); diff --git a/scripts/[proc,script5288].cs2 b/scripts/[proc,script5288].cs2 index 37e362656..71bff5ee0 100644 --- a/scripts/[proc,script5288].cs2 +++ b/scripts/[proc,script5288].cs2 @@ -1,20 +1,23 @@ // 5288 -[proc,script5288](component $component0, int $int1, int $int2, int $int3, int $width4, int $height5, struct $struct6, int $colour7)(int) -def_int $int8 = 4; +[proc,script5288](component $component0, int $int1, int $int2, int $int3, int $int4, int $int5, struct $struct6, int $colour7)(int) +def_int $int8 = struct_param($struct6, param_1478); cc_create($component0, ^iftype_rectangle, $int1); cc_setposition(calc($int2 + 1), calc($int3 + 1), ^setpos_abs_left, ^setpos_abs_top); -cc_setsize(calc($width4 - 2), calc($height5 - 2), ^setsize_abs, ^setsize_abs); +cc_setsize(calc($int4 - 2), calc($int5 - 2), ^setsize_abs, ^setsize_abs); cc_setfill(true); cc_setcolour($colour7); -~create_graphic($component0, calc($int1 + 1), struct_param($struct6, param_1391), calc($int2 + 4), calc($int3 + 4), ^setpos_abs_left, ^setpos_abs_top, calc($width4 - 8), calc($height5 - 8), ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 2), struct_param($struct6, param_1388), calc($int2 + $int8), $int3, ^setpos_abs_left, ^setpos_abs_top, calc($width4 - 2 * $int8), $int8, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 3), struct_param($struct6, param_1394), calc($int2 + $int8), calc($int3 + $height5 - $int8), ^setpos_abs_left, ^setpos_abs_top, calc($width4 - 2 * $int8), $int8, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 4), struct_param($struct6, param_1390), $int2, calc($int3 + $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, calc($height5 - 2 * $int8), ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 5), struct_param($struct6, param_1392), calc($int2 + $width4 - $int8), calc($int3 + $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, calc($height5 - 2 * $int8), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 1), struct_param($struct6, param_1391), calc($int2 + 4), calc($int3 + 4), ^setpos_abs_left, ^setpos_abs_top, calc($int4 - 8), calc($int5 - 8), ^setsize_abs, ^setsize_abs); +if (struct_param($struct6, param_1391) = null) { + cc_sethide(true); +} +~create_graphic($component0, calc($int1 + 2), struct_param($struct6, param_1388), calc($int2 + $int8), $int3, ^setpos_abs_left, ^setpos_abs_top, calc($int4 - 2 * $int8), $int8, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 3), struct_param($struct6, param_1394), calc($int2 + $int8), calc($int3 + $int5 - $int8), ^setpos_abs_left, ^setpos_abs_top, calc($int4 - 2 * $int8), $int8, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 4), struct_param($struct6, param_1390), $int2, calc($int3 + $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, calc($int5 - 2 * $int8), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 5), struct_param($struct6, param_1392), calc($int2 + $int4 - $int8), calc($int3 + $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, calc($int5 - 2 * $int8), ^setsize_abs, ^setsize_abs); ~create_graphic($component0, calc($int1 + 6), struct_param($struct6, param_1387), $int2, $int3, ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 7), struct_param($struct6, param_1389), calc($int2 + $width4 - $int8), $int3, ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 8), struct_param($struct6, param_1393), $int2, calc($int3 + $height5 - $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); -~create_graphic($component0, calc($int1 + 9), struct_param($struct6, param_1395), calc($int2 + $width4 - $int8), calc($int3 + $height5 - $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 7), struct_param($struct6, param_1389), calc($int2 + $int4 - $int8), $int3, ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 8), struct_param($struct6, param_1393), $int2, calc($int3 + $int5 - $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 9), struct_param($struct6, param_1395), calc($int2 + $int4 - $int8), calc($int3 + $int5 - $int8), ^setpos_abs_left, ^setpos_abs_top, $int8, $int8, ^setsize_abs, ^setsize_abs); if (cc_find($component0, $int1) = ^true) { return(calc($int1 + 10)); } diff --git a/scripts/[proc,script5291].cs2 b/scripts/[proc,script5291].cs2 index 1b9de2274..222f82f15 100644 --- a/scripts/[proc,script5291].cs2 +++ b/scripts/[proc,script5291].cs2 @@ -1,5 +1,5 @@ // 5291 -[proc,script5291](component $component0, int $int1, int $int2, int $int3, int $int4, int $colour5, fontmetrics $fontmetrics6, int $colour7, int $int8, graphic $graphic9, int $int10, int $int11, int $int12, int $int13, int $int14, string $text0)(int) +[proc,script5291](component $component0, int $int1, int $int2, int $int3, int $int4, int $colour5, string $text0, fontmetrics $fontmetrics6, int $colour7, int $int8, graphic $graphic9, int $int10, int $int11, int $int12, int $int13, int $int14)(int) def_int $int15 = 4; def_int $int16 = 1; def_int $int17 = calc($int2 * ($int3 + $int4)); diff --git a/scripts/[proc,script5465].cs2 b/scripts/[proc,script5465].cs2 new file mode 100644 index 000000000..e19392dab --- /dev/null +++ b/scripts/[proc,script5465].cs2 @@ -0,0 +1,7 @@ +// 5465 +[proc,script5465](int $int0)(int) +def_struct $struct1 = enum(int, struct, enum_2670, $int0); +if ($struct1 = null) { + return(16750623); +} +return(struct_param($struct1, param_1027)); diff --git a/scripts/[proc,script5738].cs2 b/scripts/[proc,script5738].cs2 new file mode 100644 index 000000000..3c5c2a641 --- /dev/null +++ b/scripts/[proc,script5738].cs2 @@ -0,0 +1,3 @@ +// 5738 +[proc,script5738]()(int) +return(3); diff --git a/scripts/[proc,script5739].cs2 b/scripts/[proc,script5739].cs2 new file mode 100644 index 000000000..6576dad9d --- /dev/null +++ b/scripts/[proc,script5739].cs2 @@ -0,0 +1,24 @@ +// 5739 +[proc,script5739](component $component0, component $component1, int $int2)(int) +if (%varbit13395 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3773, -1) = 1) { + $int2 = calc($int2 + 1); +} +if (%varbit13396 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3774, -1) = 1) { + $int2 = calc($int2 + 1); +} +if (%varbit13397 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3775, -1) = 1) { + $int2 = calc($int2 + 1); +} +if (%varbit13398 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3776, -1) = 1) { + $int2 = calc($int2 + 1); +} +if (%varbit13399 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3777, -1) = 1) { + $int2 = calc($int2 + 1); +} +if (%varbit13401 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3778, -1) = 1) { + $int2 = calc($int2 + 1); +} +if (%varbit13402 > 0 & ~buff_bar_buff_create($component0, $int2, $component1, struct_3779, -1) = 1) { + $int2 = calc($int2 + 1); +} +return($int2); diff --git a/scripts/[proc,script5740].cs2 b/scripts/[proc,script5740].cs2 new file mode 100644 index 000000000..bf6196fa9 --- /dev/null +++ b/scripts/[proc,script5740].cs2 @@ -0,0 +1,11 @@ +// 5740 +[proc,script5740](int $int0)(graphic) +if ($int0 <= 0) { + return(null); +} +def_struct $struct1 = enum(int, struct, enum_4136, $int0); +if ($struct1 = null) { + return(null); +} +def_graphic $graphic2 = enum(int, graphic, enum_4140, struct_param($struct1, param_1461)); +return($graphic2); diff --git a/scripts/[proc,script5741].cs2 b/scripts/[proc,script5741].cs2 new file mode 100644 index 000000000..d872e70b8 --- /dev/null +++ b/scripts/[proc,script5741].cs2 @@ -0,0 +1,11 @@ +// 5741 +[proc,script5741](int $int0)(graphic) +if ($int0 <= 0) { + return(null); +} +def_struct $struct1 = enum(int, struct, enum_4136, $int0); +if ($struct1 = null) { + return(null); +} +def_graphic $graphic2 = enum(int, graphic, enum_4142, struct_param($struct1, param_1461)); +return($graphic2); diff --git a/scripts/[proc,script5742].cs2 b/scripts/[proc,script5742].cs2 new file mode 100644 index 000000000..0c64f661b --- /dev/null +++ b/scripts/[proc,script5742].cs2 @@ -0,0 +1,13 @@ +// 5742 +[proc,script5742](int $int0)(string) +if ($int0 <= 0) { + return("Active league fragment."); +} +def_struct $struct1 = enum(int, struct, enum_4136, $int0); +if ($struct1 = null) { + return(""); +} +def_string $string0 = struct_param($struct1, param_1448); +def_string $string1 = struct_param($struct1, param_1449); +def_string $string2 = "<$string0>
<$string1>"; +return($string2); diff --git a/scripts/[proc,script5743].cs2 b/scripts/[proc,script5743].cs2 new file mode 100644 index 000000000..842922b15 --- /dev/null +++ b/scripts/[proc,script5743].cs2 @@ -0,0 +1,33 @@ +// 5743 +[proc,script5743](component $component0, component $component1, int $int2)(int) +def_struct $struct3 = enum(int, struct, enum_2670, %varbit10032); +if ($struct3 = null) { + return($int2); +} +def_enum $enum4 = struct_param($struct3, param_1433); +if ($enum4 = null) { + return($int2); +} +def_int $count5 = 0; +def_int $count6 = enum_getoutputcount($enum4); +def_int $int7 = 0; +def_int $int8 = 0; +def_int $int9 = 0; +def_struct $struct10 = null; +def_struct $struct11 = null; +while ($count5 < $count6) { + $struct10 = enum(int, struct, $enum4, $count5); + if ($struct10 ! null) { + $int9 = struct_param($struct10, param_1464); + $int7 = ~script5792($int9); + $int8 = struct_param($struct10, param_1468); + if ($int7 >= $int8) { + $struct11 = struct_param($struct10, param_1432); + if ($struct11 ! null & ~buff_bar_buff_create($component0, $int2, $component1, $struct11, -1) = 1) { + $int2 = calc($int2 + 1); + } + } + } + $count5 = calc($count5 + 1); +} +return($int2); diff --git a/scripts/[proc,script5744].cs2 b/scripts/[proc,script5744].cs2 new file mode 100644 index 000000000..bf479a939 --- /dev/null +++ b/scripts/[proc,script5744].cs2 @@ -0,0 +1,6 @@ +// 5744 +[proc,script5744]()(int) +if (%varbit10032 = 3) { + return(14); +} +return(12); diff --git a/scripts/[proc,script5746].cs2 b/scripts/[proc,script5746].cs2 new file mode 100644 index 000000000..52b7f0209 --- /dev/null +++ b/scripts/[proc,script5746].cs2 @@ -0,0 +1,21 @@ +// 5746 +[proc,script5746](component $component0, component $component1, component $component2, component $component3, int $comsubid4, int $int5) +def_int $int6 = ~script5465(3); +cc_deleteall($component0); +cc_deleteall($component1); +cc_deleteall($component2); +def_struct $struct7 = enum(int, struct, enum_2670, %varbit10032); +if ($struct7 = null) { + return; +} +def_int $int8 = 0; +~leagues_menu_button($component0, $int8, $component1, $component2); +$int8 = 0; +~league_create_dropdown($component0, $component1, $component2, $int8, 2); +$int8 = 0; +def_int $colour9 = 0xff981f; +$colour9 = struct_param($struct7, param_1027); +if (cc_find(interface_735:6, $comsubid4) = ^true) { + cc_setcolour($colour9); +} +$int8 = 0; diff --git a/scripts/[proc,script5749].cs2 b/scripts/[proc,script5749].cs2 new file mode 100644 index 000000000..0f2028210 --- /dev/null +++ b/scripts/[proc,script5749].cs2 @@ -0,0 +1,5 @@ +// 5749 +[proc,script5749](component $component0, int $int1)(int) +cc_create($component0, ^iftype_rectangle, $int1); +cc_sethide(true); +return(calc($int1 + 1)); diff --git a/scripts/[proc,script5751].cs2 b/scripts/[proc,script5751].cs2 new file mode 100644 index 000000000..3c84da7d0 --- /dev/null +++ b/scripts/[proc,script5751].cs2 @@ -0,0 +1,70 @@ +// 5751 +[proc,script5751](component $component0, component $component1) +def_int $height2 = if_getscrollheight($component0); +cc_deleteall($component0); +cc_deleteall($component1); +def_int $int3 = 0; +def_int $int4 = 1; +def_int $int5 = 0; +def_int $int6 = 0; +def_struct $struct7 = enum(int, struct, enum_4136, $int4); +while ($struct7 ! null) { + $int6 = 0; + if (%varcint968 > 0 & struct_param($struct7, param_1453) ! %varcint968) { + $int6 = 1; + } + if (%varcint969 > 0 & struct_param($struct7, param_1459) ! %varcint969 & struct_param($struct7, param_1460) ! %varcint969) { + $int6 = 1; + } + if (%varcint970 > 0 & ~script5789(~script5788(struct_param($struct7, param_1455))) ! %varcint970) { + $int6 = 1; + } + if (%varcint971 > 0) { + if (%varcint971 = 1 & ~script5788(struct_param($struct7, param_1455)) > 0) { + $int6 = 1; + } + if (%varcint971 = 2 & ~script5788(struct_param($struct7, param_1455)) < 1) { + $int6 = 1; + } + } + $int3 = ~script5752($component0, $int3, $int5, $struct7, $int6); + if ($int6 = 0) { + $int5 = calc($int5 + 1); + } + $int4 = calc($int4 + 1); + $struct7 = enum(int, struct, enum_4136, $int4); +} +def_int $height8 = calc($int5 * 42); +if ($height8 < if_getheight($component0)) { + cc_create($component0, ^iftype_rectangle, $int3); + cc_setsize(0, calc(if_getheight($component0) - $height8), ^setsize_minus, ^setsize_abs); + cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_bottom); + cc_setcolour(^black); + cc_setfill(true); + if (calc($int5 % 2) = 0) { + cc_settrans(200); + } else { + cc_settrans(220); + } + $int3 = calc($int3 + 1); + $height8 = if_getheight($component0); +} +if ($int5 = 0) { + cc_create($component0, ^iftype_text, $int3); + cc_setposition(10, 20, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(20, 30, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 18); + cc_settext("All Fragments filtered"); + cc_settextshadow(true); + cc_settextfont(b12_full); + cc_setcolour(~script5465(3)); + $int3 = calc($int3 + 1); +} +if_setscrollsize(if_getwidth($component0), $height8, $component0); +if ($height2 ! if_getscrollheight($component0)) { + if_setscrollpos(0, 0, $component0); +} +~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +if (cc_find($component1, 1) = ^true) { + ~scrollbar_vertical_setdragger($component1, $component0); +} diff --git a/scripts/[proc,script5752].cs2 b/scripts/[proc,script5752].cs2 new file mode 100644 index 000000000..5c60a6cac --- /dev/null +++ b/scripts/[proc,script5752].cs2 @@ -0,0 +1,88 @@ +// 5752 +[proc,script5752](component $component0, int $int1, int $int2, struct $struct3, int $int4)(int) +if ($int4 = 1) { + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + $int1 = ~script5749($component0, $int1); + return($int1); +} +def_int $int5 = 42; +def_int $colour6 = ~script5465(3); +def_int $int7 = ~min(~script5788(struct_param($struct3, param_1455)), 8000); +cc_create($component0, ^iftype_rectangle, $int1); +cc_setsize(0, $int5, ^setsize_minus, ^setsize_abs); +cc_setposition(0, calc($int5 * $int2), ^setpos_abs_left, ^setpos_abs_top); +cc_setcolour(^black); +cc_setfill(true); +if (calc($int2 % 2) = 0) { + cc_settrans(200); +} else { + cc_settrans(220); +} +cc_setop(1, "View"); +if ($int7 > 0) { + cc_setop(2, "Equip"); +} +cc_setopbase(""); +if (~on_mobile = false) { + cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)"); + cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, ^black)"); +} +cc_setonop("script5776(interface_735:32, interface_735:33, struct_param($struct3, param_1455), event_opindex, 1, 0)"); +$int1 = calc($int1 + 1); +def_int $comsubid8 = calc($int1 + 1); +$int1 = ~script5793($component0, $int1, 5, calc($int5 * $int2 + 5), struct_param($struct3, param_1461), $int7, 0); +if (cc_find($component0, $comsubid8) = ^true) { + cc_setdragdeadzone(5); + cc_setdragdeadtime(5); + if (%varbit13395 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } + if (%varbit13396 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } + if (%varbit13397 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } + if (%varbit13398 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } + if (%varbit13399 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } + if (%varbit13401 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } + if (%varbit13402 = struct_param($struct3, param_1455)) { + cc_sethide(true); + } +} +cc_create($component0, ^iftype_text, $int1); +cc_setposition(42, calc($int5 * $int2 + 5), ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(47, 15, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, 0); +cc_settext(struct_param($struct3, param_1448)); +cc_settextshadow(true); +cc_settextfont(b12_full); +if ($int7 = 0) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour($colour6); +} +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +cc_setposition(42, calc($int5 * $int2 + 24), ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(47, 15, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, 0); +cc_settext(struct_param($struct3, param_1449)); +cc_settextshadow(true); +cc_settextfont(p11_full); +cc_setcolour(0xcfcfcf); +$int1 = calc($int1 + 1); +return($int1); diff --git a/scripts/[proc,script5756].cs2 b/scripts/[proc,script5756].cs2 new file mode 100644 index 000000000..92d124dcd --- /dev/null +++ b/scripts/[proc,script5756].cs2 @@ -0,0 +1,8 @@ +// 5756 +[proc,script5756](component $component0, component $component1, component $component2) +if_sethide(true, $component1); +if_settext("Show Filters", $component2); +if_setonop("script5754($component0, $component1, $component2)", $component0); +if_setop(1, "Show", $component0); +if_setopbase("Filters", $component0); +~script5751(interface_735:17, interface_735:18); diff --git a/scripts/[proc,script5758].cs2 b/scripts/[proc,script5758].cs2 new file mode 100644 index 000000000..4c2ac1256 --- /dev/null +++ b/scripts/[proc,script5758].cs2 @@ -0,0 +1,14 @@ +// 5758 +[proc,script5758](component $component0, component $component1) +def_int $colour2 = ~script5465(3); +if (%varcint968 < 1 & %varcint969 < 1 & %varcint970 < 1 & %varcint971 < 1) { + ~v2_stone_button_in($component0); + if_setcolour(0xcfcfcf, $component1); + if_setonmouseover(null, $component0); + if_setonmouseleave(null, $component0); +} else { + ~v2_stone_button($component0); + if_setcolour($colour2, $component1); + if_setonmouseover("v2_stone_button_in($component0)", $component0); + if_setonmouseleave("v2_stone_button($component0)", $component0); +} diff --git a/scripts/[proc,script5761].cs2 b/scripts/[proc,script5761].cs2 new file mode 100644 index 000000000..8295c3fbc --- /dev/null +++ b/scripts/[proc,script5761].cs2 @@ -0,0 +1,11 @@ +// 5761 +[proc,script5761](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +def_int $colour8 = ~script5465(3); +~script5771($component1, enum_4180, %varcint968, $colour8); +if_setonop("script5762($component5, $component6, $component7, $component1, enum_4180, $colour8)", $component1); +~script5771($component3, enum_4181, %varcint969, $colour8); +if_setonop("script5763($component5, $component6, $component7, $component3, enum_4181, $colour8)", $component3); +~script5771($component2, enum_4182, %varcint970, $colour8); +if_setonop("script5764($component5, $component6, $component7, $component2, enum_4182, $colour8)", $component2); +~script5771($component4, enum_4183, %varcint971, $colour8); +if_setonop("script5765($component5, $component6, $component7, $component4, enum_4183, $colour8)", $component4); diff --git a/scripts/[proc,script5770].cs2 b/scripts/[proc,script5770].cs2 new file mode 100644 index 000000000..d7713f02b --- /dev/null +++ b/scripts/[proc,script5770].cs2 @@ -0,0 +1,4 @@ +// 5770 +[proc,script5770](component $component0, component $component1, int $count2, enum $enum3, int $colour4) +~script5771($component1, $enum3, $count2, $colour4); +if_sethide(true, if_getlayer($component0)); diff --git a/scripts/[proc,script5771].cs2 b/scripts/[proc,script5771].cs2 new file mode 100644 index 000000000..e4981f41b --- /dev/null +++ b/scripts/[proc,script5771].cs2 @@ -0,0 +1,23 @@ +// 5771 +[proc,script5771](component $component0, enum $enum1, int $int2, int $colour3) +def_string $text0 = enum(int, string, $enum1, $int2); +cc_deleteall($component0); +def_int $int4 = 0; +~create_graphic($component0, $int4, "tradebacking", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 0, 0, ^setsize_minus, ^setsize_minus); +$int4 = calc($int4 + 1); +$int4 = ~thinbox($component0, $int4); +~create_graphic($component0, $int4, "scrollbar_v2,1", 2, 2, ^setpos_abs_right, ^setpos_abs_top, 16, 16, ^setsize_abs, ^setsize_abs); +if (~on_mobile = false) { + if_setonmouseover("cc_settrans($component0, $int4, 125, null)", $component0); + if_setonmouseleave("cc_settrans($component0, $int4, 0, null)", $component0); +} +if_setop(1, "Expand", $component0); +$int4 = calc($int4 + 1); +cc_create($component0, ^iftype_text, $int4); +cc_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_bottom); +cc_setsize(20, 4, ^setsize_minus, ^setsize_minus); +cc_settextfont(p11_full); +cc_setcolour($colour3); +cc_settextshadow(true); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settext($text0); diff --git a/scripts/[proc,script5772].cs2 b/scripts/[proc,script5772].cs2 new file mode 100644 index 000000000..7890035ea --- /dev/null +++ b/scripts/[proc,script5772].cs2 @@ -0,0 +1,107 @@ +// 5772 +[proc,script5772](component $component0, component $component1, component $component2, component $component3, enum $enum4, int $colour5) +def_component $layer6 = if_getlayer($component0); +def_int $int7 = 14; +if (~on_mobile = true) { + $int7 = 26; +} +def_int $int8 = 212; +def_int $int9 = ~min(calc($int7 * enum_getoutputcount($enum4) + 4), $int8); +def_int $x10 = 0; +def_int $int11 = 0; +def_int $height12 = if_getheight($component3); +$x10, $int11 = ~script5774($component3, if_getlayer($component0)); +def_int $int13 = 1; +if (calc($int11 + $height12 + $int9) > if_getheight(if_getlayer($component0))) { + $int13 = 0; +} +if_sethide(false, $layer6); +if_sethide(false, $component0); +cc_deleteall($component0); +cc_deleteall($component1); +cc_deleteall($component2); +def_int $int14 = 0; +if ($int13 = 1) { + if_setposition($x10, $int11, ^setpos_abs_left, ^setpos_abs_top, $component0); + if_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_bottom, $component1); + if_setposition(2, 2, ^setpos_abs_right, ^setpos_abs_bottom, $component2); + $int14 = calc($height12 - 1); +} else { + if_setposition($x10, calc($int11 - $int9 + 1), ^setpos_abs_left, ^setpos_abs_top, $component0); + if_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_top, $component1); + if_setposition(2, 2, ^setpos_abs_right, ^setpos_abs_top, $component2); +} +if_setsize(if_getwidth($component3), calc($int9 + $height12 - 1), ^setsize_abs, ^setsize_abs, $component0); +if (~on_mobile = true) { + if_setsize(0, calc($int9 - 4), ^setsize_minus, ^setsize_abs, $component1); +} else { + if_setsize(20, calc($int9 - 4), ^setsize_minus, ^setsize_abs, $component1); +} +if_setsize(if_getwidth($component2), calc($int9 - 4), ^setsize_abs, ^setsize_abs, $component2); +def_int $int15 = 0; +def_int $int16 = 0; +def_int $width17 = if_getwidth($component1); +if (~on_mobile = true & calc($int7 * enum_getoutputcount($enum4)) > if_getheight($component1)) { + if_setsize(calc(if_getwidth($component0) * 2), calc($int9 + $height12 - 1), ^setsize_abs, ^setsize_abs, $component0); +} +~create_graphic($component1, $int16, "tradebacking", 0, 0, ^setpos_abs_left, ^setpos_abs_top, 0, 0, ^setsize_minus, ^setsize_minus); +$int16 = calc($int16 + 1); +$int15 = ~thinbox_specific($component0, $int15, 0, $int14, if_getwidth($component0), $int9, ^setpos_abs_left, ^setpos_abs_top); +def_int $int18 = 0; +def_int $int19 = 0; +def_int $count20 = 0; +while ($count20 < enum_getoutputcount($enum4)) { + $int16, $int19 = ~script5773($component1, $int16, $int18, $int19, $width17, enum(int, string, $enum4, $count20), $colour5, $int7); + $count20 = calc($count20 + 1); + if (~on_mobile = true & calc($int19 + $int7) > if_getheight($component1)) { + $int18 = calc($int18 + $width17); + $int19 = 0; + } +} +if (~on_mobile = true) { + if_setonclick("comp_sethide(true, $layer6)", $layer6); +} else { + if_setonmouserepeat("comp_sethide(true, $layer6)", $layer6); +} +cc_create($component0, ^iftype_rectangle, $int15); +cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top); +if ($int13 = 0) { + cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_bottom); +} +cc_setsize(0, calc($height12 + 1), ^setsize_minus, ^setsize_abs); +cc_setcolour(^white); +cc_setfill(true); +cc_settrans(255); +cc_setnoclickthrough(true); +cc_setop(1, "Close"); +cc_setonop("comp_sethide(true, $component0)"); +$int15 = calc($int15 + 1); +if ($int13 = 1) { + if (~on_mobile = true) { + ~create_graphic($component0, $int15, "tradebacking", calc($width17 - 18), 2, ^setpos_abs_left, ^setpos_abs_top, 16, 16, ^setsize_abs, ^setsize_abs); + $int15 = calc($int15 + 1); + ~create_graphic($component0, $int15, "scrollbar_v2,0", calc($width17 - 18), 2, ^setpos_abs_left, ^setpos_abs_top, 16, 16, ^setsize_abs, ^setsize_abs); + } else { + ~create_graphic($component0, $int15, "tradebacking", 2, 2, ^setpos_abs_right, ^setpos_abs_top, 16, 16, ^setsize_abs, ^setsize_abs); + $int15 = calc($int15 + 1); + ~create_graphic($component0, $int15, "scrollbar_v2,0", 2, 2, ^setpos_abs_right, ^setpos_abs_top, 16, 16, ^setsize_abs, ^setsize_abs); + } +} else if (~on_mobile = true) { + ~create_graphic($component0, $int15, "tradebacking", calc($width17 - 18), 2, ^setpos_abs_left, ^setpos_abs_bottom, 16, 16, ^setsize_abs, ^setsize_abs); + $int15 = calc($int15 + 1); + ~create_graphic($component0, $int15, "scrollbar_v2,0", calc($width17 - 18), 2, ^setpos_abs_left, ^setpos_abs_bottom, 16, 16, ^setsize_abs, ^setsize_abs); +} else { + ~create_graphic($component0, $int15, "tradebacking", 2, 2, ^setpos_abs_right, ^setpos_abs_bottom, 16, 16, ^setsize_abs, ^setsize_abs); + $int15 = calc($int15 + 1); + ~create_graphic($component0, $int15, "scrollbar_v2,0", 2, 2, ^setpos_abs_right, ^setpos_abs_bottom, 16, 16, ^setsize_abs, ^setsize_abs); +} +if (~on_mobile = false & cc_find($component0, calc($int15 - 2)) = ^true) { + cc_setonmouseover("cc_settrans($component0, $int15, 125, null)"); + cc_setonmouseleave("cc_settrans($component0, $int15, 0, null)"); +} +$int15 = calc($int15 + 1); +if_setscrollsize(0, $int19, $component1); +if_setscrollpos(0, 0, $component1); +if (~on_mobile = false) { + ~scrollbar_vertical($component2, $component1, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +} diff --git a/scripts/[proc,script5773].cs2 b/scripts/[proc,script5773].cs2 new file mode 100644 index 000000000..cc3e395ce --- /dev/null +++ b/scripts/[proc,script5773].cs2 @@ -0,0 +1,26 @@ +// 5773 +[proc,script5773](component $component0, int $int1, int $x2, int $int3, int $width4, string $text0, int $colour5, int $int6)(int, int) +cc_create($component0, ^iftype_rectangle, $int1); +cc_setposition($x2, $int3, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize($width4, $int6, ^setsize_abs, ^setsize_abs); +cc_setcolour(^white); +cc_setfill(true); +cc_settrans(255); +if (~on_mobile = false) { + cc_setonmouseover("cc_settrans($component0, $int1, 220, null)"); + cc_setonmouseleave("cc_settrans($component0, $int1, 255, null)"); +} +cc_setop(1, "Select"); +cc_setopbase("<$text0>"); +$int1 = calc($int1 + 1); +.cc_create($component0, ^iftype_text, $int1); +.cc_setposition($x2, $int3, ^setpos_abs_left, ^setpos_abs_top); +.cc_setsize($width4, $int6, ^setsize_abs, ^setsize_abs); +.cc_settextfont(p11_full); +.cc_setcolour($colour5); +.cc_settextshadow(true); +.cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +.cc_settext($text0); +$int1 = calc($int1 + 1); +$int3 = calc($int3 + $int6); +return($int1, $int3); diff --git a/scripts/[proc,script5774].cs2 b/scripts/[proc,script5774].cs2 new file mode 100644 index 000000000..a1984d358 --- /dev/null +++ b/scripts/[proc,script5774].cs2 @@ -0,0 +1,11 @@ +// 5774 +[proc,script5774](component $component0, component $layer1)(int, int) +if (if_getlayer($component0) = null | if_getlayer($component0) = $layer1) { + return(if_getx($component0), if_gety($component0)); +} +def_int $int2 = 0; +def_int $int3 = 0; +$int2, $int3 = ~script5774(if_getlayer($component0), $layer1); +$int2 = calc($int2 + if_getx($component0)); +$int3 = calc($int3 + if_gety($component0)); +return($int2, $int3); diff --git a/scripts/[proc,script5777].cs2 b/scripts/[proc,script5777].cs2 new file mode 100644 index 000000000..1e845af60 --- /dev/null +++ b/scripts/[proc,script5777].cs2 @@ -0,0 +1,180 @@ +// 5777 +[proc,script5777](component $component0, component $component1, int $int2, int $int3, int $int4, int $int5) +if ($int3 ! 1) { + return; +} +if_setonvartransmit("script5775($component0, $component1, $int2, 1, 0, 0){var3279, var3280, var3281}", $component0); +def_int $colour6 = ~script5465(3); +def_string $text0 = ""; +~v2_stone_button(interface_735:12); +~v2_stone_button(interface_735:14); +if_setcolour($colour6, interface_735:13); +if_setcolour($colour6, interface_735:15); +if (~on_mobile = false) { + if_setonmouseover("v2_stone_button_in(event_com)", interface_735:12); + if_setonmouseover("v2_stone_button_in(event_com)", interface_735:14); + if_setonmouseleave("v2_stone_button(event_com)", interface_735:12); + if_setonmouseleave("v2_stone_button(event_com)", interface_735:14); +} +def_int $height7 = if_getscrollheight($component0); +def_int $int8 = 5; +def_int $height9 = 15; +cc_deleteall($component0); +def_int $int10 = 0; +def_struct $struct11 = null; +def_int $int12 = 0; +def_int $int13 = 0; +def_int $height14 = 0; +def_int $int15 = 0; +cc_create($component0, ^iftype_rectangle, $int10); +cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_setcolour(^black); +cc_setfill(true); +cc_settrans(200); +$int10 = calc($int10 + 1); +if ($int2 = -1) { + if_setcolour(0xcfcfcf, interface_735:13); + ~v2_stone_button_in(interface_735:12); + if_setonmouseover(null, interface_735:12); + if_setonmouseleave(null, interface_735:12); + $int10, $height14 = ~script5778($component0, $int10); +} else if ($int2 = 0) { + if_setcolour(0xcfcfcf, interface_735:15); + ~v2_stone_button_in(interface_735:14); + if_setonmouseover(null, interface_735:14); + if_setonmouseleave(null, interface_735:14); + $int10, $height14 = ~script5781($component0, $int10); +} else { + $struct11 = enum(int, struct, enum_4136, $int2); + $int12 = ~min(~script5788($int2), 8000); + $int13 = ~script5789($int12); + $int10 = ~script5782($component0, $int10, struct_param($struct11, param_1448), struct_param($struct11, param_1449)); + $int10 = ~script5793($component0, $int10, calc(if_getwidth($component0) / 2 - 16), 38, struct_param($struct11, param_1461), $int12, 0); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(24, 84, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(48, 4, ^setsize_minus, ^setsize_abs); + cc_setcolour(0x726451); + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(23, 82, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(3, 8, ^setsize_abs, ^setsize_abs); + cc_setcolour(0x726451); + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(24, 83, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(1, 6, ^setsize_abs, ^setsize_abs); + if ($int13 < 1) { + cc_setcolour(^black); + } else { + cc_setcolour($colour6); + } + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(63, 82, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(3, 8, ^setsize_abs, ^setsize_abs); + cc_setcolour(0x726451); + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(23, 82, ^setpos_abs_right, ^setpos_abs_top); + cc_setsize(3, 8, ^setsize_abs, ^setsize_abs); + cc_setcolour(0x726451); + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(24, 83, ^setpos_abs_right, ^setpos_abs_top); + cc_setsize(1, 6, ^setsize_abs, ^setsize_abs); + if ($int13 < 3) { + cc_setcolour(^black); + } else { + cc_setcolour($colour6); + } + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(25, 85, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(50, 2, ^setsize_minus, ^setsize_abs); + cc_setcolour(^black); + cc_setfill(true); + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(25, 85, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(scale($int12, 8000, calc(if_getwidth($component0) - 49)), 2, ^setsize_abs, ^setsize_abs); + cc_setcolour($colour6); + cc_setfill(true); + $int10 = calc($int10 + 1); + cc_create($component0, ^iftype_rectangle, $int10); + cc_setposition(64, 83, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(1, 6, ^setsize_abs, ^setsize_abs); + if ($int13 < 2) { + cc_setcolour(^black); + } else { + cc_setcolour($colour6); + } + $int10 = calc($int10 + 1); + if (~on_mobile = false) { + ~create_graphic($component0, $int10, "graphic_4233", 14, 92, ^setpos_abs_left, ^setpos_abs_top, 20, 6, ^setsize_abs, ^setsize_abs); + $int10 = calc($int10 + 1); + ~create_graphic($component0, $int10, "graphic_4234", 55, 92, ^setpos_abs_left, ^setpos_abs_top, 20, 6, ^setsize_abs, ^setsize_abs); + $int10 = calc($int10 + 1); + ~create_graphic($component0, $int10, "graphic_4235", 172, 92, ^setpos_abs_left, ^setpos_abs_top, 20, 6, ^setsize_abs, ^setsize_abs); + $int10 = calc($int10 + 1); + } + cc_create($component0, ^iftype_text, $int10); + cc_setposition($int8, 70, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int8 * 2), $height9, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settextfont(p11_full); + cc_setcolour(0xcfcfcf); + if ($int13 = 0) { + cc_settext("Locked"); + } else { + cc_settext("/"); + } + $int10 = calc($int10 + 1); + $height14 = 100; + $int10, $height14 = ~script5783($component0, $int10, $height14, "Base Effects", $colour6); + if ($int13 < 1) { + $int15 = 0; + } else { + $int15 = 1; + } + $text0 = "Level 1:"; + if (~on_mobile = true) { + $text0 = "Level 1: (1)"; + } + $int10, $height14 = ~script5784($component0, $int10, $height14, $text0, struct_param($struct11, param_1450), $int15); + if ($int13 < 2) { + $int15 = 0; + } else { + $int15 = 1; + } + $text0 = "Level 2:"; + if (~on_mobile = true) { + $text0 = "Level 2: ()"; + } + $int10, $height14 = ~script5784($component0, $int10, $height14, $text0, struct_param($struct11, param_1451), $int15); + if ($int13 < 3) { + $int15 = 0; + } else { + $int15 = 1; + } + $text0 = "Level 3:"; + if (~on_mobile = true) { + $text0 = "Level 3: ()"; + } + $int10, $height14 = ~script5784($component0, $int10, $height14, $text0, struct_param($struct11, param_1452), $int15); + $int10, $height14 = ~script5783($component0, $int10, $height14, "Set Effects", $colour6); + $int10, $height14 = ~script5785($component0, $int10, $height14, enum(int, struct, enum_4137, struct_param($struct11, param_1459))); + $int10, $height14 = ~script5785($component0, $int10, $height14, enum(int, struct, enum_4137, struct_param($struct11, param_1460))); +} +if ($height14 > if_getheight($component0)) { + if_setscrollsize(0, $height14, $component0); +} else { + if_setscrollsize(0, 0, $component0); +} +if ($height7 ! if_getscrollheight($component0) | $int4 = 1) { + if_setscrollpos(0, 0, $component0); + cc_deleteall($component1); + ~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); + ~scrollbar_resize($component1, $component0, $int5); +} diff --git a/scripts/[proc,script5778].cs2 b/scripts/[proc,script5778].cs2 new file mode 100644 index 000000000..1abdfab63 --- /dev/null +++ b/scripts/[proc,script5778].cs2 @@ -0,0 +1,65 @@ +// 5778 +[proc,script5778](component $component0, int $int1)(int, int) +def_int $int2 = ~script5465(3); +def_int $int3 = 0; +def_int $int4 = ~script5786; +def_int $int5 = 1; +$int1 = ~script5782($component0, $int1, "Passive Effects", "Effects gained from League Tiers."); +$int3 = calc($int3 + 40); +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier I", 0, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot I."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Your League XP multiplier starts at 5x."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "A free Combat Fragment."); +$int3 = calc($int3 + 5); +if ($int4 < 2) { + $int5 = 0; +} +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier II", 10, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot II."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Your run energy will never drain whilst running."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "All un-started clues are stackable as Scroll Boxes."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "The Smooth Criminal Fragment."); +$int3 = calc($int3 + 5); +if ($int4 < 3) { + $int5 = 0; +} +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier III", 300, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot III."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Your League XP multiplier increases from 5x to 8x."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Kourend Favour is doubled."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "A random Combat Fragment."); +$int3 = calc($int3 + 5); +if ($int4 < 4) { + $int5 = 0; +} +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier IV", 1500, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot IV."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Items from some sources will be 2x as common."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "A random Skilling Fragment."); +$int3 = calc($int3 + 5); +if ($int4 < 5) { + $int5 = 0; +} +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier V", 3000, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot V."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Your League XP multiplier increases from 8x to 12x."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "A random Combat Fragment."); +$int3 = calc($int3 + 5); +if ($int4 < 6) { + $int5 = 0; +} +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier VI", 7500, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot VI."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Items from some sources will be 3x as common."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "When getting a Slayer Task, you can choose which task to receive. The same task can be chosen repeatedly."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "A random Skilling Fragment."); +$int3 = calc($int3 + 5); +if ($int4 < 7) { + $int5 = 0; +} +$int1, $int3 = ~script5779($component0, $int1, $int3, "Tier VII", 15000, $int5); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Unlock Fragment Slot VII."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "Your League XP multiplier increases from 12x to 16x."); +$int1, $int3 = ~script5780($component0, $int1, $int3, "A random Combat Fragment."); +$int3 = calc($int3 + 5); +return($int1, $int3); diff --git a/scripts/[proc,script5779].cs2 b/scripts/[proc,script5779].cs2 new file mode 100644 index 000000000..b3acba0a8 --- /dev/null +++ b/scripts/[proc,script5779].cs2 @@ -0,0 +1,44 @@ +// 5779 +[proc,script5779](component $component0, int $int1, int $int2, string $text0, int $int3, int $int4)(int, int) +def_int $colour5 = ~script5465(3); +def_int $int6 = 5; +def_int $int7 = 15; +cc_create($component0, ^iftype_rectangle, $int1); +cc_setposition(0, calc($int2 - 1), ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, 18, ^setsize_minus, ^setsize_abs); +cc_setcolour(^black); +cc_setfill(true); +cc_settrans(200); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int6, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc($int6 * 2), $int7, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int7); +cc_settextshadow(true); +cc_settextfont(b12_full); +if ($int4 = 1) { + cc_setcolour($colour5); +} else { + cc_setcolour(0xcfcfcf); +} +cc_settext($text0); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int6, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc($int6 * 2), $int7, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_right, ^settextalign_top, $int7); +cc_settextshadow(true); +cc_settextfont(p12_full); +if ($int4 = 1) { + cc_setcolour($colour5); +} else { + cc_setcolour(0xcfcfcf); +} +if ($int3 = 0) { + cc_settext("Free unlock"); +} else { + cc_settext("Unlocked at points"); +} +$int1 = calc($int1 + 1); +$int2 = calc($int2 + $int7 + 3); +return($int1, $int2); diff --git a/scripts/[proc,script5780].cs2 b/scripts/[proc,script5780].cs2 new file mode 100644 index 000000000..5378e5b76 --- /dev/null +++ b/scripts/[proc,script5780].cs2 @@ -0,0 +1,16 @@ +// 5780 +[proc,script5780](component $component0, int $int1, int $int2, string $string0)(int, int) +def_int $int3 = 5; +def_int $int4 = 15; +def_int $int5 = calc(paraheight($string0, if_getwidth($component0) - 2 * $int3, p12_full) * $int4); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int3, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc($int3 * 2), $int5, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int4); +cc_settextshadow(true); +cc_settextfont(p12_full); +cc_setcolour(0xcfcfcf); +cc_settext($string0); +$int1 = calc($int1 + 1); +$int2 = calc($int2 + $int5 + 5); +return($int1, $int2); diff --git a/scripts/[proc,script5781].cs2 b/scripts/[proc,script5781].cs2 new file mode 100644 index 000000000..eb9b226f1 --- /dev/null +++ b/scripts/[proc,script5781].cs2 @@ -0,0 +1,90 @@ +// 5781 +[proc,script5781](component $component0, int $int1)(int, int) +def_int $colour2 = ~script5465(3); +def_int $int3 = 5; +def_int $int4 = 15; +def_int $int5 = 0; +def_int $int6 = 0; +def_int $int7 = 0; +def_int $int8 = 0; +def_struct $struct9 = null; +def_int $int10 = 0; +def_string $string0 = ""; +def_int $int11 = 1; +$int1 = ~script5782($component0, $int1, "Active Effects", "Effects gained from Fragments."); +$int5 = 40; +$int1, $int5 = ~script5783($component0, $int1, $int5, "Base Effects", $colour2); +while ($int7 < 7) { + $int8 = ~script5791($int7); + if ($int8 ! 0) { + $struct9 = enum(int, struct, enum_4136, $int8); + $int10 = ~script5790($int8); + cc_create($component0, ^iftype_text, $int1); + cc_setposition($int3, $int5, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int3 * 2), $int4, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_top, 0); + cc_settextshadow(true); + cc_settextfont(b12_full); + cc_setcolour($colour2); + cc_settext(" ()"); + $int1 = calc($int1 + 1); + $int5 = calc($int5 + $int4 + 2); + if ($int10 = 3) { + $string0 = struct_param($struct9, param_1452); + } else if ($int10 = 2) { + $string0 = struct_param($struct9, param_1451); + } else { + $string0 = struct_param($struct9, param_1450); + } + $int6 = calc(paraheight($string0, if_getwidth($component0) - 2 * $int3, p12_full) * $int4); + cc_create($component0, ^iftype_text, $int1); + cc_setposition($int3, $int5, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int3 * 2), $int6, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_top, $int4); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_setcolour(0xcfcfcf); + cc_settext($string0); + $int1 = calc($int1 + 1); + $int5 = calc($int5 + $int6 + 10); + $int11 = 0; + } + $int7 = calc($int7 + 1); +} +if ($int11 = 1) { + cc_create($component0, ^iftype_text, $int1); + cc_setposition($int3, $int5, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int3 * 2), $int4, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_top, 0); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_setcolour(0xcfcfcf); + cc_settext("None."); + $int1 = calc($int1 + 1); + $int5 = calc($int5 + $int4 + 10); +} +$int11 = 1; +$int1, $int5 = ~script5783($component0, $int1, $int5, "Set Effects", $colour2); +$int7 = 1; +while ($int7 <= enum_getoutputcount(enum_4137)) { + $struct9 = enum(int, struct, enum_4137, $int7); + $int10 = ~script5792($int7); + if ($int10 >= struct_param($struct9, param_1468)) { + $int1, $int5 = ~script5785($component0, $int1, $int5, $struct9); + $int11 = 0; + } + $int7 = calc($int7 + 1); +} +if ($int11 = 1) { + cc_create($component0, ^iftype_text, $int1); + cc_setposition($int3, $int5, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int3 * 2), $int4, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_top, 0); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_setcolour(0xcfcfcf); + cc_settext("None."); + $int1 = calc($int1 + 1); + $int5 = calc($int5 + $int4 + 10); +} +return($int1, $int5); diff --git a/scripts/[proc,script5782].cs2 b/scripts/[proc,script5782].cs2 new file mode 100644 index 000000000..ad2410bc8 --- /dev/null +++ b/scripts/[proc,script5782].cs2 @@ -0,0 +1,22 @@ +// 5782 +[proc,script5782](component $component0, int $int1, string $text0, string $text1)(int) +def_int $colour2 = ~script5465(3); +cc_create($component0, ^iftype_text, $int1); +cc_setposition(5, 5, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(10, 15, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settext($text0); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($colour2); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +cc_setposition(5, 22, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(10, 15, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settext($text1); +cc_settextshadow(true); +cc_settextfont(p11_full); +cc_setcolour(0xcfcfcf); +$int1 = calc($int1 + 1); +return($int1); diff --git a/scripts/[proc,script5783].cs2 b/scripts/[proc,script5783].cs2 new file mode 100644 index 000000000..dd46ad55b --- /dev/null +++ b/scripts/[proc,script5783].cs2 @@ -0,0 +1,20 @@ +// 5783 +[proc,script5783](component $component0, int $int1, int $int2, string $text0, int $colour3)(int, int) +cc_create($component0, ^iftype_rectangle, $int1); +cc_setposition(0, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, 18, ^setsize_minus, ^setsize_abs); +cc_setcolour(^black); +cc_setfill(true); +cc_settrans(200); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +cc_setposition(5, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(10, 18, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settext($text0); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($colour3); +$int1 = calc($int1 + 1); +$int2 = calc($int2 + 22); +return($int1, $int2); diff --git a/scripts/[proc,script5784].cs2 b/scripts/[proc,script5784].cs2 new file mode 100644 index 000000000..7b9e31c88 --- /dev/null +++ b/scripts/[proc,script5784].cs2 @@ -0,0 +1,31 @@ +// 5784 +[proc,script5784](component $component0, int $int1, int $int2, string $text0, string $string1, int $int3)(int, int) +def_int $colour4 = ~script5465(3); +def_int $int5 = 5; +def_int $int6 = 15; +def_int $int7 = calc(paraheight($string1, if_getwidth($component0) - 2 * $int5, p12_full) * $int6); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc(2 * $int5), $int7, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int6); +cc_settextshadow(true); +cc_settextfont(b12_full); +if ($int3 = 0) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour($colour4); +} +cc_settext($text0); +$int2 = calc($int2 + $int6); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc(2 * $int5), $int7, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int6); +cc_settextshadow(true); +cc_settextfont(p12_full); +cc_setcolour(0xcfcfcf); +cc_settext($string1); +$int1 = calc($int1 + 1); +$int2 = calc($int2 + $int7 + $int5 * 2); +return($int1, $int2); diff --git a/scripts/[proc,script5785].cs2 b/scripts/[proc,script5785].cs2 new file mode 100644 index 000000000..8ad3c38ff --- /dev/null +++ b/scripts/[proc,script5785].cs2 @@ -0,0 +1,78 @@ +// 5785 +[proc,script5785](component $component0, int $int1, int $int2, struct $struct3)(int, int) +if ($struct3 = null) { + return($int1, $int2); +} +def_int $colour4 = ~script5465(3); +def_int $int5 = 5; +def_int $int6 = 15; +def_int $int7 = struct_param($struct3, param_1464); +def_int $int8 = ~script5792($int7); +def_int $int9 = struct_param($struct3, param_1468); +def_int $int10 = struct_param($struct3, param_1470); +def_string $string0 = struct_param($struct3, param_1465); +def_int $int11 = calc(paraheight($string0, if_getwidth($component0) - 2 * $int5, b12_full) * $int6); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int6); +cc_settextshadow(true); +cc_settextfont(b12_full); +if ($int8 < $int9) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour($colour4); +} +cc_settext($string0); +$int2 = calc($int2 + $int11); +$int1 = calc($int1 + 1); +def_string $string1 = struct_param($struct3, param_1466); +$int11 = calc(paraheight($string1, if_getwidth($component0) - 2 * $int5, p12_full) * $int6); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int6); +cc_settextshadow(true); +cc_settextfont(p12_full); +cc_setcolour(0xcfcfcf); +cc_settext($string1); +$int2 = calc($int2 + $int11); +$int1 = calc($int1 + 1); +$int2 = calc($int2 + 3); +$string1 = " Fragments: "; +$int11 = calc(paraheight($string1, if_getwidth($component0) - 2 * $int5, p12_full) * $int6); +cc_create($component0, ^iftype_text, $int1); +cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_top, $int6); +cc_settextshadow(true); +cc_settextfont(p12_full); +if ($int8 < $int9) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour($colour4); +} +cc_settext($string1); +$int2 = calc($int2 + $int11); +$int1 = calc($int1 + 1); +if ($int10 > 0) { + $int2 = calc($int2 + 3); + $string1 = " Fragments: "; + $int11 = calc(paraheight($string1, if_getwidth($component0) - 2 * $int5, p12_full) * $int6); + cc_create($component0, ^iftype_text, $int1); + cc_setposition($int5, $int2, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc(2 * $int5), $int11, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_top, $int6); + cc_settextshadow(true); + cc_settextfont(p12_full); + if ($int8 < $int10) { + cc_setcolour(0xcfcfcf); + } else { + cc_setcolour($colour4); + } + cc_settext($string1); + $int2 = calc($int2 + $int11); + $int1 = calc($int1 + 1); +} +$int2 = calc($int2 + $int5 * 2); +return($int1, $int2); diff --git a/scripts/[proc,script5786].cs2 b/scripts/[proc,script5786].cs2 new file mode 100644 index 000000000..6aeb973e3 --- /dev/null +++ b/scripts/[proc,script5786].cs2 @@ -0,0 +1,24 @@ +// 5786 +[proc,script5786]()(int) +if (~league_world = 0 | %varbit10032 ! 3) { + return(0); +} +if (%var2614 < 10) { + return(1); +} +if (%var2614 < 300) { + return(2); +} +if (%var2614 < 1500) { + return(3); +} +if (%var2614 < 3000) { + return(4); +} +if (%var2614 < 7500) { + return(5); +} +if (%var2614 < 15000) { + return(6); +} +return(7); diff --git a/scripts/[proc,script5787].cs2 b/scripts/[proc,script5787].cs2 new file mode 100644 index 000000000..ed3f9ff76 --- /dev/null +++ b/scripts/[proc,script5787].cs2 @@ -0,0 +1,24 @@ +// 5787 +[proc,script5787]()(int, int) +if (~league_world = 0 | %varbit10032 ! 3) { + return(0, 0); +} +if (%var2614 < 10) { + return(%var2614, 10); +} +if (%var2614 < 300) { + return(calc(%var2614 - 10), calc(300 - 10)); +} +if (%var2614 < 1500) { + return(calc(%var2614 - 300), calc(1500 - 300)); +} +if (%var2614 < 3000) { + return(calc(%var2614 - 1500), calc(3000 - 1500)); +} +if (%var2614 < 7500) { + return(calc(%var2614 - 3000), calc(7500 - 3000)); +} +if (%var2614 < 15000) { + return(calc(%var2614 - 7500), calc(15000 - 7500)); +} +return(0, 0); diff --git a/scripts/[proc,script5788].cs2 b/scripts/[proc,script5788].cs2 new file mode 100644 index 000000000..8cd347305 --- /dev/null +++ b/scripts/[proc,script5788].cs2 @@ -0,0 +1,112 @@ +// 5788 +[proc,script5788](int $int0)(int) +switch_int ($int0) { + case 1 : + return(%varbit13403); + case 2 : + return(%varbit13404); + case 3 : + return(%varbit13405); + case 4 : + return(%varbit13406); + case 5 : + return(%varbit13407); + case 6 : + return(%varbit13408); + case 7 : + return(%varbit13409); + case 8 : + return(%varbit13410); + case 9 : + return(%varbit13411); + case 10 : + return(%varbit13412); + case 11 : + return(%varbit13413); + case 12 : + return(%varbit13414); + case 13 : + return(%varbit13415); + case 14 : + return(%varbit13416); + case 15 : + return(%varbit13417); + case 16 : + return(%varbit13418); + case 17 : + return(%varbit13419); + case 18 : + return(%varbit13420); + case 19 : + return(%varbit13421); + case 20 : + return(%varbit13422); + case 21 : + return(%varbit13423); + case 22 : + return(%varbit13424); + case 23 : + return(%varbit13425); + case 24 : + return(%varbit13426); + case 25 : + return(%varbit13427); + case 26 : + return(%varbit13428); + case 27 : + return(%varbit13429); + case 28 : + return(%varbit13430); + case 29 : + return(%varbit13431); + case 30 : + return(%varbit13432); + case 31 : + return(%varbit13433); + case 32 : + return(%varbit13434); + case 33 : + return(%varbit13435); + case 34 : + return(%varbit13436); + case 35 : + return(%varbit13437); + case 36 : + return(%varbit13438); + case 37 : + return(%varbit13439); + case 38 : + return(%varbit13440); + case 39 : + return(%varbit13441); + case 40 : + return(%varbit13442); + case 41 : + return(%varbit13443); + case 42 : + return(%varbit13444); + case 43 : + return(%varbit13445); + case 44 : + return(%varbit13446); + case 45 : + return(%varbit13447); + case 46 : + return(%varbit13448); + case 47 : + return(%varbit13449); + case 48 : + return(%varbit13450); + case 49 : + return(%varbit13451); + case 50 : + return(%varbit13452); + case 51 : + return(%varbit13453); + case 52 : + return(%varbit13454); + case 53 : + return(%varbit13455); + case default : + return(0); +} diff --git a/scripts/[proc,script5789].cs2 b/scripts/[proc,script5789].cs2 new file mode 100644 index 000000000..7a5b1a150 --- /dev/null +++ b/scripts/[proc,script5789].cs2 @@ -0,0 +1,12 @@ +// 5789 +[proc,script5789](int $int0)(int) +if ($int0 <= 0) { + return(0); +} +if ($int0 < 2000) { + return(1); +} +if ($int0 < 8000) { + return(2); +} +return(3); diff --git a/scripts/[proc,script5790].cs2 b/scripts/[proc,script5790].cs2 new file mode 100644 index 000000000..83e7b6863 --- /dev/null +++ b/scripts/[proc,script5790].cs2 @@ -0,0 +1,3 @@ +// 5790 +[proc,script5790](int $int0)(int) +return(~script5789(~script5788($int0))); diff --git a/scripts/[proc,script5791].cs2 b/scripts/[proc,script5791].cs2 new file mode 100644 index 000000000..c66f85135 --- /dev/null +++ b/scripts/[proc,script5791].cs2 @@ -0,0 +1,20 @@ +// 5791 +[proc,script5791](int $int0)(int) +switch_int ($int0) { + case 0 : + return(%varbit13395); + case 1 : + return(%varbit13396); + case 2 : + return(%varbit13397); + case 3 : + return(%varbit13398); + case 4 : + return(%varbit13399); + case 5 : + return(%varbit13401); + case 6 : + return(%varbit13402); + case default : + return(0); +} diff --git a/scripts/[proc,script5792].cs2 b/scripts/[proc,script5792].cs2 new file mode 100644 index 000000000..45dac1890 --- /dev/null +++ b/scripts/[proc,script5792].cs2 @@ -0,0 +1,68 @@ +// 5792 +[proc,script5792](int $int0)(int) +def_int $int1 = 0; +def_int $int2 = ~script5786; +if ($int2 < 1) { + return(0); +} +if (%varbit13395 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13395), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13395 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13395), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +if ($int2 < 2) { + return($int1); +} +if (%varbit13396 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13396), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13396 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13396), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +if ($int2 < 3) { + return($int1); +} +if (%varbit13397 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13397), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13397 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13397), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +if ($int2 < 4) { + return($int1); +} +if (%varbit13398 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13398), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13398 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13398), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +if ($int2 < 5) { + return($int1); +} +if (%varbit13399 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13399), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13399 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13399), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +if ($int2 < 6) { + return($int1); +} +if (%varbit13401 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13401), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13401 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13401), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +if ($int2 < 7) { + return($int1); +} +if (%varbit13402 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13402), param_1459) = $int0) { + $int1 = calc($int1 + 1); +} +if (%varbit13402 ! 0 & struct_param(enum(int, struct, enum_4136, %varbit13402), param_1460) = $int0) { + $int1 = calc($int1 + 1); +} +return($int1); diff --git a/scripts/[proc,script5793].cs2 b/scripts/[proc,script5793].cs2 new file mode 100644 index 000000000..c2d7824cb --- /dev/null +++ b/scripts/[proc,script5793].cs2 @@ -0,0 +1,60 @@ +// 5793 +[proc,script5793](component $component0, int $int1, int $x2, int $y3, int $int4, int $int5, int $int6)(int) +if ($int4 < 20) { + ~create_graphic($component0, $int1, enum(int, graphic, enum_4139, $int4), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +} else if ($int4 < 40) { + ~create_graphic($component0, $int1, enum(int, graphic, enum_4139, calc($int4 - 20)), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +} else if ($int4 < 60) { + ~create_graphic($component0, $int1, enum(int, graphic, enum_4139, calc($int4 - 40)), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +} +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, enum(int, graphic, enum_4140, $int4), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +if ($int5 = 0) { + cc_sethide(true); +} +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, enum(int, graphic, enum_4142, $int4), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +cc_settrans(calc(130 - scale($int5, 8000, 100))); +if ($int5 = 0) { + cc_sethide(true); +} +$int1 = calc($int1 + 1); +if ($int4 < 20) { + ~create_graphic($component0, $int1, enum(int, graphic, enum_4141, $int4), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +} else if ($int4 < 40) { + ~create_graphic($component0, $int1, enum(int, graphic, enum_4141, calc($int4 - 20)), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +} else if ($int4 < 60) { + ~create_graphic($component0, $int1, enum(int, graphic, enum_4141, calc($int4 - 40)), $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +} +def_int $int7 = randominc(1); +if ($int6 = 1) { + cc_settrans(238); + cc_setontimer("script5795($component0, $int1, 2)"); +} else { + if ($int7 = 0) { + $int7 = -3; + } else { + $int7 = 3; + } + cc_settrans(calc(125 + randominc(100))); + if ($int5 = 0) { + cc_sethide(true); + } else { + cc_setontimer("script5794($component0, $int1, 2, $int7)"); + } +} +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, null, $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +cc_settrans(128); +if ($int6 = 1) { + cc_setontimer("script5796($component0, $int1, 20, 0, 0)"); +} +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, null, $x2, $y3, ^setpos_abs_left, ^setpos_abs_top, 32, 32, ^setsize_abs, ^setsize_abs); +cc_settrans(128); +cc_setvflip(true); +if ($int6 = 1) { + cc_setontimer("script5796($component0, $int1, 20, 0, 0)"); +} +$int1 = calc($int1 + 1); +return($int1); diff --git a/scripts/[proc,script5797].cs2 b/scripts/[proc,script5797].cs2 new file mode 100644 index 000000000..826a7fe01 --- /dev/null +++ b/scripts/[proc,script5797].cs2 @@ -0,0 +1,3 @@ +// 5797 +[proc,script5797](int $int0, int $int1, int $int2)(int) +return($int2); diff --git a/scripts/[proc,script5801].cs2 b/scripts/[proc,script5801].cs2 new file mode 100644 index 000000000..ef286e3b2 --- /dev/null +++ b/scripts/[proc,script5801].cs2 @@ -0,0 +1,19 @@ +// 5801 +[proc,script5801](component $component0, int $int1) +if ($int1 = -1) { + $int1 = %var2615; +} +def_int $int2 = ~script5803(0, 0); +def_int $int3 = ~script5803(0, 1); +def_int $width4 = -1; +def_int $int5 = calc($int1 - $int3); +def_int $int6 = calc($int2 - $int3); +if ($int2 ! -1 & $int3 ! -1 & $int2 > 0 & $int3 ! $int2) { + $width4 = scale($int5, $int6, 130); +} else { + $width4 = 130; +} +if (if_find($component0) = true) { + cc_setsize($width4, 0, ^setsize_abs, ^setsize_minus); +} +~script5802(interface_736:6, interface_736:15, interface_736:13, interface_736:17, $int1, $int2); diff --git a/scripts/[proc,script5802].cs2 b/scripts/[proc,script5802].cs2 new file mode 100644 index 000000000..1d6653c5a --- /dev/null +++ b/scripts/[proc,script5802].cs2 @@ -0,0 +1,22 @@ +// 5802 +[proc,script5802](component $component0, component $component1, component $component2, component $component3, int $int4, int $int5) +def_int $int6 = -1; +def_int $int7 = ~script5786; +def_string $string0 = enum(int, string, enum_4146, calc($int7 + 1)); +if ($int5 ! -1 & $int4 ! -1) { + $int6 = calc($int5 - $int4); +} +if ($int6 <= 0 & if_find($component0) = true) { + cc_settext("You have unlocked all Tiers!"); +} else if (if_find($component0) = true) { + cc_settext(" points until Tier <$string0>."); +} +if (if_find($component1) = true) { + cc_settext(tostring($int4)); +} +if (if_find($component2) = true) { + cc_settext(tostring(%varbit10046)); +} +if (if_find($component3) = true) { + cc_settext(tostring(%var3276)); +} diff --git a/scripts/[proc,script5803].cs2 b/scripts/[proc,script5803].cs2 new file mode 100644 index 000000000..11b1143b1 --- /dev/null +++ b/scripts/[proc,script5803].cs2 @@ -0,0 +1,30 @@ +// 5803 +[proc,script5803](int $int0, int $int1)(int) +def_int $int2 = -1; +def_int $int3 = 1; +def_int $int4 = 0; +def_int $int5 = 0; +def_struct $struct6 = null; +if (%varbit10032 = 3) { + $int2 = enum_getoutputcount(enum_4127); + if ($int0 = 1) { + return(enum(int, int, enum_4127, $int2)); + } + while ($int3 <= $int2) { + $int5 = $int4; + $int4 = enum(int, int, enum_4127, $int3); + if ($int4 > %var2615) { + if ($int1 = 1) { + return($int5); + } + return($int4); + } + $int3 = calc($int3 + 1); + } + return(-1); +} +$struct6 = ~script3180($int0, $int1); +if ($struct6 = null) { + return(-1); +} +return(struct_param($struct6, param_877)); diff --git a/scripts/[proc,script5807].cs2 b/scripts/[proc,script5807].cs2 new file mode 100644 index 000000000..f6eaf011d --- /dev/null +++ b/scripts/[proc,script5807].cs2 @@ -0,0 +1,21 @@ +// 5807 +[proc,script5807](component $component0, component $component1, component $component2, component $component3, int $comsubid4) +cc_deleteall($component0); +cc_deleteall($component1); +cc_deleteall($component3); +def_struct $struct5 = enum(int, struct, enum_2670, %varbit10032); +if ($struct5 = null) { + return; +} +def_int $int6 = 0; +~leagues_menu_button($component0, $int6, $component1, $component2); +$int6 = 0; +~league_create_dropdown($component0, $component1, $component2, $int6, 3); +$int6 = 0; +def_int $colour7 = ~script5465(3); +if (cc_find(interface_733:2, $comsubid4) = ^true) { + cc_setcolour($colour7); +} +$int6 = ~script5291($component3, $int6, 0, 38, 3, 0x726451, "Skills", p12_full, $colour7, 0, "sideicons_new,1", 32, 36, 0, 0, ~script5808(0, %var3343)); +$int6 = ~script5291($component3, $int6, 1, 38, 3, 0x726451, "Bosses", p12_full, $colour7, 0, "side_icons,31", 32, 36, 0, 0, ~script5808(1, %var3343)); +$int6 = ~script5291($component3, $int6, 2, 38, 3, 0x726451, "Quests", p12_full, $colour7, 0, "side_icons,2", 32, 36, 0, 0, ~script5808(2, %var3343)); diff --git a/scripts/[proc,script5808].cs2 b/scripts/[proc,script5808].cs2 new file mode 100644 index 000000000..0bdce9c0d --- /dev/null +++ b/scripts/[proc,script5808].cs2 @@ -0,0 +1,6 @@ +// 5808 +[proc,script5808](int $int0, int $int1)(int) +if ($int0 = $int1) { + return(1); +} +return(0); diff --git a/scripts/[proc,script5811].cs2 b/scripts/[proc,script5811].cs2 new file mode 100644 index 000000000..c7e0f33b9 --- /dev/null +++ b/scripts/[proc,script5811].cs2 @@ -0,0 +1,9 @@ +// 5811 +[proc,script5811](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +if (%var3343 = 0) { + ~script5812($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7); +} else if (%var3343 = 1) { + ~script5814($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7); +} else if (%var3343 = 2) { + ~script5816($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7); +} diff --git a/scripts/[proc,script5812].cs2 b/scripts/[proc,script5812].cs2 new file mode 100644 index 000000000..0f0d15aba --- /dev/null +++ b/scripts/[proc,script5812].cs2 @@ -0,0 +1,48 @@ +// 5812 +[proc,script5812](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +def_int $int8 = ~script5465(3); +cc_deleteall($component0); +if_setscrollpos(0, 0, $component0); +cc_deleteall($component1); +if_sethide(true, $component1); +if_sethide(true, $component2); +if_sethide(true, $component6); +if_sethide(true, $component5); +if_sethide(true, $component7); +if_setsize(if_getwidth($component4), 76, ^setsize_abs, ^setsize_abs, $component4); +if_setposition(134, 49, ^setpos_abs_left, ^setpos_abs_top, $component0); +if_setsize(326, 148, ^setsize_abs, ^setsize_abs, $component0); +def_int $int9 = 0; +def_int $int10 = 0; +def_struct $struct11 = enum(int, struct, enum_4129, $int10); +def_int $int12 = 0; +def_int $int13 = 0; +def_string $text0 = "null"; +while ($struct11 ! null) { + if (calc($int10 + 1) = %var3344) { + $int12 = 1; + } else { + $int12 = 0; + } + $int13 = ~script5830(struct_param($struct11, param_1435)); + $int9 = ~script5813($component0, struct_param($struct11, param_1440), struct_param($struct11, param_1437), struct_param($struct11, param_1442), $int8, $int12, $int13, $int10, $int9); + $int10 = calc($int10 + 1); + $struct11 = enum(int, struct, enum_4129, $int10); +} +$struct11 = enum(int, struct, enum_4129, calc(%var3344 - 1)); +def_int $int14 = struct_param($struct11, param_1442); +if (%var3344 ! 0) { + $text0 = struct_param($struct11, param_1437); + if (~script5830(struct_param($struct11, param_1435)) = 1) { + ~script5819($component4, 4, $int8, 0); + $text0 = " - Unlocked"; + } else if ($int14 > %var3276) { + ~script5819($component4, 3, $int8, $int14); + } else { + ~script5819($component4, 1, $int8, $int14); + } + ~script5822($component3, $text0, struct_param($struct11, param_1438), $int8); +} else { + ~script5822($component3, "Unlock a skill", "First, select a skill above. Once you've chosen, use the Unlock
button to unlock gaining XP in your
selected skill.", $int8); + ~script5819($component4, 0, $int8, 0); +} diff --git a/scripts/[proc,script5813].cs2 b/scripts/[proc,script5813].cs2 new file mode 100644 index 000000000..66e2eca2a --- /dev/null +++ b/scripts/[proc,script5813].cs2 @@ -0,0 +1,58 @@ +// 5813 +[proc,script5813](component $component0, graphic $graphic1, string $string0, int $int2, int $colour3, int $int4, int $int5, int $int6, int $int7)(int) +def_int $int8 = 62; +def_int $int9 = 34; +def_int $int10 = calc($int6 % 5); +def_int $int11 = calc($int6 / 5); +$int10 = calc($int10 * $int8 + $int10 * 4); +$int11 = calc($int11 * $int9 + $int11 * 4); +def_int $int12 = calc($int10 + $int8 - 9); +def_int $int13 = calc($int11 + $int9 - 9); +def_int $int14 = calc($int9 - 18); +def_int $int15 = calc($int8 - 18); +def_struct $struct16 = null; +if ($int4 = 0) { + if ($int5 = 0) { + $struct16 = struct_3915; + } else { + $struct16 = struct_3918; + } +} else if ($int5 = 0) { + $struct16 = struct_3917; +} else { + $struct16 = struct_3920; +} +def_int $int17 = $int7; +$int7 = ~script5288($component0, $int7, $int10, $int11, $int8, $int9, $struct16, struct_param($struct16, param_1473)); +if ($int4 = 0) { + cc_setop(1, "Select"); + cc_setopbase("<$string0>"); + if (~on_mobile = false) { + cc_setonmouseleave("script5841($component0, $int17, $struct16, struct_param($struct16, param_1473))"); + if ($int5 = 0) { + cc_setonmouseover("script5841($component0, $int17, struct_3916, struct_param(struct_3916, param_1473))"); + } else { + cc_setonmouseover("script5841($component0, $int17, struct_3919, struct_param(struct_3919, param_1473))"); + } + } +} +if ($int5 = 1) { + ~create_graphic($component0, $int7, $graphic1, calc($int10 + $int8 / 2 - 12), calc($int11 + $int9 / 2 - 12), ^setpos_abs_left, ^setpos_abs_top, 25, 25, ^setsize_abs, ^setsize_abs); + $int7 = calc($int7 + 1); + cc_create($component0, ^iftype_rectangle, $int7); + cc_sethide(true); + $int7 = calc($int7 + 1); +} else { + ~create_graphic($component0, $int7, $graphic1, calc($int10 + 5), calc($int11 + 4), ^setpos_abs_left, ^setpos_abs_top, 25, 25, ^setsize_abs, ^setsize_abs); + $int7 = calc($int7 + 1); + cc_create($component0, ^iftype_text, $int7); + cc_setposition(calc($int10 + 32), calc($int11 + 10), ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(25, 15, ^setsize_abs, ^setsize_abs); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settextfont(b12_full); + cc_setcolour($colour3); + cc_settext(tostring($int2)); + $int7 = calc($int7 + 1); +} +return($int7); diff --git a/scripts/[proc,script5814].cs2 b/scripts/[proc,script5814].cs2 new file mode 100644 index 000000000..28fd4e447 --- /dev/null +++ b/scripts/[proc,script5814].cs2 @@ -0,0 +1,77 @@ +// 5814 +[proc,script5814](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +def_int $int8 = ~script5465(3); +def_int $height9 = if_getscrollheight($component0); +cc_deleteall($component0); +cc_deleteall($component1); +if_sethide(false, $component1); +if_sethide(false, $component2); +if_sethide(true, $component7); +if_sethide(false, $component6); +if_sethide(false, $component5); +if_setsize(if_getwidth($component4), 41, ^setsize_abs, ^setsize_abs, $component4); +if_setposition(136, 51, ^setpos_abs_left, ^setpos_abs_top, $component0); +if_setsize(307, 144, ^setsize_abs, ^setsize_abs, $component0); +def_int $int10 = 0; +def_int $int11 = 0; +def_struct $struct12 = enum(int, struct, enum_4130, $int11); +def_int $int13 = 0; +def_int $int14 = 0; +while ($struct12 ! null) { + if (calc($int11 + 1) = %var3344) { + $int13 = 1; + } else { + $int13 = 0; + } + $int14 = ~script5831(struct_param($struct12, param_1436)); + $int10 = ~script5815($component0, struct_param($struct12, param_1440), struct_param($struct12, param_1437), struct_param($struct12, param_1442), $int8, $int13, $int14, $int11, $int10); + $int11 = calc($int11 + 1); + $struct12 = enum(int, struct, enum_4130, $int11); +} +if_setscrollsize(if_getwidth($component0), calc($int11 * 32), $component0); +if ($height9 ! if_getscrollheight($component0) | %var3344 = 0) { + if_setscrollpos(0, 0, $component0); +} +~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +if (cc_find($component1, 1) = ^true) { + ~scrollbar_vertical_setdragger($component1, $component0); +} +$struct12 = enum(int, struct, enum_4130, calc(%var3344 - 1)); +def_string $string0 = struct_param($struct12, param_1437); +def_int $int15 = struct_param($struct12, param_1442); +if (%var3344 ! 0) { + ~v2_stone_button($component5); + ~v2_stone_button($component6); + if (~on_mobile = false) { + if_setonmouseover("v2_stone_button_in($component5)", $component5); + if_setonmouseover("v2_stone_button_in($component6)", $component6); + if_setonmouseleave("v2_stone_button($component5)", $component5); + if_setonmouseleave("v2_stone_button($component6)", $component6); + } + if_setop(1, "View", $component5); + if_setopbase("Wiki", $component5); + if_setonop("ca_boss_lookup(struct_param($struct12, param_1443), $string0)", $component5); + if_setop(1, "View", $component6); + if_setopbase("Map Location", $component6); + if (~script5831(struct_param($struct12, param_1436)) = 1) { + ~script5819($component4, 4, $int8, 0); + $string0 = " - Unlocked"; + } else if ($int15 > %var3276) { + ~script5819($component4, 3, $int8, $int15); + } else { + ~script5819($component4, 1, $int8, $int15); + } + ~script5822($component3, $string0, struct_param($struct12, param_1438), $int8); +} else { + ~script5822($component3, "Unlock a boss", "First, select a boss above. Once you've chosen, use the Unlock
button to unlock access to your
selected boss.", $int8); + ~v2_stone_button_in($component5); + ~v2_stone_button_in($component6); + if_setonmouseover(null, $component5); + if_setonmouseover(null, $component6); + if_setonmouseleave(null, $component5); + if_setonmouseleave(null, $component6); + if_setop(1, "", $component5); + if_setonop(null, $component5); + if_setop(1, "", $component6); + ~script5819($component4, 0, $int8, 0); +} diff --git a/scripts/[proc,script5815].cs2 b/scripts/[proc,script5815].cs2 new file mode 100644 index 000000000..901c54a13 --- /dev/null +++ b/scripts/[proc,script5815].cs2 @@ -0,0 +1,57 @@ +// 5815 +[proc,script5815](component $component0, graphic $graphic1, string $text0, int $int2, int $colour3, int $int4, int $int5, int $int6, int $int7)(int) +def_int $int8 = 304; +def_int $int9 = 32; +def_int $int10 = 0; +def_int $int11 = calc($int6 * $int9); +cc_create($component0, ^iftype_rectangle, $int7); +cc_setposition($int10, $int11, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, $int9, ^setsize_minus, ^setsize_abs); +cc_setfill(true); +cc_setcolour(^black); +if ($int4 = 0) { + if (calc($int6 % 2) = 0) { + cc_settrans(200); + } else { + cc_settrans(220); + } + cc_setop(1, "Select"); + cc_setopbase("<$text0>"); + if (~on_mobile = false) { + cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)"); + cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, ^black)"); + } +} else { + cc_settrans(160); +} +$int7 = calc($int7 + 1); +~create_graphic($component0, $int7, $graphic1, calc($int10 + 10), calc($int11 + 4), ^setpos_abs_left, ^setpos_abs_top, 25, 25, ^setsize_abs, ^setsize_abs); +$int7 = calc($int7 + 1); +cc_create($component0, ^iftype_text, $int7); +cc_setposition(calc($int10 + 45), $int11, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(85, $int9, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_centre, 0); +cc_settextshadow(true); +cc_settextfont(b12_full); +if ($int5 = 1) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour($colour3); +} +cc_settext($text0); +$int7 = calc($int7 + 1); +if ($int5 = 1) { + ~create_graphic($component0, $int7, "options_radio_buttons,2", calc($int10 + 280), calc($int11 + 7), ^setpos_abs_left, ^setpos_abs_top, 17, 17, ^setsize_abs, ^setsize_abs); + $int7 = calc($int7 + 1); +} else { + cc_create($component0, ^iftype_text, $int7); + cc_setposition(10, $int11, ^setpos_abs_right, ^setpos_abs_top); + cc_setsize(27, $int9, ^setsize_abs, ^setsize_abs); + cc_settextalign(^settextalign_right, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settextfont(b12_full); + cc_setcolour($colour3); + cc_settext(tostring($int2)); + $int7 = calc($int7 + 1); +} +return($int7); diff --git a/scripts/[proc,script5816].cs2 b/scripts/[proc,script5816].cs2 new file mode 100644 index 000000000..64fb8870d --- /dev/null +++ b/scripts/[proc,script5816].cs2 @@ -0,0 +1,76 @@ +// 5816 +[proc,script5816](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) +def_int $int8 = ~script5465(3); +def_int $height9 = if_getscrollheight($component0); +cc_deleteall($component0); +cc_deleteall($component1); +if_sethide(false, $component1); +if_sethide(false, $component2); +if_sethide(true, $component6); +if_sethide(true, $component5); +if_setsize(if_getwidth($component4), 41, ^setsize_abs, ^setsize_abs, $component4); +if_sethide(false, $component7); +if_setposition(136, 51, ^setpos_abs_left, ^setpos_abs_top, $component0); +if_setsize(307, 144, ^setsize_abs, ^setsize_abs, $component0); +def_int $int10 = 0; +def_int $int11 = 0; +def_struct $struct12 = enum(int, struct, enum_4131, $int11); +def_int $int13 = 0; +def_int $int14 = 0; +while ($struct12 ! null) { + if (calc($int11 + 1) = %var3344) { + $int13 = 1; + } else { + $int13 = 0; + } + if (~script5832(struct_param($struct12, param_1444)) = 0) { + $int14 = 1; + } else { + $int14 = 0; + } + $int10 = ~script5817($component0, "side_icons,2", $struct12, ~script5832(struct_param($struct12, param_1444)), $int8, $int13, $int14, $int11, $int10); + $int11 = calc($int11 + 1); + $struct12 = enum(int, struct, enum_4131, $int11); +} +if_setscrollsize(if_getwidth($component0), calc($int11 * 32), $component0); +if ($height9 ! if_getscrollheight($component0) | %var3344 = 0) { + if_setscrollpos(0, 0, $component0); +} +~scrollbar_vertical($component1, $component0, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +if (cc_find($component1, 1) = ^true) { + ~scrollbar_vertical_setdragger($component1, $component0); +} +$struct12 = enum(int, struct, enum_4131, calc(%var3344 - 1)); +def_string $text0 = struct_param($struct12, param_1437); +def_int $int15 = ~script5832(struct_param($struct12, param_1444)); +if (%var3344 ! 0) { + ~v2_stone_button($component7); + if (~on_mobile = false) { + if_setonmouseover("v2_stone_button_in($component7)", $component7); + if_setonmouseleave("v2_stone_button($component7)", $component7); + } + if_settext("Info", interface_733:13); + if_setcolour($int8, interface_733:13); + if_setop(1, "View", $component7); + if_setopbase("Quest Info", $component7); + if_setonop("script5823", $component7); + if ($int15 = 0) { + ~script5819($component4, 4, $int8, 0); + $text0 = " - Unlocked"; + } else if ($int15 > %var3276) { + ~script5819($component4, 3, $int8, $int15); + } else { + ~script5819($component4, 1, $int8, $int15); + } + ~script5822($component3, $text0, struct_param($struct12, param_1438), $int8); +} else { + ~script5822($component3, "Auto-complete Quests", "Select a package to complete a series of quests, all quests can still be completed normally.", $int8); + ~script5819($component4, 0, $int8, 0); + ~v2_stone_button_in($component7); + if_setonmouseover(null, $component7); + if_setonmouseleave(null, $component7); + if_settext("Info", interface_733:13); + if_setcolour(0xcfcfcf, interface_733:13); + if_setop(1, "", $component7); + if_setonop(null, $component7); +} diff --git a/scripts/[proc,script5817].cs2 b/scripts/[proc,script5817].cs2 new file mode 100644 index 000000000..902e35ce4 --- /dev/null +++ b/scripts/[proc,script5817].cs2 @@ -0,0 +1,68 @@ +// 5817 +[proc,script5817](component $component0, graphic $graphic1, struct $struct2, int $int3, int $colour4, int $int5, int $int6, int $int7, int $int8)(int) +def_int $int9 = 304; +def_int $int10 = 32; +def_int $int11 = 0; +def_int $int12 = calc($int7 * $int10); +def_string $text0 = struct_param($struct2, param_1437); +def_string $text1 = struct_param($struct2, param_1447); +cc_create($component0, ^iftype_rectangle, $int8); +cc_setposition($int11, $int12, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, $int10, ^setsize_minus, ^setsize_abs); +cc_setfill(true); +cc_setcolour(^black); +if ($int5 = 0) { + if (calc($int7 % 2) = 0) { + cc_settrans(200); + } else { + cc_settrans(220); + } + cc_setop(1, "Select"); + cc_setopbase("<$text0>"); + if (~on_mobile = false) { + cc_setonmouseover("cc_colour_swapper(event_com, event_comsubid, ^white)"); + cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, ^black)"); + } +} else { + cc_settrans(160); +} +$int8 = calc($int8 + 1); +~create_graphic($component0, $int8, $graphic1, calc($int11 + 4), calc($int12 - 2), ^setpos_abs_left, ^setpos_abs_top, 33, 36, ^setsize_abs, ^setsize_abs); +$int8 = calc($int8 + 1); +cc_create($component0, ^iftype_text, $int8); +cc_setposition(calc($int11 + 45), $int12, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(85, $int10, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_left, ^settextalign_centre, 0); +cc_settextshadow(true); +cc_settextfont(b12_full); +if ($int6 = 1) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour($colour4); +} +cc_settext($text0); +$int8 = calc($int8 + 1); +cc_create($component0, ^iftype_text, $int8); +cc_setposition(calc($int11 + 107), $int12, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(150, $int10, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_right, ^settextalign_centre, 0); +cc_settextshadow(true); +cc_settextfont(p11_full); +cc_setcolour(0xcfcfcf); +cc_settext($text1); +$int8 = calc($int8 + 1); +if ($int6 = 1) { + ~create_graphic($component0, $int8, "options_radio_buttons,2", calc($int11 + 280), calc($int12 + 7), ^setpos_abs_left, ^setpos_abs_top, 17, 17, ^setsize_abs, ^setsize_abs); + $int8 = calc($int8 + 1); +} else { + cc_create($component0, ^iftype_text, $int8); + cc_setposition(10, $int12, ^setpos_abs_right, ^setpos_abs_top); + cc_setsize(27, $int10, ^setsize_abs, ^setsize_abs); + cc_settextalign(^settextalign_right, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settextfont(b12_full); + cc_setcolour($colour4); + cc_settext(tostring($int3)); + $int8 = calc($int8 + 1); +} +return($int8); diff --git a/scripts/[proc,script5819].cs2 b/scripts/[proc,script5819].cs2 new file mode 100644 index 000000000..699e377f8 --- /dev/null +++ b/scripts/[proc,script5819].cs2 @@ -0,0 +1,55 @@ +// 5819 +[proc,script5819](component $component0, int $int1, int $int2, int $int3) +cc_deleteall($component0); +def_int $int4 = 0; +if ($int1 = 0 | $int1 = 3 | $int1 = 4) { + $int4 = ~script5820($component0, $int4, 0, 0, if_getwidth($component0), if_getheight($component0), struct_3921); +} else if ($int1 = 1) { + $int4 = ~script5820($component0, $int4, 0, 0, if_getwidth($component0), if_getheight($component0), struct_3924); +} else if ($int1 = 2) { + $int4 = ~script5820($component0, $int4, 0, 0, if_getwidth($component0), if_getheight($component0), struct_3926); +} +def_string $text0 = "„ "; +if ($int1 = 4 | $int1 = 0) { + $text0 = "„"; +} +cc_create($component0, ^iftype_text, $int4); +cc_setposition(1, 2, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settextshadow(false); +cc_settextfont(b12_full); +if ($int1 = 0 | $int1 = 3 | $int1 = 4) { + cc_setcolour(0x666666); +} else { + cc_setcolour(0x90e2c8); +} +cc_settext($text0); +$int4 = calc($int4 + 1); +cc_create($component0, ^iftype_text, $int4); +cc_setposition(0, 1, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settextshadow(false); +cc_settextfont(b12_full); +if ($int1 = 0 | $int1 = 3 | $int1 = 4) { + cc_setcolour(0xcfcfcf); +} else { + cc_setcolour(^black); +} +cc_settext($text0); +$int4 = calc($int4 + 1); +if (~on_mobile = false & ($int1 = 1 | $int1 = 2)) { + if_setonmouseover("script5818($component0, 2, $int2, $int3)", $component0); + if_setonmouseleave("script5818($component0, 1, $int2, $int3)", $component0); +} else { + if_setonmouseover(null, $component0); + if_setonmouseleave(null, $component0); +} +if ($int1 = 1 | $int1 = 2) { + if_setop(1, "Unlock", $component0); + if_setonop("script5825(event_com)", $component0); +} else { + if_setop(1, "", $component0); + if_setonop(null, $component0); +} diff --git a/scripts/[proc,script5820].cs2 b/scripts/[proc,script5820].cs2 new file mode 100644 index 000000000..107210143 --- /dev/null +++ b/scripts/[proc,script5820].cs2 @@ -0,0 +1,28 @@ +// 5820 +[proc,script5820](component $component0, int $int1, int $int2, int $int3, int $width4, int $height5, struct $struct6)(int) +def_int $int7 = struct_param($struct6, param_1478); +~create_graphic($component0, $int1, struct_param($struct6, param_1391), calc($int2 + $int7), calc($int3 + $int7), ^setpos_abs_left, ^setpos_abs_top, calc($width4 - 2 * $int7), calc($height5 - 2 * $int7), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 1), struct_param($struct6, param_1388), calc($int2 + $int7), $int3, ^setpos_abs_left, ^setpos_abs_top, calc(($width4 - 3 * $int7) / 2), $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 2), struct_param($struct6, param_1388), calc($int2 + $width4 - ($width4 - 3 * $int7) / 2 - $int7), $int3, ^setpos_abs_left, ^setpos_abs_top, calc(($width4 - 3 * $int7) / 2), $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 3), struct_param($struct6, param_1474), calc($int2 + $width4 / 2 - $int7 / 2), $int3, ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 4), struct_param($struct6, param_1394), calc($int2 + $int7), calc($int3 + $height5 - $int7), ^setpos_abs_left, ^setpos_abs_top, calc(($width4 - 3 * $int7) / 2), $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 5), struct_param($struct6, param_1394), calc($int2 + $width4 - ($width4 - 3 * $int7) / 2 - $int7), calc($int3 + $height5 - $int7), ^setpos_abs_left, ^setpos_abs_top, calc(($width4 - 3 * $int7) / 2), $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 6), struct_param($struct6, param_1477), calc($int2 + $width4 / 2 - $int7 / 2), calc($int3 + $height5 - $int7), ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +def_int $int8 = 0; +if (calc($int7 % 2) ! calc($height5 % 2)) { + $int8 = 1; +} +~create_graphic($component0, calc($int1 + 7), struct_param($struct6, param_1390), $int2, calc($int3 + $int7), ^setpos_abs_left, ^setpos_abs_top, $int7, calc(($height5 - 3 * $int7) / 2 + $int8), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 8), struct_param($struct6, param_1390), $int2, calc($int3 + $height5 - (($height5 - 3 * $int7) / 2 + $int8 + $int7)), ^setpos_abs_left, ^setpos_abs_top, $int7, calc(($height5 - 3 * $int7) / 2 + $int8), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 9), struct_param($struct6, param_1475), $int2, calc($int3 + $height5 / 2 - $int7 / 2), ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 10), struct_param($struct6, param_1392), calc($int2 + $width4 - $int7), calc($int3 + $int7), ^setpos_abs_left, ^setpos_abs_top, $int7, calc(($height5 - 3 * $int7) / 2 + $int8), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 11), struct_param($struct6, param_1392), calc($int2 + $width4 - $int7), calc($int3 + $height5 - (($height5 - 3 * $int7) / 2 + $int8 + $int7)), ^setpos_abs_left, ^setpos_abs_top, $int7, calc(($height5 - 3 * $int7) / 2 + $int8), ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 12), struct_param($struct6, param_1476), calc($int2 + $width4 - $int7), calc($int3 + $height5 / 2 - $int7 / 2), ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 13), struct_param($struct6, param_1387), $int2, $int3, ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 14), struct_param($struct6, param_1389), calc($int2 + $width4 - $int7), $int3, ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 15), struct_param($struct6, param_1393), $int2, calc($int3 + $height5 - $int7), ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc($int1 + 16), struct_param($struct6, param_1395), calc($int2 + $width4 - $int7), calc($int3 + $height5 - $int7), ^setpos_abs_left, ^setpos_abs_top, $int7, $int7, ^setsize_abs, ^setsize_abs); +if (cc_find($component0, $int1) = ^true) { + return(calc($int1 + 17)); +} +return(0); diff --git a/scripts/[proc,script5822].cs2 b/scripts/[proc,script5822].cs2 new file mode 100644 index 000000000..7d915488e --- /dev/null +++ b/scripts/[proc,script5822].cs2 @@ -0,0 +1,28 @@ +// 5822 +[proc,script5822](component $component0, string $text0, string $text1, int $colour1) +cc_deleteall($component0); +cc_create($component0, ^iftype_rectangle, 0); +cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_setfill(true); +cc_setcolour(^black); +cc_settrans(200); +def_int $int2 = ~thinbox($component0, 1); +cc_create($component0, ^iftype_text, $int2); +cc_setposition(10, 1, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(110, 25, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($colour1); +cc_settext($text0); +$int2 = calc($int2 + 1); +cc_create($component0, ^iftype_text, $int2); +cc_setposition(10, 18, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(110, 18, ^setsize_minus, ^setsize_minus); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 13); +cc_settextshadow(true); +cc_settextfont(p12_full); +cc_setcolour($colour1); +cc_settext($text1); +$int2 = calc($int2 + 1); diff --git a/scripts/[proc,script5827].cs2 b/scripts/[proc,script5827].cs2 new file mode 100644 index 000000000..3c37b77e8 --- /dev/null +++ b/scripts/[proc,script5827].cs2 @@ -0,0 +1,70 @@ +// 5827 +[proc,script5827](component $component0) +def_int $int1 = ~script5465(3); +if_sethide(false, interface_733:40); +def_struct $struct2 = null; +def_graphic $graphic3 = null; +def_int $int4 = 0; +if (%var3343 = 0) { + $struct2 = enum(int, struct, enum_4129, calc(%var3344 - 1)); +} else if (%var3343 = 1) { + $struct2 = enum(int, struct, enum_4130, calc(%var3344 - 1)); +} else { + $struct2 = enum(int, struct, enum_4131, calc(%var3344 - 1)); +} +def_string $string0 = struct_param($struct2, param_1437); +if (%var3343 = 2) { + $graphic3 = "side_icons,2"; + $int4 = ~script5832(struct_param($struct2, param_1444)); +} else { + $graphic3 = struct_param($struct2, param_1441); + $int4 = struct_param($struct2, param_1442); +} +~script5819($component0, 1, $int1, $int4); +cc_deleteall(interface_733:43); +def_int $int5 = 0; +$int5 = ~steelbox(interface_733:43, $int5, 1); +cc_create(interface_733:43, ^iftype_text, $int5); +cc_setposition(16, 16, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(32, 40, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_top, 20); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour($int1); +if (%var3343 = 2) { + cc_settext("Are you sure you wish to complete:
<$string0>"); +} else { + cc_settext("Are you sure you wish to unlock:
<$string0>"); +} +$int5 = calc($int5 + 1); +if (%var3343 = 2) { + cc_create(interface_733:43, ^iftype_text, $int5); + cc_setposition(16, 70, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(32, 40, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_centre, ^settextalign_top, 20); + cc_settextshadow(true); + cc_settextfont(b12_full); + cc_setcolour(0xcfcfcf); + cc_settext("You will NOT receive any
quest reward XP."); +} else { + ~create_graphic(interface_733:43, $int5, $graphic3, 0, -10, ^setpos_abs_centre, ^setpos_abs_centre, 50, 50, ^setsize_abs, ^setsize_abs); +} +cc_settiling(false); +$int5 = calc($int5 + 1); +cc_create(interface_733:43, ^iftype_text, $int5); +cc_setposition(16, 125, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(32, 40, ^setsize_minus, ^setsize_abs); +cc_settextalign(^settextalign_centre, ^settextalign_top, 20); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_setcolour(0xcfcfcf); +cc_settext("This process is irreversible."); +$int5 = calc($int5 + 1); +~script5820(interface_733:44, 0, 0, 0, if_getwidth(interface_733:44), if_getheight(interface_733:44), struct_3927); +~script5820(interface_733:47, 0, 0, 0, if_getwidth(interface_733:47), if_getheight(interface_733:47), struct_3924); +if (~on_mobile = false) { + if_setonmouseover("script5821(interface_733:44, 0, struct_3929)", interface_733:44); + if_setonmouseover("script5821(interface_733:47, 0, struct_3926)", interface_733:47); + if_setonmouseleave("script5821(interface_733:44, 0, struct_3927)", interface_733:44); + if_setonmouseleave("script5821(interface_733:47, 0, struct_3924)", interface_733:47); +} diff --git a/scripts/[proc,script5830].cs2 b/scripts/[proc,script5830].cs2 new file mode 100644 index 000000000..de2fb0414 --- /dev/null +++ b/scripts/[proc,script5830].cs2 @@ -0,0 +1,55 @@ +// 5830 +[proc,script5830](stat $stat0)(int) +if (%varbit10032 ! 3) { + return(1); +} +def_int $int1 = 1; +switch_stat ($stat0) { + case attack : + $int1 = %varbit13344; + case strength : + $int1 = %varbit13345; + case ranged : + $int1 = %varbit13346; + case magic : + $int1 = %varbit13347; + case defence : + $int1 = 1; + case hitpoints : + $int1 = %varbit13348; + case prayer : + $int1 = %varbit13349; + case agility : + $int1 = %varbit13350; + case herblore : + $int1 = %varbit13351; + case thieving : + $int1 = 1; + case crafting : + $int1 = %varbit13352; + case runecraft : + $int1 = %varbit13353; + case mining : + $int1 = %varbit13354; + case smithing : + $int1 = %varbit13355; + case fishing : + $int1 = 1; + case cooking : + $int1 = %varbit13356; + case firemaking : + $int1 = %varbit13357; + case woodcutting : + $int1 = %varbit13358; + case fletching : + $int1 = %varbit13359; + case slayer : + $int1 = %varbit13360; + case farming : + $int1 = %varbit13361; + case construction : + $int1 = %varbit13362; + case hunter : + $int1 = %varbit13363; +} +return($int1); diff --git a/scripts/[proc,script5831].cs2 b/scripts/[proc,script5831].cs2 new file mode 100644 index 000000000..74404ef43 --- /dev/null +++ b/scripts/[proc,script5831].cs2 @@ -0,0 +1,71 @@ +// 5831 +[proc,script5831](npc $npc0)(int) +if (%varbit10032 ! 3) { + return(1); +} +def_int $int1 = 1; +switch_npc ($npc0) { + case king_black_dragon_239 : + $int1 = %varbit13364; + case giant_mole_5779 : + $int1 = %varbit13365; + case kalphite_queen_963 : + $int1 = %varbit13366; + case obor_7416 : + $int1 = %varbit13367; + case bryophyta_8195 : + $int1 = %varbit13368; + case dusk_7849 : + $int1 = %varbit13369; + case dharok_the_wretched_1673 : + $int1 = %varbit13370; + case dagannoth_supreme_2265 : + $int1 = %varbit13371; + case hespori_8583 : + $int1 = %varbit13372; + case sarachnis_8713 : + $int1 = %varbit13373; + case skotizo_7286 : + $int1 = %varbit13374; + case zalcano_9049 : + $int1 = %varbit13375; + case kraken_494 : + $int1 = %varbit13376; + case crystalline_hunllef_9021 : + $int1 = %varbit13377; + case thermonuclear_smoke_devil_499 : + $int1 = %varbit13378; + case zulrah_2042 : + $int1 = %varbit13379; + case vorkath_8061 : + $int1 = %varbit13380; + case cerberus_5863 : + $int1 = %varbit13381; + case kreearra_3162 : + $int1 = %varbit13382; + case general_graardor_2215 : + $int1 = %varbit13383; + case commander_zilyana_2205 : + $int1 = %varbit13384; + case kril_tsutsaroth_3129 : + $int1 = %varbit13385; + case the_nightmare_9460 : + $int1 = %varbit13386; + case alchemical_hydra_8615 : + $int1 = %varbit13387; + case great_olm_7554 : + $int1 = %varbit13388; + case verzik_vitur_8369 : + $int1 = %varbit13389; + case tempoross_10572 : + $int1 = %varbit13390; + case pyromancer_7371 : + $int1 = %varbit13391; + case corporeal_beast_319 : + $int1 = %varbit13392; + case abyssal_sire_5888 : + $int1 = %varbit13393; + case nex_11278 : + $int1 = %varbit13394; +} +return($int1); diff --git a/scripts/[proc,script5832].cs2 b/scripts/[proc,script5832].cs2 new file mode 100644 index 000000000..8ccd69b5a --- /dev/null +++ b/scripts/[proc,script5832].cs2 @@ -0,0 +1,81 @@ +// 5832 +[proc,script5832](int $int0)(int) +if (%varbit10032 ! 3) { + return(1); +} +def_int $int1 = 0; +switch_int ($int0) { + case 1 : + $int1 = %varbit13545; + case 2 : + $int1 = %varbit13546; + case 3 : + $int1 = %varbit13547; + case 4 : + $int1 = %varbit13548; + case 5 : + $int1 = %varbit13549; + case 6 : + $int1 = %varbit13550; + case 7 : + $int1 = %varbit13551; + case 8 : + $int1 = %varbit13552; + case 9 : + $int1 = %varbit13553; + case 10 : + $int1 = %varbit13554; + case 11 : + $int1 = %varbit13555; + case 12 : + $int1 = %varbit13556; + case 13 : + $int1 = %varbit13557; + case 14 : + $int1 = %varbit13558; + case 15 : + $int1 = %varbit13559; + case 16 : + $int1 = %varbit13560; + case 17 : + $int1 = %varbit13561; + case 18 : + $int1 = %varbit13562; + case 19 : + $int1 = %varbit13563; + case 20 : + $int1 = %varbit13564; + case 21 : + $int1 = %varbit13565; + case 22 : + $int1 = %varbit13566; + case 23 : + $int1 = %varbit13567; + case 24 : + $int1 = %varbit13568; + case 25 : + $int1 = %varbit13569; + case 26 : + $int1 = %varbit13570; + case 27 : + $int1 = %varbit13571; + case 28 : + $int1 = %varbit13572; + case 29 : + $int1 = %varbit13573; + case 30 : + $int1 = %varbit13574; + case 31 : + $int1 = %varbit13575; + case 32 : + $int1 = %varbit13576; + case 33 : + $int1 = %varbit13577; + case 34 : + $int1 = %varbit13578; + case 35 : + $int1 = %varbit13579; + case 36 : + $int1 = %varbit13580; +} +return($int1); diff --git a/scripts/[proc,script5833].cs2 b/scripts/[proc,script5833].cs2 new file mode 100644 index 000000000..81ed0a843 --- /dev/null +++ b/scripts/[proc,script5833].cs2 @@ -0,0 +1,16 @@ +// 5833 +[proc,script5833](int $int0)(int) +if (%varbit13340 > 5 | %varbit13340 <= 0) { + return(1); +} +def_stat $stat1 = enum(int, stat, enum_681, $int0); +if (%varbit13340 = 5) { + if (~script5830($stat1) = 1) { + return(1); + } + return(0); +} +if (enum(stat, int, enum_4050, $stat1) = %varbit13340) { + return(1); +} +return(0); diff --git a/scripts/[proc,script5834].cs2 b/scripts/[proc,script5834].cs2 new file mode 100644 index 000000000..333bcfbba --- /dev/null +++ b/scripts/[proc,script5834].cs2 @@ -0,0 +1,140 @@ +// 5834 +[proc,script5834](struct $struct0)(string, int) +def_struct $structarray0(100); +def_struct $structarray1(7); +def_int $int1 = 0; +def_int $int2 = 1; +def_int $int3 = 0; +def_int $int4 = 0; +def_int $int5 = 0; +def_int $int6 = 0; +def_string $string0 = ""; +def_int $int7 = 0; +def_string $string1 = ""; +def_string $string2 = ""; +$structarray0(0) = $struct0; +while ($int4 < $int2) { + if (struct_param($structarray0($int4), param_648) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_648); + $int3 = calc($int3 + 1); + } + if (struct_param($structarray0($int4), param_649) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_649); + $int3 = calc($int3 + 1); + } + if (struct_param($structarray0($int4), param_650) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_650); + $int3 = calc($int3 + 1); + } + if (struct_param($structarray0($int4), param_651) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_651); + $int3 = calc($int3 + 1); + } + if (struct_param($structarray0($int4), param_652) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_652); + $int3 = calc($int3 + 1); + } + if (struct_param($structarray0($int4), param_653) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_653); + $int3 = calc($int3 + 1); + } + if (struct_param($structarray0($int4), param_654) ! null) { + $structarray1($int3) = struct_param($structarray0($int4), param_654); + $int3 = calc($int3 + 1); + } + while ($int5 < $int3) { + while ($int6 < $int2) { + if ($structarray0($int6) = $structarray1($int5)) { + $int1 = 1; + } + $int6 = calc($int6 + 1); + } + if ($int1 = 0) { + $structarray0($int2) = $structarray1($int5); + $int2 = calc($int2 + 1); + } + $structarray1($int5) = null; + $int1 = 0; + $int5 = calc($int5 + 1); + $int6 = 0; + } + if ($structarray0($int4) ! $struct0) { + if (~script4136($structarray0($int4)) = 0) { + $string0 = append($string0, "<$string2>
"); + } else { + $string0 = append($string0, "<$string1>
"); + } + $int7 = calc($int7 + 1); + } + $int4 = calc($int4 + 1); + $int3 = 0; + $int5 = 0; +} +switch_struct ($struct0) { + case struct_3982 : + if (%var685 ! 1275068466) { + $string0 = append($string0, "<$string2>Freeing Awowogei
"); + } else { + $string0 = append($string0, "<$string1>Freeing Awowogei
"); + } + $int7 = calc($int7 + 1); + case struct_3995 : + if (%varbit1895 ! 110) { + $string0 = append($string0, "<$string2>Freeing Pirate Pete
"); + } else { + $string0 = append($string0, "<$string1>Freeing Pirate Pete
"); + } + if (%varbit1904 ! 170) { + $string0 = append($string0, "<$string2>Freeing Skrach Uglogwee
"); + } else { + $string0 = append($string0, "<$string1>Freeing Skrach Uglogwee
"); + } + $int7 = calc($int7 + 2); + case struct_3989 : + if (%varbit1867 ! 40) { + $string0 = append($string0, "<$string2>Freeing the Goblin Generals
"); + } else { + $string0 = append($string0, "<$string1>Freeing the Goblin Generals
"); + } + if (%varbit1892 ! 60) { + $string0 = append($string0, "<$string2>Freeing the Mountain Dwarf
"); + } else { + $string0 = append($string0, "<$string1>Freeing the Mountain Dwarf
"); + } + $int7 = calc($int7 + 2); + case struct_4015 : + if (%varbit1910 ! 20) { + $string0 = append($string0, "<$string2>Freeing Sir Amik Varze
"); + } else { + $string0 = append($string0, "<$string1>Freeing Sir Amik Varze
"); + } + $int7 = calc($int7 + 1); + case struct_4008 : + if (%varbit4896 < 1000) { + $string0 = append($string0, "<$string2>100% Arceuus favour
"); + } else { + $string0 = append($string0, "<$string1>100% Arceuus favour
"); + } + if (%varbit4895 < 1000) { + $string0 = append($string0, "<$string2>100% Hosidius favour
"); + } else { + $string0 = append($string0, "<$string1>100% Hosidius favour
"); + } + if (%varbit4898 < 1000) { + $string0 = append($string0, "<$string2>100% Lovagengj favour
"); + } else { + $string0 = append($string0, "<$string1>100% Lovagengj favour
"); + } + if (%varbit4894 < 1000) { + $string0 = append($string0, "<$string2>100% Shayzien favour
"); + } else { + $string0 = append($string0, "<$string1>100% Shayzien favour
"); + } + if (%varbit4899 < 1000) { + $string0 = append($string0, "<$string2>100% Piscarilius favour
"); + } else { + $string0 = append($string0, "<$string1>100% Piscarilius favour
"); + } + $int7 = calc($int7 + 5); +} +return($string0, $int7); diff --git a/scripts/[proc,script5838].cs2 b/scripts/[proc,script5838].cs2 new file mode 100644 index 000000000..e9247927f --- /dev/null +++ b/scripts/[proc,script5838].cs2 @@ -0,0 +1,11 @@ +// 5838 +[proc,script5838](int $int0) +if ($int0 = 0) { + _3209(7, 25); + if_sethide(false, interface_734:2); + if_sethide(true, interface_734:3); +} else { + _3209(7, 0); + if_sethide(true, interface_734:2); + if_sethide(false, interface_734:3); +} diff --git a/scripts/[proc,script5845].cs2 b/scripts/[proc,script5845].cs2 new file mode 100644 index 000000000..c1f70b079 --- /dev/null +++ b/scripts/[proc,script5845].cs2 @@ -0,0 +1,50 @@ +// 5845 +[proc,script5845](component $component0, component $component1, string $string0, fontmetrics $fontmetrics2, int $colour3, int $colour4, int $colour5, int $int6, int $int7, int $int8, int $int9, int $int10, int $comsubid11, int $int12)(int) +def_int $int13 = calc($int8 - 9); +def_int $int14 = calc($int9 - 9); +def_int $width15 = calc($int8 - 18); +def_int $height16 = calc($int9 - 18); +~create_graphic($component0, $int10, "tradebacking", $int6, $int7, ^setpos_abs_left, ^setpos_abs_top, $int8, $int9, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(1 + $int10), "v2_stone_button,0", $int6, $int7, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(2 + $int10), "v2_stone_button,1", calc($int6 + $int13), $int7, ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(3 + $int10), "v2_stone_button,2", $int6, calc($int7 + $int14), ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(4 + $int10), "v2_stone_button,3", calc($int6 + $int13), calc($int7 + $int14), ^setpos_abs_left, ^setpos_abs_top, 9, 9, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(5 + $int10), "v2_stone_button,4", $int6, calc($int7 + 9), ^setpos_abs_left, ^setpos_abs_top, 9, $height16, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(6 + $int10), "v2_stone_button,5", calc($int6 + 9), $int7, ^setpos_abs_left, ^setpos_abs_top, $width15, 9, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(7 + $int10), "v2_stone_button,6", calc($int6 + $int13), calc($int7 + 9), ^setpos_abs_left, ^setpos_abs_top, 9, $height16, ^setsize_abs, ^setsize_abs); +~create_graphic($component0, calc(8 + $int10), "v2_stone_button,7", calc($int6 + 9), calc($int7 + $int14), ^setpos_abs_left, ^setpos_abs_top, $width15, 9, ^setsize_abs, ^setsize_abs); +def_int $int17 = ~max($int8, 26); +def_int $int18 = ~max($int9, 26); +def_int $x19 = calc($int6 - ($int17 - $int8) / 2); +def_int $y20 = calc($int7 - ($int18 - $int9) / 2); +def_boolean $boolean21 = false; +if ($int12 = 1 & $component1 ! null) { + $boolean21 = ~on_mobile; + cc_create($component1, ^iftype_rectangle, $comsubid11); + if ($boolean21 = true) { + cc_setsize($int17, $int18, ^setsize_abs, ^setsize_abs); + cc_setposition($x19, $y20, ^setpos_abs_left, ^setpos_abs_top); + } else { + cc_setsize($int8, $int9, ^setsize_abs, ^setsize_abs); + cc_setposition($int6, $int7, ^setpos_abs_left, ^setpos_abs_top); + cc_setonmouseover("v2_stone_button_in_filled_free($component0, $int10, $colour4)"); + cc_setonmouseleave("v2_stone_button_filled_free($component0, $int10, $colour3)"); + } + cc_settrans(255); +} +if (string_length($string0) > 0) { + cc_create($component0, ^iftype_text, calc(9 + $int10)); + cc_setsize($int8, $int9, ^setsize_abs, ^setsize_abs); + cc_setposition($int6, $int7, ^setpos_abs_left, ^setpos_abs_top); + cc_settext($string0); + cc_settextfont($fontmetrics2); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settextshadow(true); + if ($int12 = 1) { + cc_setcolour($colour3); + } else { + cc_setcolour($colour5); + } + return(calc(10 + $int10)); +} +return(calc(9 + $int10)); diff --git a/scripts/[proc,script5846].cs2 b/scripts/[proc,script5846].cs2 new file mode 100644 index 000000000..756a5c9ad --- /dev/null +++ b/scripts/[proc,script5846].cs2 @@ -0,0 +1,20 @@ +// 5846 +[proc,script5846](int $int0)(string) +switch_int ($int0) { + case 50 : + return(~script5742(%varbit13395)); + case 51 : + return(~script5742(%varbit13396)); + case 52 : + return(~script5742(%varbit13397)); + case 53 : + return(~script5742(%varbit13398)); + case 54 : + return(~script5742(%varbit13399)); + case 55 : + return(~script5742(%varbit13401)); + case 56 : + return(~script5742(%varbit13402)); + case default : + return("Buff"); +} diff --git a/scripts/[proc,script5847].cs2 b/scripts/[proc,script5847].cs2 new file mode 100644 index 000000000..0dfb67054 --- /dev/null +++ b/scripts/[proc,script5847].cs2 @@ -0,0 +1,20 @@ +// 5847 +[proc,script5847](int $int0)(graphic) +switch_int ($int0) { + case 50 : + return(~script5740(%varbit13395)); + case 51 : + return(~script5740(%varbit13396)); + case 52 : + return(~script5740(%varbit13397)); + case 53 : + return(~script5740(%varbit13398)); + case 54 : + return(~script5740(%varbit13399)); + case 55 : + return(~script5740(%varbit13401)); + case 56 : + return(~script5740(%varbit13402)); + case default : + return(null); +} diff --git a/scripts/[proc,script5848].cs2 b/scripts/[proc,script5848].cs2 new file mode 100644 index 000000000..77f3b72eb --- /dev/null +++ b/scripts/[proc,script5848].cs2 @@ -0,0 +1,20 @@ +// 5848 +[proc,script5848](int $int0)(graphic) +switch_int ($int0) { + case 50 : + return(~script5741(%varbit13395)); + case 51 : + return(~script5741(%varbit13396)); + case 52 : + return(~script5741(%varbit13397)); + case 53 : + return(~script5741(%varbit13398)); + case 54 : + return(~script5741(%varbit13399)); + case 55 : + return(~script5741(%varbit13401)); + case 56 : + return(~script5741(%varbit13402)); + case default : + return(null); +} diff --git a/scripts/[proc,skill_guide_data_magic].cs2 b/scripts/[proc,skill_guide_data_magic].cs2 index dd6d79675..9fba77e79 100644 --- a/scripts/[proc,skill_guide_data_magic].cs2 +++ b/scripts/[proc,skill_guide_data_magic].cs2 @@ -17,6 +17,9 @@ switch_int ($int0) { if (~league_world = 1 & %varbit10032 = 1) { return(-1, kourend_home_teleport_24369, "Home teleport (Kourend)"); } + if (~league_world = 1 & %varbit10032 = 3) { + return(-1, catherby_home_teleport_26553, "Home teleport (Catherby)"); + } return(-1, lumbridge_home_teleport_9712, "Home teleport (Lumbridge)"); case 2 : return(1, wind_strike_3273, "Wind Strike"); diff --git a/scripts/[proc,toplevel_redraw].cs2 b/scripts/[proc,toplevel_redraw].cs2 index a13a49c7b..7f67b8225 100644 --- a/scripts/[proc,toplevel_redraw].cs2 +++ b/scripts/[proc,toplevel_redraw].cs2 @@ -61,7 +61,7 @@ if ($component9 ! null & $component7 ! null) { if_setgraphic("sideicons_interface,23", $component7); case 5 : if_setop(1, "Leagues", $component9); - if_setgraphic("sideicons_interface,27", $component7); + if_setgraphic("sideicons_interface,35", $component7); case default : if_setop(1, "Character Summary", $component9); if_setgraphic("sideicons_interface,30", $component7); @@ -232,9 +232,11 @@ if (%varbit542 = 0) { } else { if_sethide(true, $component2); } -~setvolumemusic; -~setvolumesounds; -~setvolumeareasounds; +if (%varcint967 = 0) { + ~setvolumemusic; + ~setvolumesounds; + ~setvolumeareasounds; +} ~setbrightness; ~logout_timer_notifier; ~script5355($enum1);