From e299caffe196a8e7d5aaf935882794b8d790a961 Mon Sep 17 00:00:00 2001 From: Joshua Filby Date: Wed, 6 Oct 2021 05:39:33 -0500 Subject: [PATCH] 200.0 --- README.md | 69 ++++ scripts/[clientscript,bankmain_init].cs2 | 66 ++-- scripts/[clientscript,ca_tasks_draw_list].cs2 | 4 +- scripts/[clientscript,ca_tasks_init].cs2 | 4 +- ...lientscript,clan_create_member_invite].cs2 | 2 +- .../[clientscript,clan_create_side_init].cs2 | 44 ++- .../[clientscript,clan_create_targetmode].cs2 | 3 + scripts/[clientscript,ge_offers_init].cs2 | 3 +- ...entscript,ge_offers_setup_changeprice].cs2 | 36 +- ...script,ge_offers_setup_changequantity].cs2 | 48 +-- .../[clientscript,ge_offers_setup_draw].cs2 | 4 +- scripts/[clientscript,ironman_init].cs2 | 41 +- .../[clientscript,ironman_modebutton_op].cs2 | 18 +- ...lientscript,ironman_modebutton_redraw].cs2 | 4 +- scripts/[clientscript,script3446].cs2 | 2 +- scripts/[clientscript,script4447].cs2 | 4 +- scripts/[clientscript,script4451].cs2 | 2 +- scripts/[clientscript,script4472].cs2 | 4 +- scripts/[clientscript,script5244].cs2 | 7 + scripts/[clientscript,script5245].cs2 | 4 + scripts/[clientscript,script5246].cs2 | 7 + scripts/[clientscript,script5248].cs2 | 5 + scripts/[clientscript,script5249].cs2 | 11 + scripts/[clientscript,script5250].cs2 | 4 + scripts/[clientscript,script5253].cs2 | 3 + scripts/[clientscript,script5255].cs2 | 36 ++ scripts/[clientscript,script5256].cs2 | 3 + scripts/[clientscript,script5259].cs2 | 38 ++ scripts/[clientscript,script5260].cs2 | 18 + scripts/[clientscript,script5261].cs2 | 10 + scripts/[clientscript,script5264].cs2 | 49 +++ scripts/[clientscript,script5265].cs2 | 12 + scripts/[clientscript,script5266].cs2 | 5 + scripts/[clientscript,script5268].cs2 | 3 + scripts/[clientscript,script5271].cs2 | 5 + scripts/[clientscript,script5273].cs2 | 25 ++ scripts/[clientscript,script5274].cs2 | 50 +++ scripts/[clientscript,script5275].cs2 | 13 + scripts/[clientscript,script5277].cs2 | 10 + scripts/[clientscript,script5278].cs2 | 18 + scripts/[clientscript,script5279].cs2 | 3 + scripts/[clientscript,script5282].cs2 | 23 ++ scripts/[clientscript,script5284].cs2 | 8 + scripts/[clientscript,script5286].cs2 | 4 + scripts/[clientscript,script5287].cs2 | 4 + scripts/[clientscript,script5289].cs2 | 29 ++ scripts/[clientscript,script5290].cs2 | 5 + scripts/[clientscript,script5292].cs2 | 20 + scripts/[clientscript,script5294].cs2 | 20 + scripts/[clientscript,script5297].cs2 | 21 + scripts/[clientscript,script5298].cs2 | 5 + scripts/[clientscript,script5299].cs2 | 3 + scripts/[clientscript,script5301].cs2 | 13 + scripts/[clientscript,script5302].cs2 | 9 + scripts/[clientscript,script5303].cs2 | 12 + scripts/[clientscript,script5304].cs2 | 3 + scripts/[clientscript,script5306].cs2 | 4 + scripts/[clientscript,script5307].cs2 | 3 + scripts/[clientscript,side_channels_init].cs2 | 4 +- .../[clientscript,side_channels_optab].cs2 | 6 +- scripts/[proc,bankmain_filterstring].cs2 | 2 +- scripts/[proc,ca_bosses_draw_list].cs2 | 31 +- scripts/[proc,ca_task_display].cs2 | 13 +- scripts/[proc,ca_tasks_boss_total_tier].cs2 | 2 +- scripts/[proc,ca_tasks_draw_list].cs2 | 8 +- scripts/[proc,ca_tasks_tier_total].cs2 | 25 +- scripts/[proc,ca_tasks_total].cs2 | 1 + scripts/[proc,chatalerts].cs2 | 10 +- .../[proc,clan_create_player_component].cs2 | 2 +- .../[proc,clan_stonebutton_target_init].cs2 | 2 +- .../[proc,dynamic_stone_button_filled].cs2 | 2 +- scripts/[proc,filtertest].cs2 | 19 +- scripts/[proc,ge_offers_index_drawslot].cs2 | 164 +++++--- scripts/[proc,ge_offers_index_initslot].cs2 | 149 ++++---- scripts/[proc,ge_offers_initboxes].cs2 | 166 ++++---- scripts/[proc,ge_offers_setup_draw].cs2 | 105 +++-- scripts/[proc,ge_offers_setup_init].cs2 | 358 ++++++++++-------- scripts/[proc,ironman_modebutton_init].cs2 | 26 +- scripts/[proc,ironman_modebutton_redraw].cs2 | 6 +- scripts/[proc,panetest].cs2 | 10 +- .../[proc,raids_storage_shared_warning].cs2 | 4 +- scripts/[proc,raids_storage_side_warning].cs2 | 2 + scripts/[proc,rebuildchatbox].cs2 | 39 +- scripts/[proc,script1280].cs2 | 23 +- scripts/[proc,script2213].cs2 | 50 +-- scripts/[proc,script2237].cs2 | 4 +- scripts/[proc,script4473].cs2 | 17 +- scripts/[proc,script4766].cs2 | 1 + scripts/[proc,script5241].cs2 | 10 + scripts/[proc,script5242].cs2 | 13 + scripts/[proc,script5243].cs2 | 13 + scripts/[proc,script5247].cs2 | 20 + scripts/[proc,script5251].cs2 | 24 ++ scripts/[proc,script5252].cs2 | 14 + scripts/[proc,script5254].cs2 | 20 + scripts/[proc,script5257].cs2 | 228 +++++++++++ scripts/[proc,script5258].cs2 | 12 + scripts/[proc,script5262].cs2 | 9 + scripts/[proc,script5263].cs2 | 7 + scripts/[proc,script5267].cs2 | 25 ++ scripts/[proc,script5269].cs2 | 72 ++++ scripts/[proc,script5270].cs2 | 18 + scripts/[proc,script5272].cs2 | 38 ++ scripts/[proc,script5276].cs2 | 13 + scripts/[proc,script5280].cs2 | 12 + scripts/[proc,script5281].cs2 | 34 ++ scripts/[proc,script5283].cs2 | 4 + scripts/[proc,script5285].cs2 | 13 + scripts/[proc,script5288].cs2 | 21 + scripts/[proc,script5291].cs2 | 73 ++++ scripts/[proc,script5293].cs2 | 82 ++++ scripts/[proc,script5295].cs2 | 15 + scripts/[proc,script5296].cs2 | 17 + scripts/[proc,script5300].cs2 | 12 + scripts/[proc,script5305].cs2 | 6 + scripts/[proc,script5308].cs2 | 9 + scripts/[proc,script5309].cs2 | 6 + scripts/[proc,script553].cs2 | 2 +- scripts/[proc,script819].cs2 | 2 +- .../[proc,scrollbar_vertical_doscroll].cs2 | 4 +- scripts/[proc,settings_clicked_toggle].cs2 | 4 + scripts/[proc,settings_get_toggle].cs2 | 4 + ...[proc,settings_toggle_choose_transmit].cs2 | 2 + scripts/[proc,side_channels_settab].cs2 | 24 +- scripts/[proc,side_channels_tabinit].cs2 | 3 + scripts/[proc,toplevel_redraw].cs2 | 5 +- 126 files changed, 2372 insertions(+), 652 deletions(-) create mode 100644 scripts/[clientscript,script5244].cs2 create mode 100644 scripts/[clientscript,script5245].cs2 create mode 100644 scripts/[clientscript,script5246].cs2 create mode 100644 scripts/[clientscript,script5248].cs2 create mode 100644 scripts/[clientscript,script5249].cs2 create mode 100644 scripts/[clientscript,script5250].cs2 create mode 100644 scripts/[clientscript,script5253].cs2 create mode 100644 scripts/[clientscript,script5255].cs2 create mode 100644 scripts/[clientscript,script5256].cs2 create mode 100644 scripts/[clientscript,script5259].cs2 create mode 100644 scripts/[clientscript,script5260].cs2 create mode 100644 scripts/[clientscript,script5261].cs2 create mode 100644 scripts/[clientscript,script5264].cs2 create mode 100644 scripts/[clientscript,script5265].cs2 create mode 100644 scripts/[clientscript,script5266].cs2 create mode 100644 scripts/[clientscript,script5268].cs2 create mode 100644 scripts/[clientscript,script5271].cs2 create mode 100644 scripts/[clientscript,script5273].cs2 create mode 100644 scripts/[clientscript,script5274].cs2 create mode 100644 scripts/[clientscript,script5275].cs2 create mode 100644 scripts/[clientscript,script5277].cs2 create mode 100644 scripts/[clientscript,script5278].cs2 create mode 100644 scripts/[clientscript,script5279].cs2 create mode 100644 scripts/[clientscript,script5282].cs2 create mode 100644 scripts/[clientscript,script5284].cs2 create mode 100644 scripts/[clientscript,script5286].cs2 create mode 100644 scripts/[clientscript,script5287].cs2 create mode 100644 scripts/[clientscript,script5289].cs2 create mode 100644 scripts/[clientscript,script5290].cs2 create mode 100644 scripts/[clientscript,script5292].cs2 create mode 100644 scripts/[clientscript,script5294].cs2 create mode 100644 scripts/[clientscript,script5297].cs2 create mode 100644 scripts/[clientscript,script5298].cs2 create mode 100644 scripts/[clientscript,script5299].cs2 create mode 100644 scripts/[clientscript,script5301].cs2 create mode 100644 scripts/[clientscript,script5302].cs2 create mode 100644 scripts/[clientscript,script5303].cs2 create mode 100644 scripts/[clientscript,script5304].cs2 create mode 100644 scripts/[clientscript,script5306].cs2 create mode 100644 scripts/[clientscript,script5307].cs2 create mode 100644 scripts/[proc,script5241].cs2 create mode 100644 scripts/[proc,script5242].cs2 create mode 100644 scripts/[proc,script5243].cs2 create mode 100644 scripts/[proc,script5247].cs2 create mode 100644 scripts/[proc,script5251].cs2 create mode 100644 scripts/[proc,script5252].cs2 create mode 100644 scripts/[proc,script5254].cs2 create mode 100644 scripts/[proc,script5257].cs2 create mode 100644 scripts/[proc,script5258].cs2 create mode 100644 scripts/[proc,script5262].cs2 create mode 100644 scripts/[proc,script5263].cs2 create mode 100644 scripts/[proc,script5267].cs2 create mode 100644 scripts/[proc,script5269].cs2 create mode 100644 scripts/[proc,script5270].cs2 create mode 100644 scripts/[proc,script5272].cs2 create mode 100644 scripts/[proc,script5276].cs2 create mode 100644 scripts/[proc,script5280].cs2 create mode 100644 scripts/[proc,script5281].cs2 create mode 100644 scripts/[proc,script5283].cs2 create mode 100644 scripts/[proc,script5285].cs2 create mode 100644 scripts/[proc,script5288].cs2 create mode 100644 scripts/[proc,script5291].cs2 create mode 100644 scripts/[proc,script5293].cs2 create mode 100644 scripts/[proc,script5295].cs2 create mode 100644 scripts/[proc,script5296].cs2 create mode 100644 scripts/[proc,script5300].cs2 create mode 100644 scripts/[proc,script5305].cs2 create mode 100644 scripts/[proc,script5308].cs2 create mode 100644 scripts/[proc,script5309].cs2 diff --git a/README.md b/README.md index 26058b2be..9192872f8 100644 --- a/README.md +++ b/README.md @@ -5241,3 +5241,72 @@ [**5238**](scripts/[proc,settings_store_button_mobile].cs2) `[proc,settings_store_button_mobile]` [**5239**](scripts/[clientscript,script5239].cs2) [**5240**](scripts/[clientscript,quest_journal_reset].cs2) `[clientscript,quest_journal_reset]` +[**5241**](scripts/[proc,script5241].cs2) +[**5242**](scripts/[proc,script5242].cs2) +[**5243**](scripts/[proc,script5243].cs2) +[**5244**](scripts/[clientscript,script5244].cs2) +[**5245**](scripts/[clientscript,script5245].cs2) +[**5246**](scripts/[clientscript,script5246].cs2) +[**5247**](scripts/[proc,script5247].cs2) +[**5248**](scripts/[clientscript,script5248].cs2) +[**5249**](scripts/[clientscript,script5249].cs2) +[**5250**](scripts/[clientscript,script5250].cs2) +[**5251**](scripts/[proc,script5251].cs2) +[**5252**](scripts/[proc,script5252].cs2) +[**5253**](scripts/[clientscript,script5253].cs2) +[**5254**](scripts/[proc,script5254].cs2) +[**5255**](scripts/[clientscript,script5255].cs2) +[**5256**](scripts/[clientscript,script5256].cs2) +[**5257**](scripts/[proc,script5257].cs2) +[**5258**](scripts/[proc,script5258].cs2) +[**5259**](scripts/[clientscript,script5259].cs2) +[**5260**](scripts/[clientscript,script5260].cs2) +[**5261**](scripts/[clientscript,script5261].cs2) +[**5262**](scripts/[proc,script5262].cs2) +[**5263**](scripts/[proc,script5263].cs2) +[**5264**](scripts/[clientscript,script5264].cs2) +[**5265**](scripts/[clientscript,script5265].cs2) +[**5266**](scripts/[clientscript,script5266].cs2) +[**5267**](scripts/[proc,script5267].cs2) +[**5268**](scripts/[clientscript,script5268].cs2) +[**5269**](scripts/[proc,script5269].cs2) +[**5270**](scripts/[proc,script5270].cs2) +[**5271**](scripts/[clientscript,script5271].cs2) +[**5272**](scripts/[proc,script5272].cs2) +[**5273**](scripts/[clientscript,script5273].cs2) +[**5274**](scripts/[clientscript,script5274].cs2) +[**5275**](scripts/[clientscript,script5275].cs2) +[**5276**](scripts/[proc,script5276].cs2) +[**5277**](scripts/[clientscript,script5277].cs2) +[**5278**](scripts/[clientscript,script5278].cs2) +[**5279**](scripts/[clientscript,script5279].cs2) +[**5280**](scripts/[proc,script5280].cs2) +[**5281**](scripts/[proc,script5281].cs2) +[**5282**](scripts/[clientscript,script5282].cs2) +[**5283**](scripts/[proc,script5283].cs2) +[**5284**](scripts/[clientscript,script5284].cs2) +[**5285**](scripts/[proc,script5285].cs2) +[**5286**](scripts/[clientscript,script5286].cs2) +[**5287**](scripts/[clientscript,script5287].cs2) +[**5288**](scripts/[proc,script5288].cs2) +[**5289**](scripts/[clientscript,script5289].cs2) +[**5290**](scripts/[clientscript,script5290].cs2) +[**5291**](scripts/[proc,script5291].cs2) +[**5292**](scripts/[clientscript,script5292].cs2) +[**5293**](scripts/[proc,script5293].cs2) +[**5294**](scripts/[clientscript,script5294].cs2) +[**5295**](scripts/[proc,script5295].cs2) +[**5296**](scripts/[proc,script5296].cs2) +[**5297**](scripts/[clientscript,script5297].cs2) +[**5298**](scripts/[clientscript,script5298].cs2) +[**5299**](scripts/[clientscript,script5299].cs2) +[**5300**](scripts/[proc,script5300].cs2) +[**5301**](scripts/[clientscript,script5301].cs2) +[**5302**](scripts/[clientscript,script5302].cs2) +[**5303**](scripts/[clientscript,script5303].cs2) +[**5304**](scripts/[clientscript,script5304].cs2) +[**5305**](scripts/[proc,script5305].cs2) +[**5306**](scripts/[clientscript,script5306].cs2) +[**5307**](scripts/[clientscript,script5307].cs2) +[**5308**](scripts/[proc,script5308].cs2) +[**5309**](scripts/[proc,script5309].cs2) diff --git a/scripts/[clientscript,bankmain_init].cs2 b/scripts/[clientscript,bankmain_init].cs2 index 83ad8b658..94aac5329 100644 --- a/scripts/[clientscript,bankmain_init].cs2 +++ b/scripts/[clientscript,bankmain_init].cs2 @@ -1,7 +1,7 @@ // 274 -[clientscript,bankmain_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, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, component $component22, component $component23, component $component24, component $component25, component $component26, component $component27, component $component28, component $component29, component $component30, component $component31, component $component32) +[clientscript,bankmain_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, component $component15, component $component16, component $component17, component $component18, component $component19, component $component20, component $component21, component $component22, component $component23, component $component24, component $component25, component $component26, component $component27, component $component28, component $component29, component $component30, component $component31, component $component32, component $component33) ~steelborder($component1, "", 0); -def_int $int33 = %varcint51; +def_int $int34 = %varcint51; if (~bankmain_searching = 1) { ~meslayer_close(1, 1, 1); } else if (%varcint5 <= 0) { @@ -20,61 +20,61 @@ if_setonvartransmit("bankmain_itemnote($component13, $component14){var115}", $co ~bankmain_quantity_buttons($component22, $component23, $component24, $component25, $component26); if_setonvartransmit("bankmain_quantity_buttons($component22, $component23, $component24, $component25, $component26){var1666, var304}", $component27); cc_deleteall($component7); -def_int $int34 = 0; def_int $int35 = 0; -while ($int35 < 816) { - cc_create($component7, ^iftype_graphic, $int34); - $int34 = calc($int34 + 1); +def_int $int36 = 0; +while ($int36 < 816) { + cc_create($component7, ^iftype_graphic, $int35); + $int35 = calc($int35 + 1); cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); cc_setgraphicshadow(0x333333); cc_setoutline(1); cc_setdragdeadzone(5); cc_setdragdeadtime(5); - $int35 = calc($int35 + 1); + $int36 = calc($int36 + 1); } -def_int $width36 = calc(if_getwidth($component7) - 51 - 35); -$int35 = 1; -while ($int35 <= 9) { - cc_create($component7, ^iftype_graphic, $int34); - $int34 = calc($int34 + 1); - cc_setsize($width36, 2, ^setsize_abs, ^setsize_abs); +def_int $width37 = calc(if_getwidth($component7) - 51 - 35); +$int36 = 1; +while ($int36 <= 9) { + cc_create($component7, ^iftype_graphic, $int35); + $int35 = calc($int35 + 1); + cc_setsize($width37, 2, ^setsize_abs, ^setsize_abs); cc_setgraphic("tradebacking_dark"); cc_settiling(true); - $int35 = calc($int35 + 1); + $int36 = calc($int36 + 1); } -$int35 = 1; -while ($int35 <= 9) { - cc_create($component7, ^iftype_text, $int34); - $int34 = calc($int34 + 1); - cc_setsize($width36, 15, ^setsize_abs, ^setsize_abs); +$int36 = 1; +while ($int36 <= 9) { + cc_create($component7, ^iftype_text, $int35); + $int35 = calc($int35 + 1); + cc_setsize($width37, 15, ^setsize_abs, ^setsize_abs); cc_settextalign(^settextalign_left, ^settextalign_top, 0); cc_settextfont(p11_full); cc_setcolour(0xe4d8a2); cc_setonmouserepeat("cc_colour_swapper(event_com, event_comsubid, ^white)"); cc_setonmouseleave("cc_colour_swapper(event_com, event_comsubid, 0xe4d8a2)"); cc_settextshadow(true); - cc_settext("Tab "); + cc_settext("Tab "); cc_setop(1, "View tab"); - cc_setopbase(""); - cc_setonop("bankmain_switchtab($component0, $component2, $component7, $component8, $component9, $component16, $component17, $component15, $component18, $component19, $component20, $component21, event_opindex, $int35, $component28, $component29, $component30, $component31, $component32)"); - $int35 = calc($int35 + 1); + cc_setopbase(""); + cc_setonop("bankmain_switchtab($component0, $component2, $component7, $component8, $component9, $component16, $component17, $component15, $component18, $component19, $component20, $component21, event_opindex, $int36, $component28, $component29, $component30, $component31, $component32)"); + $int36 = calc($int36 + 1); } -$int35 = 0; -while ($int35 <= 9) { - cc_create($component7, ^iftype_rectangle, $int34); - $int34 = calc($int34 + 1); +$int36 = 0; +while ($int36 <= 9) { + cc_create($component7, ^iftype_rectangle, $int35); + $int35 = calc($int35 + 1); cc_setsize(0, 32, ^setsize_abs, ^setsize_abs); cc_setfill(true); cc_settrans(255); - $int35 = calc($int35 + 1); + $int36 = calc($int36 + 1); } ~bankmain_viewbuttons($component4, $component0, $component2, $component3, $component7, $component8, $component9, $component16, $component17, $component15, $component18, $component19, $component20, $component21, $component4, $component5, $component6, $component28, $component29, $component30, $component31, $component32); if_setoninvtransmit("bankmain_build($component0, $component2, $component7, $component8, $component9, $component16, $component17, $component15, $component18, $component19, $component20, $component21, $component28, $component29, $component30, $component31, $component32){bank}", $component7); if_setonvartransmit("bankmain_build($component0, $component2, $component7, $component8, $component9, $component16, $component17, $component15, $component18, $component19, $component20, $component21, $component28, $component29, $component30, $component31, $component32){var304, var115, var867, var1052, var1053, var1666, var1141}", $component7); -%varcint51 = $int33; -def_component $layer37 = if_getlayer($component0); -if ($layer37 ! null) { - ~bankmain_size_check($component0, $layer37, ^min_32bit_int, ^min_32bit_int, $component8, $component7); +%varcint51 = $int34; +def_component $layer38 = if_getlayer($component0); +if ($layer38 ! null) { + ~bankmain_size_check($component0, $layer38, ^min_32bit_int, ^min_32bit_int, $component8, $component7); } cc_deleteall($component19); cc_create($component19, ^iftype_model, 0); @@ -91,3 +91,5 @@ cc_setmodelangle(15, 300, 141, 220, 0, 3500); .cc_sethide(true); if_setonmouserepeat("script1312(true, $component19, $component21)", $component19); if_setonmouseleave("script1312(false, $component19, $component21)", $component19); +~script5300($component33); +if_setonvartransmit("script5299(event_com){var499}", $component33); diff --git a/scripts/[clientscript,ca_tasks_draw_list].cs2 b/scripts/[clientscript,ca_tasks_draw_list].cs2 index 96e96d358..be2f5d2a2 100644 --- a/scripts/[clientscript,ca_tasks_draw_list].cs2 +++ b/scripts/[clientscript,ca_tasks_draw_list].cs2 @@ -1,3 +1,3 @@ // 4817 -[clientscript,ca_tasks_draw_list](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 $int13) -~ca_tasks_draw_list($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $int13); +[clientscript,ca_tasks_draw_list](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 $int13, int $clock14) +if_setontimer("script5244($int0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $component12, $int13, clientclock)", $component1); diff --git a/scripts/[clientscript,ca_tasks_init].cs2 b/scripts/[clientscript,ca_tasks_init].cs2 index 90698e565..a3f8f0c05 100644 --- a/scripts/[clientscript,ca_tasks_init].cs2 +++ b/scripts/[clientscript,ca_tasks_init].cs2 @@ -5,5 +5,5 @@ def_int $comsubid15 = ~steelborder($component1, "Combat Achievements - Tasks", 0 if_setscrollpos(0, 0, $component2); cc_deleteall($component11); ~scrollbar_vertical($component11, $component2, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); -if_setonvartransmit("ca_tasks_draw_list(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $comsubid15){var3131, var3132}", $component3); -~ca_tasks_draw_list(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $comsubid15); +if_setontimer("script5244(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $comsubid15, clientclock)", $component0); +if_setonvartransmit("ca_tasks_draw_list(-1, $component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9, $component10, $component11, $comsubid15, clientclock){var3131, var3132}", $component3); diff --git a/scripts/[clientscript,clan_create_member_invite].cs2 b/scripts/[clientscript,clan_create_member_invite].cs2 index c424981b1..8aea6e9d5 100644 --- a/scripts/[clientscript,clan_create_member_invite].cs2 +++ b/scripts/[clientscript,clan_create_member_invite].cs2 @@ -1,3 +1,3 @@ // 4446 [clientscript,clan_create_member_invite] -mes("Only the clan founder can do that."); +mes("Only the leader can do that."); diff --git a/scripts/[clientscript,clan_create_side_init].cs2 b/scripts/[clientscript,clan_create_side_init].cs2 index f4637dee9..7edb53419 100644 --- a/scripts/[clientscript,clan_create_side_init].cs2 +++ b/scripts/[clientscript,clan_create_side_init].cs2 @@ -1,6 +1,12 @@ // 4445 -[clientscript,clan_create_side_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, int $int8) -if_settext("Form a clan", $component1); +[clientscript,clan_create_side_init](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, int $int8, string $string0) +def_int $int9 = 0; +if (%varbit13058 = 1 | %varbit13059 = 1) { + $int9 = 1; + if_settext("Create a <$string0>", $component1); +} else { + if_settext("Form a <$string0>", $component1); +} cc_deleteall($component2); cc_create($component2, ^iftype_text, 0); cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); @@ -9,28 +15,38 @@ cc_setcolour(0xffb83f); cc_settextfont(p11_full); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); cc_settextshadow(true); -cc_settext("Clan founders"); +cc_settext("<$string0> members"); cc_deleteall($component0); -cc_create($component0, ^iftype_rectangle, enum(component, int, enum_3824, $component4)); -cc_create($component0, ^iftype_rectangle, enum(component, int, enum_3824, $component5)); -cc_create($component0, ^iftype_rectangle, enum(component, int, enum_3824, $component6)); -cc_create($component0, ^iftype_rectangle, enum(component, int, enum_3824, $component7)); -def_string $string0 = "Clan name"; +def_enum $enum10 = enum_3824; +def_int $int11 = 0; +if ($int9 = 1) { + $enum10 = enum_4053; + $int11 = 1; +} +cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component4)); +cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component5)); +cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component6)); +cc_create($component0, ^iftype_rectangle, enum(component, int, $enum10, $component7)); +def_string $string1 = "<$string0> name"; if (string_length(%varcstring458) > 0) { - $string0 = %varcstring458; + $string1 = %varcstring458; } -if_setop(1, "Clan name", $component4); +if_setop(1, "<$string0> name", $component4); if_setop(1, "Cancel", $component5); if_setop(1, "Invite", $component6); if_setop(1, "Confirm", $component7); -if (%varbit12171 = 1) { - ~clan_stonebutton_init($string0, $component4, "p12_full"); +if (%varbit13058 = 1 | %varbit12171 = 1) { + ~clan_stonebutton_init($string1, $component4, "p12_full"); ~clan_stonebutton_init("Cancel", $component5, "p12_full"); ~clan_stonebutton_target_init("Invite", $component6, "p12_full"); ~clan_stonebutton_init("Confirm", $component7, "p12_full"); } else { - if_setonop("clan_create_member_invite", $component6); - ~clan_stonebutton_draw(false, "Clan name", "p12_full", $component4); + if ($int11 = 0) { + if_setonop("clan_create_member_invite", $component6); + } else { + if_setonop("script5304", $component6); + } + ~clan_stonebutton_draw(false, "<$string0> name", "p12_full", $component4); ~clan_stonebutton_init("Cancel", $component5, "p12_full"); ~clan_stonebutton_draw(false, "Invite", "p12_full", $component6); ~clan_stonebutton_draw(false, "Confirm", "p12_full", $component7); diff --git a/scripts/[clientscript,clan_create_targetmode].cs2 b/scripts/[clientscript,clan_create_targetmode].cs2 index 2af2df76e..2372e98ee 100644 --- a/scripts/[clientscript,clan_create_targetmode].cs2 +++ b/scripts/[clientscript,clan_create_targetmode].cs2 @@ -2,7 +2,10 @@ [clientscript,clan_create_targetmode](boolean $boolean0, component $component1, string $string0, graphic $graphic2) if ($boolean0 = true) { %varcint454 = 1; + sound_synth(interface_select1, 1, 0); + mes("You're now in Invite Target Mode. <~text_device("Left click", "Tap")> someone to invite them."); } else { %varcint454 = 0; + mes("You're no longer in Invite Target Mode."); } ~clan_stonebutton_draw($boolean0, "Invite", "p12_full", $component1); diff --git a/scripts/[clientscript,ge_offers_init].cs2 b/scripts/[clientscript,ge_offers_init].cs2 index fa86b5bf4..c09ec6faa 100644 --- a/scripts/[clientscript,ge_offers_init].cs2 +++ b/scripts/[clientscript,ge_offers_init].cs2 @@ -9,9 +9,10 @@ while ($component16 ! null) { $int15 = calc($int15 + 1); $component16 = enum(int, component, enum_245, $int15); } +~ge_offers_setup_init($component10, $component11, $component12); ~script819($component6, $component7, $component8); +if_setonvartransmit("script5306($component10, $component11, $component12, $component6, $component7, $component8){var499}", $component1); ~script816($component9); -~ge_offers_setup_init($component10, $component11, $component12); ~ge_offers_switchpanel($component1, $comsubid14, $component3, $component4, $component6, $component10, $component13); if_setonvartransmit("ge_offers_switchpanel($component1, $comsubid14, $component3, $component4, $component6, $component10, $component13){var375}", $component0); if_setonstocktransmit("ge_offers_switchpanel($component1, $comsubid14, $component3, $component4, $component6, $component10, $component13)", $component0); diff --git a/scripts/[clientscript,ge_offers_setup_changeprice].cs2 b/scripts/[clientscript,ge_offers_setup_changeprice].cs2 index 59b0e02a7..7ef8ccbb5 100644 --- a/scripts/[clientscript,ge_offers_setup_changeprice].cs2 +++ b/scripts/[clientscript,ge_offers_setup_changeprice].cs2 @@ -1,40 +1,40 @@ // 778 -[clientscript,ge_offers_setup_changeprice](int $int0, int $opindex1, component $component2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, int $comsubid14, component $component15, int $comsubid16) -if ($opindex1 ! 1 | %var1151 = null) { +[clientscript,ge_offers_setup_changeprice](boolean $boolean0, int $int1, int $opindex2, component $component3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, int $comsubid14, int $comsubid15, component $component16, int $comsubid17) +if ($opindex2 ! 1 | %var1151 = null) { return; } -def_int $int17 = 0; -if ($int0 = 1) { +def_int $int18 = 0; +if ($int1 = 1) { if (%varbit4398 < ^max_32bit_int) { %varbit4398 = calc(%varbit4398 + 1); } sound_synth(ge_up_amount, 1, 0); -} else if ($int0 = -1) { +} else if ($int1 = -1) { if (%varbit4398 > 1) { %varbit4398 = calc(%varbit4398 - 1); } sound_synth(ge_down_amount, 1, 0); -} else if ($int0 = 5) { - $int17 = calc(%varbit4398 / 20); - if ($int17 <= 0) { - $int17 = 1; +} else if ($int1 = 5) { + $int18 = calc(%varbit4398 / 20); + if ($int18 <= 0) { + $int18 = 1; } - if (calc(^max_32bit_int - $int17) < %varbit4398) { + if (calc(^max_32bit_int - $int18) < %varbit4398) { %varbit4398 = ^max_32bit_int; } else { - %varbit4398 = calc(%varbit4398 + $int17); + %varbit4398 = calc(%varbit4398 + $int18); } sound_synth(ge_up_amount, 1, 0); -} else if ($int0 = -5) { - $int17 = calc(%varbit4398 / 20); - if ($int17 <= 0) { - $int17 = 1; +} else if ($int1 = -5) { + $int18 = calc(%varbit4398 / 20); + if ($int18 <= 0) { + $int18 = 1; } - if ($int17 >= %varbit4398) { + if ($int18 >= %varbit4398) { %varbit4398 = 1; } else { - %varbit4398 = calc(%varbit4398 - $int17); + %varbit4398 = calc(%varbit4398 - $int18); } sound_synth(ge_down_amount, 1, 0); } -~ge_offers_setup_draw($component2, $comsubid3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $component15, $comsubid16); +~ge_offers_setup_draw($boolean0, $component3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $comsubid15, $component16, $comsubid17); diff --git a/scripts/[clientscript,ge_offers_setup_changequantity].cs2 b/scripts/[clientscript,ge_offers_setup_changequantity].cs2 index 5b431103e..65fb8a2ab 100644 --- a/scripts/[clientscript,ge_offers_setup_changequantity].cs2 +++ b/scripts/[clientscript,ge_offers_setup_changequantity].cs2 @@ -1,56 +1,56 @@ // 777 -[clientscript,ge_offers_setup_changequantity](int $int0, int $opindex1, component $component2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, int $comsubid14, component $component15, int $comsubid16) -if ($opindex1 ! 1 | %var1151 = null) { +[clientscript,ge_offers_setup_changequantity](boolean $boolean0, int $int1, int $opindex2, component $component3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, int $comsubid14, int $comsubid15, component $component16, int $comsubid17) +if ($opindex2 ! 1 | %var1151 = null) { return; } -def_int $int17 = ^max_32bit_int; +def_int $int18 = ^max_32bit_int; if (%var1151 = old_school_bond_13190) { %varbit4396 = 1; sound_synth(interface_select1, 1, 0); } else if (%varbit4397 = 1) { - $int17 = ~ge_offers_checkavailable; - if ($int0 >= ^max_32bit_int) { - %varbit4396 = $int17; + $int18 = ~ge_offers_checkavailable; + if ($int1 >= ^max_32bit_int) { + %varbit4396 = $int18; sound_synth(ge_up_amount, 1, 0); - } else if ($int0 > 0) { - if ($int0 > 1 & %varbit4396 = 1) { - $int0 = calc($int0 - 1); + } else if ($int1 > 0) { + if ($int1 > 1 & %varbit4396 = 1) { + $int1 = calc($int1 - 1); } - if (calc($int17 - $int0) < %varbit4396) { - %varbit4396 = $int17; + if (calc($int18 - $int1) < %varbit4396) { + %varbit4396 = $int18; } else { - %varbit4396 = calc(%varbit4396 + $int0); + %varbit4396 = calc(%varbit4396 + $int1); } sound_synth(ge_up_amount, 1, 0); } else { - if (%varbit4396 <= calc(0 - $int0)) { + if (%varbit4396 <= calc(0 - $int1)) { %varbit4396 = 1; } else { - %varbit4396 = calc(%varbit4396 + $int0); + %varbit4396 = calc(%varbit4396 + $int1); } sound_synth(ge_down_amount, 1, 0); } } else { - if ($int0 >= ^max_32bit_int) { - $int0 = 1000; + if ($int1 >= ^max_32bit_int) { + $int1 = 1000; } - if ($int0 > 0) { - if ($int0 > 1 & %varbit4396 = 1) { - $int0 = calc($int0 - 1); + if ($int1 > 0) { + if ($int1 > 1 & %varbit4396 = 1) { + $int1 = calc($int1 - 1); } - if (calc(^max_32bit_int - $int0) < %varbit4396) { + if (calc(^max_32bit_int - $int1) < %varbit4396) { %varbit4396 = ^max_32bit_int; } else { - %varbit4396 = calc(%varbit4396 + $int0); + %varbit4396 = calc(%varbit4396 + $int1); } sound_synth(ge_up_amount, 1, 0); } else { - if (%varbit4396 <= calc(0 - $int0)) { + if (%varbit4396 <= calc(0 - $int1)) { %varbit4396 = 1; } else { - %varbit4396 = calc(%varbit4396 + $int0); + %varbit4396 = calc(%varbit4396 + $int1); } sound_synth(ge_down_amount, 1, 0); } } -~ge_offers_setup_draw($component2, $comsubid3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $component15, $comsubid16); +~ge_offers_setup_draw($boolean0, $component3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $comsubid15, $component16, $comsubid17); diff --git a/scripts/[clientscript,ge_offers_setup_draw].cs2 b/scripts/[clientscript,ge_offers_setup_draw].cs2 index 0c5f38b74..bdde7ca53 100644 --- a/scripts/[clientscript,ge_offers_setup_draw].cs2 +++ b/scripts/[clientscript,ge_offers_setup_draw].cs2 @@ -1,3 +1,3 @@ // 776 -[clientscript,ge_offers_setup_draw](component $component0, int $comsubid1, int $comsubid2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, component $component13, int $comsubid14) -~ge_offers_setup_draw($component0, $comsubid1, $comsubid2, $comsubid3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $component13, $comsubid14); +[clientscript,ge_offers_setup_draw](boolean $boolean0, component $component1, int $comsubid2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, component $component14, int $comsubid15) +~ge_offers_setup_draw($boolean0, $component1, $comsubid2, $comsubid3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $component14, $comsubid15); diff --git a/scripts/[clientscript,ironman_init].cs2 b/scripts/[clientscript,ironman_init].cs2 index 52f681b74..f37977e34 100644 --- a/scripts/[clientscript,ironman_init].cs2 +++ b/scripts/[clientscript,ironman_init].cs2 @@ -1,27 +1,28 @@ // 687 -[clientscript,ironman_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) +[clientscript,ironman_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, component $component15) ~steelborder($component2, " Setup", 0); -if_settext(" Mode", $component3); -~ironman_modebutton_init($component4, 0, "None", "No restrictions will apply to this account.", $component4, $component5, $component6, $component7); -~ironman_modebutton_init($component5, 1, "Standard ", "An cannot trade, stake, receive PK loot, scavenge dropped items, nor play certain multiplayer minigames.", $component4, $component5, $component6, $component7); -~ironman_modebutton_init($component6, 3, "Hardcore ", "In addition to the standard rules, a Hardcore only has 1 life. A dangerous death will result in being downgraded to a standard .", $component4, $component5, $component6, $component7); -~ironman_modebutton_init($component7, 2, "Ultimate ", "In addition to the standard rules, an Ultimate cannot use banks, nor retain any items on death in dangerous areas.", $component4, $component5, $component6, $component7); -cc_deleteall($component8); -def_int $int15 = 0; -.cc_create($component8, ^iftype_rectangle, $int15); -$int15 = calc($int15 + 1); +~ironman_modebutton_init($component3, 0, "None", "No restrictions will apply to this account.", $component3, $component4, $component5, $component6, $component7, $component8); +~ironman_modebutton_init($component4, 1, "Standard ", "An cannot trade, stake, receive PK loot, scavenge dropped items, nor play certain multiplayer minigames.", $component3, $component4, $component5, $component6, $component7, $component8); +~ironman_modebutton_init($component5, 3, "Hardcore ", "In addition to the standard rules, a Hardcore only has 1 life. A dangerous death will result in being downgraded to a standard .", $component3, $component4, $component5, $component6, $component7, $component8); +~ironman_modebutton_init($component6, 2, "Ultimate ", "In addition to the standard rules, an Ultimate cannot use banks, nor retain any items on death in dangerous areas.", $component3, $component4, $component5, $component6, $component7, $component8); +~ironman_modebutton_init($component7, 4, "Group ", "Group cannot trade with anyone outside the group, stake, receive PK loot, scavenge dropped items, nor play certain multiplayer minigames.", $component3, $component4, $component5, $component6, $component7, $component8); +~ironman_modebutton_init($component8, 5, "Hardcore Group ", "In addition to the standard Group rules, Hardcore Group have a set number of lives. A dangerous death will result in losing one of your lives. Upon reaching 0 lives left, you will all be downgraded to regular Group .", $component3, $component4, $component5, $component6, $component7, $component8); +cc_deleteall($component9); +def_int $int16 = 0; +.cc_create($component9, ^iftype_rectangle, $int16); +$int16 = calc($int16 + 1); .cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); .cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); .cc_setfill(true); .cc_setcolour(^white); -$int15 = ~thinbox($component8, $int15); -cc_create($component8, ^iftype_graphic, $int15); -$int15 = calc($int15 + 1); +$int16 = ~thinbox($component9, $int16); +cc_create($component9, ^iftype_graphic, $int16); +$int16 = calc($int16 + 1); cc_setsize(29, 22, ^setsize_abs, ^setsize_abs); cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_centre); cc_setgraphic("bankbuttons,7"); -cc_create($component8, ^iftype_text, $int15); -$int15 = calc($int15 + 1); +cc_create($component9, ^iftype_text, $int16); +$int16 = calc($int16 + 1); cc_setsize(33, 0, ^setsize_minus, ^setsize_minus); cc_setposition(3, 0, ^setpos_abs_right, ^setpos_abs_centre); cc_setcolour(0xff981f); @@ -29,8 +30,8 @@ cc_settextfont(p11_full); cc_settextshadow(true); cc_settextalign(^settextalign_left, ^settextalign_centre, 0); cc_settext("Deactivation settings
Avoid accidentally downgrading your status."); -~ironman_miscellaneous_redraw($component1, $component8, $component9, $component10, $component11, $component12, $component13, $component14); -if_setonvartransmit("ironman_miscellaneous_redraw($component1, $component8, .cc_getid, $component9, $component10, $component11, $component12, $component13, $component14){var499, var281}", $component0); -~script2116($component12, 1, "PIN", $component12, $component13); -~script2116($component13, 0, "Permanent", $component12, $component13); -if_sethide(true, $component10); +~ironman_miscellaneous_redraw($component1, $component9, $component10, $component11, $component12, $component13, $component14, $component15); +if_setonvartransmit("ironman_miscellaneous_redraw($component1, $component9, .cc_getid, $component10, $component11, $component12, $component13, $component14, $component15){var499, var281}", $component0); +~script2116($component13, 1, "PIN", $component13, $component14); +~script2116($component14, 0, "Permanent", $component13, $component14); +if_sethide(true, $component11); diff --git a/scripts/[clientscript,ironman_modebutton_op].cs2 b/scripts/[clientscript,ironman_modebutton_op].cs2 index 8554bb0aa..2f39856b2 100644 --- a/scripts/[clientscript,ironman_modebutton_op].cs2 +++ b/scripts/[clientscript,ironman_modebutton_op].cs2 @@ -1,19 +1,25 @@ // 2115 -[clientscript,ironman_modebutton_op](int $opindex0, component $component1, int $int2, int $int3, int $int4, component $component5, component $component6, component $component7, component $component8) +[clientscript,ironman_modebutton_op](int $opindex0, component $component1, int $int2, int $int3, int $int4, component $component5, component $component6, component $component7, component $component8, component $component9, component $component10) if ($opindex0 = 1 & cc_find($component1, $int3) = ^true & .cc_find($component1, $int2) = ^true) { sound_synth(interface_select1, 1, 0); %varbit1777 = $int4; - ~ironman_modebutton_redraw($component1, $int2, $int3, $int4, $component5, $component6, $component7, $component8); + ~ironman_modebutton_redraw($component1, $int2, $int3, $int4, $component5, $component6, $component7, $component8, $component9, $component10); if ($component1 ! $component5 & cc_find($component5, $int3) = ^true & .cc_find($component5, $int2) = ^true) { - ~ironman_modebutton_redraw($component5, $int2, $int3, 0, $component5, $component6, $component7, $component8); + ~ironman_modebutton_redraw($component5, $int2, $int3, 0, $component5, $component6, $component7, $component8, $component9, $component10); } if ($component1 ! $component6 & cc_find($component6, $int3) = ^true & .cc_find($component6, $int2) = ^true) { - ~ironman_modebutton_redraw($component6, $int2, $int3, 1, $component5, $component6, $component7, $component8); + ~ironman_modebutton_redraw($component6, $int2, $int3, 1, $component5, $component6, $component7, $component8, $component9, $component10); } if ($component1 ! $component7 & cc_find($component7, $int3) = ^true & .cc_find($component7, $int2) = ^true) { - ~ironman_modebutton_redraw($component7, $int2, $int3, 3, $component5, $component6, $component7, $component8); + ~ironman_modebutton_redraw($component7, $int2, $int3, 3, $component5, $component6, $component7, $component8, $component9, $component10); } if ($component1 ! $component8 & cc_find($component8, $int3) = ^true & .cc_find($component8, $int2) = ^true) { - ~ironman_modebutton_redraw($component8, $int2, $int3, 2, $component5, $component6, $component7, $component8); + ~ironman_modebutton_redraw($component8, $int2, $int3, 2, $component5, $component6, $component7, $component8, $component9, $component10); + } + if ($component1 ! $component9 & cc_find($component9, $int3) = ^true & .cc_find($component9, $int2) = ^true) { + ~ironman_modebutton_redraw($component8, $int2, $int3, 2, $component5, $component6, $component7, $component8, $component9, $component10); + } + if ($component1 ! $component10 & cc_find($component10, $int3) = ^true & .cc_find($component10, $int2) = ^true) { + ~ironman_modebutton_redraw($component8, $int2, $int3, 2, $component5, $component6, $component7, $component8, $component9, $component10); } } diff --git a/scripts/[clientscript,ironman_modebutton_redraw].cs2 b/scripts/[clientscript,ironman_modebutton_redraw].cs2 index 9a23af085..7d45e5413 100644 --- a/scripts/[clientscript,ironman_modebutton_redraw].cs2 +++ b/scripts/[clientscript,ironman_modebutton_redraw].cs2 @@ -1,5 +1,5 @@ // 2095 -[clientscript,ironman_modebutton_redraw](component $component0, int $int1, int $int2, int $int3, component $component4, component $component5, component $component6, component $component7) +[clientscript,ironman_modebutton_redraw](component $component0, int $int1, int $int2, int $int3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9) if (cc_find($component0, $int2) = ^true & .cc_find($component0, $int1) = ^true) { - ~ironman_modebutton_redraw($component0, $int1, $int2, $int3, $component4, $component5, $component6, $component7); + ~ironman_modebutton_redraw($component0, $int1, $int2, $int3, $component4, $component5, $component6, $component7, $component8, $component9); } diff --git a/scripts/[clientscript,script3446].cs2 b/scripts/[clientscript,script3446].cs2 index 071858f3d..6aa729197 100644 --- a/scripts/[clientscript,script3446].cs2 +++ b/scripts/[clientscript,script3446].cs2 @@ -1,7 +1,7 @@ // 3446 [clientscript,script3446](string $string0) ~script3449(interface_120:7); -if (~script2237 ! 0) { +if (~script2237 = 1) { if_sethide(false, interface_120:8); if_setop(1, "Controls", interface_120:8); ~script1490(interface_120:8); diff --git a/scripts/[clientscript,script4447].cs2 b/scripts/[clientscript,script4447].cs2 index ef33d74a3..87e0c9cdb 100644 --- a/scripts/[clientscript,script4447].cs2 +++ b/scripts/[clientscript,script4447].cs2 @@ -1,6 +1,6 @@ // 4447 -[clientscript,script4447](component $component0, component $component1, string $string0) -if (cc_find($component0, enum(component, int, enum_3824, $component1)) = ^true) { +[clientscript,script4447](component $component0, component $component1, enum $enum2, string $string0) +if (cc_find($component0, enum(component, int, $enum2, $component1)) = ^true) { ~clan_stonebutton_init($string0, $component1, "p12_full"); %varcstring458 = $string0; } diff --git a/scripts/[clientscript,script4451].cs2 b/scripts/[clientscript,script4451].cs2 index aa54b5a6e..bcecdc637 100644 --- a/scripts/[clientscript,script4451].cs2 +++ b/scripts/[clientscript,script4451].cs2 @@ -3,7 +3,7 @@ def_string $username1 = removetags($opbase0); switch_int ($opindex0) { case 1 : - mes("Removing <$username1> from the clan party."); + mes("Removing <$username1> from the party."); case 3 : friend_del($username1); case 4 : diff --git a/scripts/[clientscript,script4472].cs2 b/scripts/[clientscript,script4472].cs2 index d8ba33af8..34387541b 100644 --- a/scripts/[clientscript,script4472].cs2 +++ b/scripts/[clientscript,script4472].cs2 @@ -1,3 +1,3 @@ // 4472 -[clientscript,script4472](component $component0, component $component1, component $component2, component $component3) -~script4473($component0, $component1, $component2, $component3); +[clientscript,script4472](component $component0, component $component1, component $component2, component $component3, component $component4) +~script4473($component0, $component1, $component2, $component3, $component4); diff --git a/scripts/[clientscript,script5244].cs2 b/scripts/[clientscript,script5244].cs2 new file mode 100644 index 000000000..8f4032de8 --- /dev/null +++ b/scripts/[clientscript,script5244].cs2 @@ -0,0 +1,7 @@ +// 5244 +[clientscript,script5244](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 $int13, int $clock14) +if (clientclock < calc($clock14 + 1)) { + return; +} +if_setontimer(null, $component1); +~ca_tasks_draw_list($int0, $component1, $component2, $component3, $component4, $component5, $component7, $component6, $component8, $component9, $component10, $component11, $component12, $int13); diff --git a/scripts/[clientscript,script5245].cs2 b/scripts/[clientscript,script5245].cs2 new file mode 100644 index 000000000..92070864e --- /dev/null +++ b/scripts/[clientscript,script5245].cs2 @@ -0,0 +1,4 @@ +// 5245 +[clientscript,script5245](component $component0, component $component1, component $component2) +if_setonvartransmit("script5246($component0, $component1, $component2, %varbit13068){var1425}", $component0); +~script5247($component0, $component1, $component2); diff --git a/scripts/[clientscript,script5246].cs2 b/scripts/[clientscript,script5246].cs2 new file mode 100644 index 000000000..8dd58010d --- /dev/null +++ b/scripts/[clientscript,script5246].cs2 @@ -0,0 +1,7 @@ +// 5246 +[clientscript,script5246](component $component0, component $component1, component $component2, int $int3) +if (%varbit13068 = $int3) { + return; +} +if_setonvartransmit("script5246($component0, $component1, $component2, %varbit13068){var1425}", $component0); +~script5247($component0, $component1, $component2); diff --git a/scripts/[clientscript,script5248].cs2 b/scripts/[clientscript,script5248].cs2 new file mode 100644 index 000000000..0ebf63044 --- /dev/null +++ b/scripts/[clientscript,script5248].cs2 @@ -0,0 +1,5 @@ +// 5248 +[clientscript,script5248](int $int0, component $component1, component $component2, component $component3) +%varbit13068 = $int0; +if_setonvartransmit("script5246($component1, $component2, $component3, %varbit13068){var1425}", $component1); +~script5247($component1, $component2, $component3); diff --git a/scripts/[clientscript,script5249].cs2 b/scripts/[clientscript,script5249].cs2 new file mode 100644 index 000000000..14780262d --- /dev/null +++ b/scripts/[clientscript,script5249].cs2 @@ -0,0 +1,11 @@ +// 5249 +[clientscript,script5249](component $component0, int $int1, component $component2, component $component3, component $component4, component $component5, component $component6) +~steelborder($component0, "Choose your Gamemode", 0); +cc_deleteall($component6); +~scrollbar_vertical($component6, $component4, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +~script5251($component5, 0); +~script5252($component2, $component3, 0); +if_setonop("script5250($component5, $component2, $component3, 1)", $component2); +if_setop(1, "Select", $component2); +if_setonop("script5250($component5, $component2, $component3, 2)", $component3); +if_setop(1, "Select", $component3); diff --git a/scripts/[clientscript,script5250].cs2 b/scripts/[clientscript,script5250].cs2 new file mode 100644 index 000000000..c3aaa65db --- /dev/null +++ b/scripts/[clientscript,script5250].cs2 @@ -0,0 +1,4 @@ +// 5250 +[clientscript,script5250](component $component0, component $component1, component $component2, int $int3) +~script5251($component0, $int3); +~script5252($component1, $component2, $int3); diff --git a/scripts/[clientscript,script5253].cs2 b/scripts/[clientscript,script5253].cs2 new file mode 100644 index 000000000..b7001d1ef --- /dev/null +++ b/scripts/[clientscript,script5253].cs2 @@ -0,0 +1,3 @@ +// 5253 +[clientscript,script5253](component $component0, string $string0, int $int1, boolean $boolean2) +~script5254($component0, $string0, $int1, $boolean2); diff --git a/scripts/[clientscript,script5255].cs2 b/scripts/[clientscript,script5255].cs2 new file mode 100644 index 000000000..4e36a4155 --- /dev/null +++ b/scripts/[clientscript,script5255].cs2 @@ -0,0 +1,36 @@ +// 5255 +[clientscript,script5255](component $component0, component $component1, component $component2, component $component3, component $component4) +cc_deleteall($component1); +cc_create($component1, ^iftype_text, 0); +cc_setcolour(0xff981f); +cc_settextshadow(true); +cc_settextfont(b12_full); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +def_int $comsubid5 = cc_getid; +cc_create($component1, ^iftype_graphic, 1); +cc_setsize(13, 13, ^setsize_abs, ^setsize_abs); +def_int $comsubid6 = cc_getid; +cc_deleteall($component2); +cc_create($component2, ^iftype_text, 0); +cc_setcolour(0xff981f); +cc_settextshadow(true); +cc_settextfont(p11_full); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +def_int $comsubid7 = cc_getid; +cc_create($component2, ^iftype_graphic, 1); +cc_setsize(13, 13, ^setsize_abs, ^setsize_abs); +def_int $comsubid8 = cc_getid; +cc_create($component2, ^iftype_text, 2); +cc_setcolour(0xff981f); +cc_settextshadow(true); +cc_settextfont(p11_full); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +def_int $comsubid9 = cc_getid; +cc_create($component2, ^iftype_graphic, 3); +cc_setsize(13, 13, ^setsize_abs, ^setsize_abs); +def_int $comsubid10 = cc_getid; +~script5257($component1, $comsubid5, $comsubid6, $component2, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $component3, $component4); +if_setonvartransmit("script5256($component1, $comsubid5, $comsubid6, $component2, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $component3, $component4){var3172}", $component0); +if_setonclansettingstransmit("script5256($component1, $comsubid5, $comsubid6, $component2, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $component3, $component4)", $component0); +if_setonclanchanneltransmit("script5256($component1, $comsubid5, $comsubid6, $component2, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $component3, $component4)", $component0); +if_setonfriendtransmit("script5256($component1, $comsubid5, $comsubid6, $component2, $comsubid7, $comsubid8, $comsubid9, $comsubid10, $component3, $component4)", $component0); diff --git a/scripts/[clientscript,script5256].cs2 b/scripts/[clientscript,script5256].cs2 new file mode 100644 index 000000000..952866ff0 --- /dev/null +++ b/scripts/[clientscript,script5256].cs2 @@ -0,0 +1,3 @@ +// 5256 +[clientscript,script5256](component $component0, int $comsubid1, int $comsubid2, component $component3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, component $component8, component $component9) +~script5257($component0, $comsubid1, $comsubid2, $component3, $comsubid4, $comsubid5, $comsubid6, $comsubid7, $component8, $component9); diff --git a/scripts/[clientscript,script5259].cs2 b/scripts/[clientscript,script5259].cs2 new file mode 100644 index 000000000..7b400a32b --- /dev/null +++ b/scripts/[clientscript,script5259].cs2 @@ -0,0 +1,38 @@ +// 5259 +[clientscript,script5259](int $opindex0, component $component1, int $comsubid2, string $string0, int $world3) +if (cc_find($component1, $comsubid2) = ^true) { + sound_synth(interface_select1, 1, 0); + cc_settrans(200); + cc_setonmouserepeat(null); + cc_setonmouseleave(null); + cc_setonop(null); + switch_int ($opindex0) { + case 1 : + cc_setontimer("script5260(calc(clientclock + 20), event_com, event_comsubid, $string0, $world3, false)"); + if ($world3 ! -1) { + if (friend_test($string0) = true) { + ~meslayer_mode6($string0); + } + } else { + mes("The player is not online at the moment."); + } + case 2 : + cc_setontimer("script5260(calc(clientclock + 20), event_com, event_comsubid, $string0, $world3, false)"); + if (friend_test($string0) = true) { + friend_del($string0); + } else { + friend_add($string0); + } + case 3 : + cc_setontimer("script5260(calc(clientclock + 20), event_com, event_comsubid, $string0, $world3, false)"); + if (ignore_test($string0) = true) { + ignore_del($string0); + } else { + ignore_add($string0); + } + case 10 : + cc_setontimer("script5260(calc(clientclock + 15), event_com, event_comsubid, $string0, $world3, true)"); + case default : + cc_setontimer("script5260(calc(clientclock + 20), event_com, event_comsubid, $string0, $world3, false)"); + } +} diff --git a/scripts/[clientscript,script5260].cs2 b/scripts/[clientscript,script5260].cs2 new file mode 100644 index 000000000..82c044555 --- /dev/null +++ b/scripts/[clientscript,script5260].cs2 @@ -0,0 +1,18 @@ +// 5260 +[clientscript,script5260](int $clock0, component $component1, int $comsubid2, string $string0, int $world3, boolean $boolean4) +if (clientclock >= $clock0 & cc_find($component1, $comsubid2) = ^true) { + cc_settrans(225); + cc_setontimer("cc_settrans_temporarily_end(event_com, event_comsubid, 255, calc(clientclock + 2))"); + if (~on_mobile = false) { + cc_setonmouserepeat("clan_members_hover(true, event_com, event_comsubid, 255)"); + } + cc_setonmouseleave("clan_members_hover(false, event_com, event_comsubid, 255)"); + cc_setonop("script5259(event_opindex, event_com, event_comsubid, $string0, $world3)"); + if ($boolean4 = true) { + if ($world3 ! -1) { + resume_countdialog(tostring($world3)); + } else { + resume_countdialog("0"); + } + } +} diff --git a/scripts/[clientscript,script5261].cs2 b/scripts/[clientscript,script5261].cs2 new file mode 100644 index 000000000..0e353a70d --- /dev/null +++ b/scripts/[clientscript,script5261].cs2 @@ -0,0 +1,10 @@ +// 5261 +[clientscript,script5261](component $component0, int $int1, component $component2, string $text0) +if ($int1 = 1) { + if_sethide(false, $component0); + if_setonop("opsound(event_opindex, 2)", $component0); + ~clan_stonebutton_init("Create Group", $component0, "p12_full"); +} else { + if_sethide(true, $component0); +} +if_settext($text0, $component2); diff --git a/scripts/[clientscript,script5264].cs2 b/scripts/[clientscript,script5264].cs2 new file mode 100644 index 000000000..fcc28e216 --- /dev/null +++ b/scripts/[clientscript,script5264].cs2 @@ -0,0 +1,49 @@ +// 5264 +[clientscript,script5264](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, component $component15, component $component16, component $component17, component $component18, component $component19, int $int20) +cc_deleteall($component0); +cc_deleteall($component6); +def_int $comsubid21 = ~steelborder($component1, "", 1); +def_int $size22 = inv_size(inv_659); +cc_create($component0, ^iftype_text, 0); +cc_setposition(36, 9, ^setpos_abs_right, ^setpos_abs_top); +cc_setcolour(0xff891f); +cc_settextfont(p11_full); +cc_settextalign(^settextalign_right, ^settextalign_centre, 0); +cc_settextshadow(true); +.cc_create($component0, ^iftype_graphic, 1); +.cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); +.cc_setgraphic("ge_smallicons,0"); +~script5267; +if_setonvartransmit("script5266(event_com, cc_getid, .cc_getid){var261, var262}", $component0); +if (~bankmain_searching = 1) { + ~meslayer_close(1, 1, 1); +} else if (%varcint5 <= 0) { + %varcstring359 = ""; +} +~script5276($component5, $component0, $component6, $component7, $size22, $component1, $comsubid21, $component2); +if_setonop("script5275(event_opindex, $component5, $component0, $component6, $component7, $size22, $component1, $comsubid21, $component2)", $component5); +if_settext(~tostring_spacer($size22, ","), $component3); +def_int $size23 = 0; +while ($size23 < $size22) { + cc_create($component6, ^iftype_graphic, $size23); + cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); + cc_setgraphicshadow(0x333333); + cc_setoutline(1); + cc_setdragdeadzone(5); + cc_setdragdeadtime(5); + $size23 = calc($size23 + 1); +} +~scrollbar_vertical($component7, $component6, "scrollbar_dragger_v2,3", "scrollbar_dragger_v2,0", "scrollbar_dragger_v2,1", "scrollbar_dragger_v2,2", "scrollbar_v2,0", "scrollbar_v2,1"); +~script5269($component0, $component6, $component7, $size22, $component1, $comsubid21, $component2); +if_setoninvtransmit("script5268($component0, event_com, $component7, $size22, $component1, $comsubid21, $component2){inv_659}", $component6); +if_setonvartransmit("script5268($component0, event_com, $component7, $size22, $component1, $comsubid21, $component2){var1666, var304}", $component6); +~bankmain_swapinsert($component8, $component9); +if_setonvartransmit("bankmain_swapinsert($component8, $component9){var304}", $component8); +~bankmain_itemnote($component10, $component11); +if_setonvartransmit("bankmain_itemnote($component10, $component11){var115}", $component10); +~bankmain_quantity_buttons($component13, $component14, $component15, $component16, $component17); +if_setonvartransmit("bankmain_quantity_buttons($component13, $component14, $component15, $component16, $component17){var1666, var304}", $component12); +~script5296($component18, "Save", "b12_full"); +~ge_offers_bigbutton($component4, "Back to bank", 0); +~script5308($component19); +if_setonvartransmit("script5307(event_com){var1293}", $component19); diff --git a/scripts/[clientscript,script5265].cs2 b/scripts/[clientscript,script5265].cs2 new file mode 100644 index 000000000..88373e18f --- /dev/null +++ b/scripts/[clientscript,script5265].cs2 @@ -0,0 +1,12 @@ +// 5265 +[clientscript,script5265](component $component0, component $component1, int $int2) +def_int $width3 = if_getwidth($component1); +def_int $height4 = if_getheight($component1); +def_int $comsubid5 = ~thinbox($component1, 0); +cc_create($component1, ^iftype_text, $comsubid5); +cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize($width3, $height4, ^setsize_abs, ^setsize_abs); +cc_settextfont(p11_full); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settextshadow(true); +~script5283($component0, $component1, $int2); diff --git a/scripts/[clientscript,script5266].cs2 b/scripts/[clientscript,script5266].cs2 new file mode 100644 index 000000000..837ed8105 --- /dev/null +++ b/scripts/[clientscript,script5266].cs2 @@ -0,0 +1,5 @@ +// 5266 +[clientscript,script5266](component $component0, int $comsubid1, int $comsubid2) +if (cc_find($component0, $comsubid1) = ^true & .cc_find($component0, $comsubid2) = ^true) { + ~script5267; +} diff --git a/scripts/[clientscript,script5268].cs2 b/scripts/[clientscript,script5268].cs2 new file mode 100644 index 000000000..4ac6c10b7 --- /dev/null +++ b/scripts/[clientscript,script5268].cs2 @@ -0,0 +1,3 @@ +// 5268 +[clientscript,script5268](component $component0, component $component1, component $component2, int $size3, component $component4, int $comsubid5, component $component6) +~script5269($component0, $component1, $component2, $size3, $component4, $comsubid5, $component6); diff --git a/scripts/[clientscript,script5271].cs2 b/scripts/[clientscript,script5271].cs2 new file mode 100644 index 000000000..96d0458a4 --- /dev/null +++ b/scripts/[clientscript,script5271].cs2 @@ -0,0 +1,5 @@ +// 5271 +[clientscript,script5271](component $component0, component $component1, component $component2, component $component3, int $int4, int $int5, int $int6, int $height7) +if (if_getheight($component0) ! $height7) { + ~script5270($component0, $component1, $component2, $component3, $int4, $int5, $int6); +} diff --git a/scripts/[clientscript,script5273].cs2 b/scripts/[clientscript,script5273].cs2 new file mode 100644 index 000000000..c03511bdf --- /dev/null +++ b/scripts/[clientscript,script5273].cs2 @@ -0,0 +1,25 @@ +// 5273 +[clientscript,script5273](int $int0, int $int1, component $component2, component $component3, int $comsubid4, component $component5) +def_int $int6 = 0; +def_int $int7 = 0; +if (cc_find($component3, $comsubid4) = ^true) { + $int0, $int6 = calc($int0 - if_getscrolly($component3)), if_getheight($component3); + if ($int0 < 5) { + $int7 = -5; + } else if ($int0 < 15) { + $int7 = -2; + } else if ($int0 >= calc($int6 - (5 + cc_getheight))) { + $int7 = 5; + } else if ($int0 >= calc($int6 - (15 + cc_getheight))) { + $int7 = 2; + } else { + return; + } + if (calc($int1 - clientclock) < 5) { + cc_setondrag("script5273(event_mousey, calc(~max(clientclock, $int1) + 2), $component2, event_com, event_comsubid, $component5)"); + return; + } + cc_setondrag("script5273(event_mousey, calc($int1 + 1), $component2, event_com, event_comsubid, $component5)"); + $int0 = ~min(calc(if_getscrollheight($component3) - $int6), ~max(0, calc(if_getscrolly($component3) + $int7))); + ~scrollbar_resize($component5, $component3, $int0); +} diff --git a/scripts/[clientscript,script5274].cs2 b/scripts/[clientscript,script5274].cs2 new file mode 100644 index 000000000..d0e35e5c5 --- /dev/null +++ b/scripts/[clientscript,script5274].cs2 @@ -0,0 +1,50 @@ +// 5274 +[clientscript,script5274](component $component0, component $drop1, int $comsubid2, component $drop3, int $dropsubid4, int $comsubid5, int $trans6, component $component7) +if ($drop3 ! $drop1 | $comsubid2 < 0 | $comsubid2 >= $comsubid5 | $dropsubid4 < 0 | $dropsubid4 >= $comsubid5) { + return; +} +def_obj $obj8 = inv_getobj(inv_659, $comsubid2); +if ($obj8 = null) { + return; +} +if (~bankmain_searching = 1) { + if (cc_find($drop1, $comsubid2) = ^true) { + cc_settrans(200); + cc_setontimer("cc_settrans_temporarily_end(event_com, event_comsubid, $trans6, calc(clientclock + 10))"); + } + return; +} +def_obj $obj9 = inv_getobj(inv_659, $dropsubid4); +if (%varbit3959 = 0 | $dropsubid4 = calc($comsubid2 + 1) | $dropsubid4 = calc($comsubid2 - 1) | $obj9 = null) { + if (cc_find($drop1, $dropsubid4) = ^true) { + ~script5272($obj8, inv_getnum(inv_659, $comsubid2), $comsubid5, $component0, $drop1, $component7); + } + if (cc_find($drop1, $comsubid2) = ^true) { + ~script5272($obj9, inv_getnum(inv_659, $dropsubid4), $comsubid5, $component0, $drop1, $component7); + } + return; +} +def_int $dropsubid10 = -1; +def_int $slot11 = -1; +if ($dropsubid4 < $comsubid2) { + $dropsubid10 = $comsubid2; + while ($dropsubid10 > $dropsubid4) { + if (cc_find($drop1, $dropsubid10) = ^true) { + $slot11 = calc($dropsubid10 - 1); + ~script5272(inv_getobj(inv_659, $slot11), inv_getnum(inv_659, $slot11), $comsubid5, $component0, $drop1, $component7); + } + $dropsubid10 = calc($dropsubid10 - 1); + } +} else { + $dropsubid10 = $comsubid2; + while ($dropsubid10 < $dropsubid4) { + if (cc_find($drop1, $dropsubid10) = ^true) { + $slot11 = calc($dropsubid10 + 1); + ~script5272(inv_getobj(inv_659, $slot11), inv_getnum(inv_659, $slot11), $comsubid5, $component0, $drop1, $component7); + } + $dropsubid10 = calc($dropsubid10 + 1); + } +} +if (cc_find($drop1, $dropsubid4) = ^true) { + ~script5272($obj8, inv_getnum(inv_659, $comsubid2), $comsubid5, $component0, $drop1, $component7); +} diff --git a/scripts/[clientscript,script5275].cs2 b/scripts/[clientscript,script5275].cs2 new file mode 100644 index 000000000..e52aa5559 --- /dev/null +++ b/scripts/[clientscript,script5275].cs2 @@ -0,0 +1,13 @@ +// 5275 +[clientscript,script5275](int $opindex0, component $component1, component $component2, component $component3, component $component4, int $size5, component $component6, int $comsubid7, component $component8) +if ($opindex0 ! 1) { + return; +} +if (~bankmain_searching = 1) { + ~meslayer_close(1, 1, 1); + ~script5276($component1, $component2, $component3, $component4, $size5, $component6, $comsubid7, $component8); + ~script5269($component2, $component3, $component4, $size5, $component6, $comsubid7, $component8); + return; +} +~meslayer_mode11; +~script5276($component1, $component2, $component3, $component4, $size5, $component6, $comsubid7, $component8); diff --git a/scripts/[clientscript,script5277].cs2 b/scripts/[clientscript,script5277].cs2 new file mode 100644 index 000000000..80494cb66 --- /dev/null +++ b/scripts/[clientscript,script5277].cs2 @@ -0,0 +1,10 @@ +// 5277 +[clientscript,script5277](component $component0, component $component1, component $component2, component $component3, int $int4, component $component5, int $int6, component $component7) +if (%varcint5 ! 11) { + ~script5269($component1, $component2, $component3, $int4, $component5, $int6, $component7); + ~script5276($component0, $component1, $component2, $component3, $int4, $component5, $int6, $component7); + return; +} +if (calc(clientclock % 40) = 0) { + ~script5269($component1, $component2, $component3, $int4, $component5, $int6, $component7); +} diff --git a/scripts/[clientscript,script5278].cs2 b/scripts/[clientscript,script5278].cs2 new file mode 100644 index 000000000..e1a64e265 --- /dev/null +++ b/scripts/[clientscript,script5278].cs2 @@ -0,0 +1,18 @@ +// 5278 +[clientscript,script5278](component $component0) +cc_deleteall($component0); +def_int $size1 = 0; +def_int $size2 = inv_size(inv_660); +while ($size1 < $size2) { + cc_create($component0, ^iftype_graphic, $size1); + cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); + cc_setgraphicshadow(0x333333); + cc_setoutline(1); + cc_setdragdeadzone(5); + cc_setdragdeadtime(5); + cc_sethide(false); + $size1 = calc($size1 + 1); +} +~script5280($component0); +if_setoninvtransmit("script5279(event_com){inv_660}", $component0); +if_setonvartransmit("script5279(event_com){var304, var1666}", $component0); diff --git a/scripts/[clientscript,script5279].cs2 b/scripts/[clientscript,script5279].cs2 new file mode 100644 index 000000000..d907c5688 --- /dev/null +++ b/scripts/[clientscript,script5279].cs2 @@ -0,0 +1,3 @@ +// 5279 +[clientscript,script5279](component $component0) +~script5280($component0); diff --git a/scripts/[clientscript,script5282].cs2 b/scripts/[clientscript,script5282].cs2 new file mode 100644 index 000000000..3b3b88446 --- /dev/null +++ b/scripts/[clientscript,script5282].cs2 @@ -0,0 +1,23 @@ +// 5282 +[clientscript,script5282](component $drop0, component $drop1, int $comsubid2, int $dropsubid3) +def_int $size4 = inv_size(inv_660); +if ($comsubid2 < 0 | $comsubid2 >= $size4) { + return; +} +if ($dropsubid3 < 0 | $dropsubid3 >= $size4) { + return; +} +if ($drop0 ! $drop1) { + return; +} +def_obj $obj5 = inv_getobj(inv_660, $comsubid2); +if ($obj5 = null) { + return; +} +def_obj $obj6 = inv_getobj(inv_660, $dropsubid3); +if (cc_find($drop0, $dropsubid3) = ^true) { + ~script5281($obj5, inv_getnum(inv_660, $comsubid2), $drop0); +} +if (cc_find($drop0, $comsubid2) = ^true) { + ~script5281($obj6, inv_getnum(inv_660, $dropsubid3), $drop0); +} diff --git a/scripts/[clientscript,script5284].cs2 b/scripts/[clientscript,script5284].cs2 new file mode 100644 index 000000000..fb5f9db83 --- /dev/null +++ b/scripts/[clientscript,script5284].cs2 @@ -0,0 +1,8 @@ +// 5284 +[clientscript,script5284](component $component0, component $component1, int $comsubid2, int $int3) +if (cc_find($component1, $comsubid2) = ^true) { + if ($int3 > 0) { + $int3 = calc($int3 - 1); + } + ~script5285($component0, $component1, $int3); +} diff --git a/scripts/[clientscript,script5286].cs2 b/scripts/[clientscript,script5286].cs2 new file mode 100644 index 000000000..a42fc5ad3 --- /dev/null +++ b/scripts/[clientscript,script5286].cs2 @@ -0,0 +1,4 @@ +// 5286 +[clientscript,script5286](component $component0) +cc_deleteall($component0); +~script5288($component0, 0, 0, 0, if_getwidth($component0), if_getheight($component0), struct_3712, 0x726451); diff --git a/scripts/[clientscript,script5287].cs2 b/scripts/[clientscript,script5287].cs2 new file mode 100644 index 000000000..dca172d9a --- /dev/null +++ b/scripts/[clientscript,script5287].cs2 @@ -0,0 +1,4 @@ +// 5287 +[clientscript,script5287](component $component0, int $colour1) +cc_deleteall($component0); +~script5288($component0, 0, 0, 0, if_getwidth($component0), if_getheight($component0), struct_3712, $colour1); diff --git a/scripts/[clientscript,script5289].cs2 b/scripts/[clientscript,script5289].cs2 new file mode 100644 index 000000000..be7c3a053 --- /dev/null +++ b/scripts/[clientscript,script5289].cs2 @@ -0,0 +1,29 @@ +// 5289 +[clientscript,script5289](component $component0, int $int1, struct $struct2) +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,script5290].cs2 b/scripts/[clientscript,script5290].cs2 new file mode 100644 index 000000000..5f2e1184a --- /dev/null +++ b/scripts/[clientscript,script5290].cs2 @@ -0,0 +1,5 @@ +// 5290 +[clientscript,script5290](component $component0, int $comsubid1, int $colour2) +if (cc_find($component0, $comsubid1) = ^true) { + cc_setcolour($colour2); +} diff --git a/scripts/[clientscript,script5292].cs2 b/scripts/[clientscript,script5292].cs2 new file mode 100644 index 000000000..7ffce78ce --- /dev/null +++ b/scripts/[clientscript,script5292].cs2 @@ -0,0 +1,20 @@ +// 5292 +[clientscript,script5292](component $component0, int $int1, struct $struct2) +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_1387)); +} +if (cc_find($component0, calc($int1 + 6)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1393)); +} diff --git a/scripts/[clientscript,script5294].cs2 b/scripts/[clientscript,script5294].cs2 new file mode 100644 index 000000000..9f786f10d --- /dev/null +++ b/scripts/[clientscript,script5294].cs2 @@ -0,0 +1,20 @@ +// 5294 +[clientscript,script5294](component $component0, int $int1, struct $struct2) +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_1390)); +} +if (cc_find($component0, calc($int1 + 3)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1388)); +} +if (cc_find($component0, calc($int1 + 4)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1392)); +} +if (cc_find($component0, calc($int1 + 5)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1387)); +} +if (cc_find($component0, calc($int1 + 6)) = ^true) { + cc_setgraphic(struct_param($struct2, param_1389)); +} diff --git a/scripts/[clientscript,script5297].cs2 b/scripts/[clientscript,script5297].cs2 new file mode 100644 index 000000000..f01d9714d --- /dev/null +++ b/scripts/[clientscript,script5297].cs2 @@ -0,0 +1,21 @@ +// 5297 +[clientscript,script5297](int $opindex0, component $component1, string $string0, graphic $graphic2) +if ($opindex0 ! 1) { + return; +} +sound_synth(interface_select1, 1, 0); +cc_deleteall($component1); +def_int $comsubid3 = ~options_button_on($component1, 0); +cc_create($component1, ^iftype_text, $comsubid3); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); +cc_setcolour(0x8f8f8f); +cc_settextfont(p11_full); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settextshadow(true); +cc_settext("Refresh"); +if_setonmouseover(null, $component1); +if_setonmouseleave(null, $component1); +if_setop(1, "", $component1); +if_setonop(null, $component1); +if_setontimer("script5298(calc(clientclock + 40), event_com, $string0, $graphic2)", $component1); diff --git a/scripts/[clientscript,script5298].cs2 b/scripts/[clientscript,script5298].cs2 new file mode 100644 index 000000000..af636cedb --- /dev/null +++ b/scripts/[clientscript,script5298].cs2 @@ -0,0 +1,5 @@ +// 5298 +[clientscript,script5298](int $clock0, component $component1, string $string0, graphic $graphic2) +if (clientclock >= $clock0) { + ~script5296($component1, $string0, $graphic2); +} diff --git a/scripts/[clientscript,script5299].cs2 b/scripts/[clientscript,script5299].cs2 new file mode 100644 index 000000000..13c53e95d --- /dev/null +++ b/scripts/[clientscript,script5299].cs2 @@ -0,0 +1,3 @@ +// 5299 +[clientscript,script5299](component $component0) +~script5300($component0); diff --git a/scripts/[clientscript,script5301].cs2 b/scripts/[clientscript,script5301].cs2 new file mode 100644 index 000000000..b961f5fe2 --- /dev/null +++ b/scripts/[clientscript,script5301].cs2 @@ -0,0 +1,13 @@ +// 5301 +[clientscript,script5301](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5) +~side_channels_tabinit($component1, 0); +~side_channels_tabinit($component2, 1); +~side_channels_tabinit($component3, 2); +~side_channels_tabinit($component4, 3); +if (%varbit1777 = 4) { + ~side_channels_tabinit($component5, 4); +} else { + ~side_channels_tabinit($component5, 5); +} +~script4473($component1, $component2, $component3, $component4, $component5); +if_setonvartransmit("script4472($component1, $component2, $component3, $component4, $component5){var1054}", $component0); diff --git a/scripts/[clientscript,script5302].cs2 b/scripts/[clientscript,script5302].cs2 new file mode 100644 index 000000000..f785622f9 --- /dev/null +++ b/scripts/[clientscript,script5302].cs2 @@ -0,0 +1,9 @@ +// 5302 +[clientscript,script5302](component $component0, int $comsubid1, component $component2) +if (%varbit1777 ! 4 & %varbit1777 ! 5) { + return; +} +if (cc_find($component0, $comsubid1) = ^true) { + cc_setgraphic(enum(int, graphic, enum_3840, %varbit1777)); + if_setop(1, enum(int, string, enum_3839, %varbit1777), $component2); +} diff --git a/scripts/[clientscript,script5303].cs2 b/scripts/[clientscript,script5303].cs2 new file mode 100644 index 000000000..4253740e9 --- /dev/null +++ b/scripts/[clientscript,script5303].cs2 @@ -0,0 +1,12 @@ +// 5303 +[clientscript,script5303](component $component0, component $component1) +if (%varbit1777 ! 4 & %varbit1777 ! 5) { + return; +} +if (%varbit13071 ! 4 & %varbit13071 ! 5) { + return; +} +if_setgraphic(enum(int, graphic, enum_3841, %varbit1777), $component0); +if ($component1 ! null) { + if_setop(1, enum(int, string, enum_3839, %varbit1777), $component1); +} diff --git a/scripts/[clientscript,script5304].cs2 b/scripts/[clientscript,script5304].cs2 new file mode 100644 index 000000000..8a7e633ed --- /dev/null +++ b/scripts/[clientscript,script5304].cs2 @@ -0,0 +1,3 @@ +// 5304 +[clientscript,script5304] +mes("Only the group leader can do that."); diff --git a/scripts/[clientscript,script5306].cs2 b/scripts/[clientscript,script5306].cs2 new file mode 100644 index 000000000..9b1ddf2eb --- /dev/null +++ b/scripts/[clientscript,script5306].cs2 @@ -0,0 +1,4 @@ +// 5306 +[clientscript,script5306](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5) +~ge_offers_setup_init($component0, $component1, $component2); +~script819($component3, $component4, $component5); diff --git a/scripts/[clientscript,script5307].cs2 b/scripts/[clientscript,script5307].cs2 new file mode 100644 index 000000000..903893987 --- /dev/null +++ b/scripts/[clientscript,script5307].cs2 @@ -0,0 +1,3 @@ +// 5307 +[clientscript,script5307](component $component0) +~script5308($component0); diff --git a/scripts/[clientscript,side_channels_init].cs2 b/scripts/[clientscript,side_channels_init].cs2 index caca439fb..fed1f6758 100644 --- a/scripts/[clientscript,side_channels_init].cs2 +++ b/scripts/[clientscript,side_channels_init].cs2 @@ -4,5 +4,5 @@ ~side_channels_tabinit($component2, 1); ~side_channels_tabinit($component3, 2); ~side_channels_tabinit($component4, 3); -~script4473($component1, $component2, $component3, $component4); -if_setonvartransmit("script4472($component1, $component2, $component3, $component4){var1054}", $component0); +~script4473($component1, $component2, $component3, $component4, null); +if_setonvartransmit("script4472($component1, $component2, $component3, $component4, null){var1054}", $component0); diff --git a/scripts/[clientscript,side_channels_optab].cs2 b/scripts/[clientscript,side_channels_optab].cs2 index 3c6185904..c0429c774 100644 --- a/scripts/[clientscript,side_channels_optab].cs2 +++ b/scripts/[clientscript,side_channels_optab].cs2 @@ -1,7 +1,7 @@ // 4478 -[clientscript,side_channels_optab](int $opindex0, int $int1, component $component2, component $component3, component $component4, component $component5) +[clientscript,side_channels_optab](int $opindex0, int $int1, component $component2, component $component3, component $component4, component $component5, component $component6) if ($opindex0 ! 1) { return; } -%varbit930 = $int1; -~script4473($component2, $component3, $component4, $component5); +%varbit13071 = $int1; +~script4473($component2, $component3, $component4, $component5, $component6); diff --git a/scripts/[proc,bankmain_filterstring].cs2 b/scripts/[proc,bankmain_filterstring].cs2 index 17148146b..9c02684a7 100644 --- a/scripts/[proc,bankmain_filterstring].cs2 +++ b/scripts/[proc,bankmain_filterstring].cs2 @@ -1,7 +1,7 @@ // 280 [proc,bankmain_filterstring]()(string) def_string $string0 = lowercase(%varcstring359); -if (string_length($string0) <= 16) { +if (string_length($string0) <= 15) { return($string0); } return(substring($string0, 0, 15)); diff --git a/scripts/[proc,ca_bosses_draw_list].cs2 b/scripts/[proc,ca_bosses_draw_list].cs2 index 5a5a65cef..71aa9c065 100644 --- a/scripts/[proc,ca_bosses_draw_list].cs2 +++ b/scripts/[proc,ca_bosses_draw_list].cs2 @@ -33,9 +33,11 @@ def_int $intarray0(calc($count15 + 1)); def_enum $enum32 = enum_3981; def_int $index33 = 0; def_int $count34 = enum_getoutputcount($enum32); +def_struct $struct35 = null; while ($count16 < $count34) { - $index33 = struct_param(enum(int, struct, $enum32, $count16), param_1312); - if ($index33 <= $count15) { + $struct35 = enum(int, struct, $enum32, $count16); + $index33 = struct_param($struct35, param_1312); + if ($index33 <= $count15 & ~script5243($struct35) = 0) { $intarray0($index33) = calc($intarray0($index33) + 1); } $count16 = calc($count16 + 1); @@ -44,8 +46,9 @@ $count16 = 0; $enum32 = enum_3982; $count34 = enum_getoutputcount($enum32); while ($count16 < $count34) { - $index33 = struct_param(enum(int, struct, $enum32, $count16), param_1312); - if ($index33 <= $count15) { + $struct35 = enum(int, struct, $enum32, $count16); + $index33 = struct_param($struct35, param_1312); + if ($index33 <= $count15 & ~script5243($struct35) = 0) { $intarray0($index33) = calc($intarray0($index33) + 1); } $count16 = calc($count16 + 1); @@ -54,8 +57,9 @@ $count16 = 0; $enum32 = enum_3983; $count34 = enum_getoutputcount($enum32); while ($count16 < $count34) { - $index33 = struct_param(enum(int, struct, $enum32, $count16), param_1312); - if ($index33 <= $count15) { + $struct35 = enum(int, struct, $enum32, $count16); + $index33 = struct_param($struct35, param_1312); + if ($index33 <= $count15 & ~script5243($struct35) = 0) { $intarray0($index33) = calc($intarray0($index33) + 1); } $count16 = calc($count16 + 1); @@ -64,8 +68,9 @@ $count16 = 0; $enum32 = enum_3984; $count34 = enum_getoutputcount($enum32); while ($count16 < $count34) { - $index33 = struct_param(enum(int, struct, $enum32, $count16), param_1312); - if ($index33 <= $count15) { + $struct35 = enum(int, struct, $enum32, $count16); + $index33 = struct_param($struct35, param_1312); + if ($index33 <= $count15 & ~script5243($struct35) = 0) { $intarray0($index33) = calc($intarray0($index33) + 1); } $count16 = calc($count16 + 1); @@ -74,8 +79,9 @@ $count16 = 0; $enum32 = enum_3985; $count34 = enum_getoutputcount($enum32); while ($count16 < $count34) { - $index33 = struct_param(enum(int, struct, $enum32, $count16), param_1312); - if ($index33 <= $count15) { + $struct35 = enum(int, struct, $enum32, $count16); + $index33 = struct_param($struct35, param_1312); + if ($index33 <= $count15 & ~script5243($struct35) = 0) { $intarray0($index33) = calc($intarray0($index33) + 1); } $count16 = calc($count16 + 1); @@ -84,8 +90,9 @@ $count16 = 0; $enum32 = enum_3986; $count34 = enum_getoutputcount($enum32); while ($count16 < $count34) { - $index33 = struct_param(enum(int, struct, $enum32, $count16), param_1312); - if ($index33 <= $count15) { + $struct35 = enum(int, struct, $enum32, $count16); + $index33 = struct_param($struct35, param_1312); + if ($index33 <= $count15 & ~script5243($struct35) = 0) { $intarray0($index33) = calc($intarray0($index33) + 1); } $count16 = calc($count16 + 1); diff --git a/scripts/[proc,ca_task_display].cs2 b/scripts/[proc,ca_task_display].cs2 index 61e5696a0..27dc14521 100644 --- a/scripts/[proc,ca_task_display].cs2 +++ b/scripts/[proc,ca_task_display].cs2 @@ -1,15 +1,18 @@ // 4819 -[proc,ca_task_display](int $int0, int $int1, int $int2, int $int3)(int) -if (%varbit12858 ! 0 & %varbit12858 ! $int0) { +[proc,ca_task_display](struct $struct0, int $int1, int $int2, int $int3, int $int4)(int) +if (~script5243($struct0) = 1) { return(0); } -if (%varbit12859 ! 0 & %varbit12859 ! $int2) { +if (%varbit12858 ! 0 & %varbit12858 ! $int1) { return(0); } -if (%varbit12860 ! 0 & %varbit12860 ! $int3) { +if (%varbit12859 ! 0 & %varbit12859 ! $int3) { return(0); } -if (%varbit12861 ! 0 & calc(%varbit12861 - 1) ! $int1) { +if (%varbit12860 ! 0 & %varbit12860 ! $int4) { + return(0); +} +if (%varbit12861 ! 0 & calc(%varbit12861 - 1) ! $int2) { return(0); } return(1); diff --git a/scripts/[proc,ca_tasks_boss_total_tier].cs2 b/scripts/[proc,ca_tasks_boss_total_tier].cs2 index b524dd3d2..1b6ff1c1b 100644 --- a/scripts/[proc,ca_tasks_boss_total_tier].cs2 +++ b/scripts/[proc,ca_tasks_boss_total_tier].cs2 @@ -9,7 +9,7 @@ def_struct $struct4 = null; def_int $int5 = 0; while ($count2 < $count3) { $struct4 = enum(int, struct, $enum0, $count2); - if ($struct4 ! null & struct_param($struct4, param_1312) = $int1) { + if ($struct4 ! null & struct_param($struct4, param_1312) = $int1 & ~script5243($struct4) = 0) { $int5 = calc($int5 + 1); } $count2 = calc($count2 + 1); diff --git a/scripts/[proc,ca_tasks_draw_list].cs2 b/scripts/[proc,ca_tasks_draw_list].cs2 index 7113c8843..24c50703e 100644 --- a/scripts/[proc,ca_tasks_draw_list].cs2 +++ b/scripts/[proc,ca_tasks_draw_list].cs2 @@ -17,7 +17,7 @@ $enumarray0(3) = enum_3984; $enumarray0(4) = enum_3985; $enumarray0(5) = enum_3986; def_int $colour16 = 0xff981f; -def_int $length17 = ~ca_tasks_total; +def_int $length17 = ~script5241; def_struct $structarray1($length17); def_int $int18 = 0; def_int $length19 = 0; @@ -56,7 +56,7 @@ while ($int18 < $length17) { $string1 = struct_param($struct22, param_1309); $int30 = struct_param($struct22, param_1311); $int31 = struct_param($struct22, param_1312); - if (~ca_task_display($int29, $int28, $int30, $int31) = 1) { + if (~ca_task_display($struct22, $int29, $int28, $int30, $int31) = 1) { cc_create($component4, ^iftype_rectangle, $int14); if ($int18 = $int0) { $int32 = paraheight("Description: <$string1>", calc(if_getwidth($component4) - 10), p11_full); @@ -91,10 +91,10 @@ while ($int18 < $length17) { cc_setopbase("<$text0>"); if ($int18 = $int0) { cc_setop(1, "Collapse"); - cc_setonop("ca_tasks_draw_list(-1, $component1, $component2, $component3, $component4, $component5, $component7, $component6, $component8, $component9, $component10, $component11, $component12, $int13)"); + cc_setonop("ca_tasks_draw_list(-1, $component1, $component2, $component3, $component4, $component5, $component7, $component6, $component8, $component9, $component10, $component11, $component12, $int13, clientclock)"); } else { cc_setop(1, "Expand"); - cc_setonop("ca_tasks_draw_list($int18, $component1, $component2, $component3, $component4, $component5, $component7, $component6, $component8, $component9, $component10, $component11, $component12, $int13)"); + cc_setonop("ca_tasks_draw_list($int18, $component1, $component2, $component3, $component4, $component5, $component7, $component6, $component8, $component9, $component10, $component11, $component12, $int13, clientclock)"); } cc_create($component9, ^iftype_graphic, $int14); cc_setsize(18, 18, ^setsize_abs, ^setsize_abs); diff --git a/scripts/[proc,ca_tasks_tier_total].cs2 b/scripts/[proc,ca_tasks_tier_total].cs2 index df6f615b5..47917b5aa 100644 --- a/scripts/[proc,ca_tasks_tier_total].cs2 +++ b/scripts/[proc,ca_tasks_tier_total].cs2 @@ -1,18 +1,25 @@ // 4789 [proc,ca_tasks_tier_total](int $int0)(int) +def_enum $enum1 = enum_3981; switch_int ($int0) { - case 1 : - return(enum_getoutputcount(enum_3981)); case 2 : - return(enum_getoutputcount(enum_3982)); + $enum1 = enum_3982; case 3 : - return(enum_getoutputcount(enum_3983)); + $enum1 = enum_3983; case 4 : - return(enum_getoutputcount(enum_3984)); + $enum1 = enum_3984; case 5 : - return(enum_getoutputcount(enum_3985)); + $enum1 = enum_3985; case 6 : - return(enum_getoutputcount(enum_3986)); - case default : - return(-1); + $enum1 = enum_3986; } +def_int $count2 = 0; +def_int $int3 = 0; +def_int $count4 = enum_getoutputcount($enum1); +while ($count2 < $count4) { + if (~script5243(enum(int, struct, $enum1, $count2)) = 0) { + $int3 = calc($int3 + 1); + } + $count2 = calc($count2 + 1); +} +return($int3); diff --git a/scripts/[proc,ca_tasks_total].cs2 b/scripts/[proc,ca_tasks_total].cs2 index 4865c3ce2..1c36e881a 100644 --- a/scripts/[proc,ca_tasks_total].cs2 +++ b/scripts/[proc,ca_tasks_total].cs2 @@ -7,4 +7,5 @@ $int0 = calc($int0 + enum_getoutputcount(enum_3983)); $int0 = calc($int0 + enum_getoutputcount(enum_3984)); $int0 = calc($int0 + enum_getoutputcount(enum_3985)); $int0 = calc($int0 + enum_getoutputcount(enum_3986)); +$int0 = calc($int0 - ~script5242); return($int0); diff --git a/scripts/[proc,chatalerts].cs2 b/scripts/[proc,chatalerts].cs2 index f78319e3b..490f5209c 100644 --- a/scripts/[proc,chatalerts].cs2 +++ b/scripts/[proc,chatalerts].cs2 @@ -23,7 +23,7 @@ while ($mesuid0 ! -1) { if ($clock4 <= $clock1) { return; } - if (~filtertest($chattype3, $string0, ~script4742($string3, $string2), $clock4, $int2, removetags(chat_playername), $int5) = 1 & ~trade_partner_check($chattype3, $string0, $int5) = 0) { + if (~filtertest($chattype3, $string0, ~script4742($string3, $string2), $string2, $clock4, $int2, removetags(chat_playername), $int5) = 1 & ~trade_partner_check($chattype3, $string0, $int5) = 0) { switch_int ($chattype3) { case ^chattype_modchat, ^chattype_publicchat : ~chat_alert_enable(2); @@ -37,8 +37,14 @@ while ($mesuid0 ! -1) { ~chat_alert_enable(6); case ^chattype_friendschat, ^chattype_friendschatnotification, ^chattype_chalreq_friendschat : ~chat_alert_enable(4); - case 41, 43, 44, 46, 109, 110 : + case 41, 44, 46, 109, 110, 111, 112 : ~chat_alert_enable(5); + case 43 : + if (~script5309($string2) = 1) { + ~chat_alert_enable(1); + } else { + ~chat_alert_enable(5); + } case default : if (enum(int, boolean, enum_892, $chattype3) = true & $chattype3 ! 108) { ~chat_alert_enable(1); diff --git a/scripts/[proc,clan_create_player_component].cs2 b/scripts/[proc,clan_create_player_component].cs2 index 3dcc3bbfd..4582fd63c 100644 --- a/scripts/[proc,clan_create_player_component].cs2 +++ b/scripts/[proc,clan_create_player_component].cs2 @@ -17,7 +17,7 @@ if (compare($string1, removetags($string0)) = 0) { } cc_setopbase($string0); cc_setonop("script4451(event_opindex, event_opbase)"); -if (%varbit12171 = 1) { +if (%varbit12171 = 1 | %varbit13058 = 1) { cc_setop(1, "Kick"); } if (friend_test($string0) = true) { diff --git a/scripts/[proc,clan_stonebutton_target_init].cs2 b/scripts/[proc,clan_stonebutton_target_init].cs2 index d0a8316fe..115bade03 100644 --- a/scripts/[proc,clan_stonebutton_target_init].cs2 +++ b/scripts/[proc,clan_stonebutton_target_init].cs2 @@ -6,7 +6,7 @@ if (~on_mobile = false) { if_setonmouserepeat("script4453(true, $string0, event_com, $graphic1)", $component0); } if_setonmouseleave("script4453(false, $string0, event_com, $graphic1)", $component0); -if (%varbit12171 = 1) { +if (%varbit12171 = 1 | %varbit13058 = 1) { if_setop(1, removetags($string0), $component0); } if_setontimer(null, $component0); diff --git a/scripts/[proc,dynamic_stone_button_filled].cs2 b/scripts/[proc,dynamic_stone_button_filled].cs2 index 57b9b91c1..ab7656331 100644 --- a/scripts/[proc,dynamic_stone_button_filled].cs2 +++ b/scripts/[proc,dynamic_stone_button_filled].cs2 @@ -18,7 +18,7 @@ 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) { +if ($int8 = 1 & $component1 ! null) { $boolean17 = ~on_mobile; cc_create($component1, ^iftype_rectangle, $comsubid7); if ($boolean17 = true) { diff --git a/scripts/[proc,filtertest].cs2 b/scripts/[proc,filtertest].cs2 index 641a1f107..1c432eabd 100644 --- a/scripts/[proc,filtertest].cs2 +++ b/scripts/[proc,filtertest].cs2 @@ -1,5 +1,5 @@ // 90 -[proc,filtertest](int $chattype0, string $string0, string $string1, int $clock1, int $int2, string $string2, int $int3)(int) +[proc,filtertest](int $chattype0, string $string0, string $string1, string $string2, int $clock1, int $int2, string $string3, int $int3)(int) if ($chattype0 = null) { return(0); } @@ -13,7 +13,7 @@ if (enum(int, boolean, enum_892, $chattype0) = true & $chattype0 ! ^chattype_pla return(1); } def_int $chatfilter4 = null; -def_string $string3 = ""; +def_string $string4 = ""; def_int $int5 = -1; def_int $int6 = ~script4487; switch_int ($chattype0) { @@ -21,7 +21,7 @@ switch_int ($chattype0) { if ($clock1 < %varcint199) { return(0); } - if (compare($string2, removetags($string0)) = 0) { + if (compare($string3, removetags($string0)) = 0) { return(1); } if ($int3 = 2) { @@ -45,7 +45,7 @@ switch_int ($chattype0) { if ($clock1 < %varcint199) { return(0); } - if (compare($string2, removetags($string0)) = 0) { + if (compare($string3, removetags($string0)) = 0) { return(1); } if ($int3 = 2) { @@ -108,7 +108,7 @@ switch_int ($chattype0) { if ($clock1 < %varcint439) { return(0); } - if (compare($string2, removetags($string0)) = 0) { + if (compare($string3, removetags($string0)) = 0) { return(1); } if ($int3 = 2) { @@ -129,14 +129,17 @@ switch_int ($chattype0) { return(1); } return(0); - case 41, 44, 43, 46, 109, 110 : + case 41, 44, 43, 46, 109, 110, 111, 112 : + if ($chattype0 = 43 & ~script5309($string2) = 1) { + return(1); + } if ($clock1 < %varcint440) { return(0); } if (%varbit931 = 1 & ($chattype0 = 41 | $chattype0 = 43)) { return(0); } - if (compare($string2, removetags($string0)) = 0) { + if (compare($string3, removetags($string0)) = 0) { return(1); } if ($int3 = 2) { @@ -163,7 +166,7 @@ switch_int ($chattype0) { if ($clock1 < %varcint202) { return(0); } - $string1, $string3, $int5 = ~chat_broadcast_parseurl($string1); + $string1, $string4, $int5 = ~chat_broadcast_parseurl($string1); if ($int5 = 4 & reboottimer > 0) { return(0); } diff --git a/scripts/[proc,ge_offers_index_drawslot].cs2 b/scripts/[proc,ge_offers_index_drawslot].cs2 index 72050f380..a707d29fb 100644 --- a/scripts/[proc,ge_offers_index_drawslot].cs2 +++ b/scripts/[proc,ge_offers_index_drawslot].cs2 @@ -12,6 +12,7 @@ def_graphic $graphic35 = "ge_icons,1"; def_string $string1 = "Offer to BUY items."; def_int $int36 = 0; def_int $int37 = 0; +def_int $int38 = 0; if (~deadman_world = true) { if ($int9 < 8) { $int37 = 1; @@ -58,49 +59,108 @@ if (stockmarket_isofferempty($int9) = true) { if (cc_find($component8, $comsubid24) = ^true) { cc_sethide(true); } - if (cc_find($component8, $comsubid10) = ^true) { - cc_sethide(false); - } - if (cc_find($component8, $comsubid11) = ^true) { - cc_sethide(false); - } - if (cc_find($component8, $comsubid13) = ^true & .cc_find($component8, $comsubid14) = ^true) { - cc_sethide(false); - .cc_sethide(false); - if ($int37 = 1) { - cc_setop(1, "Create Buy offer"); - .cc_setop(1, "Create Sell offer"); - cc_setonop("script805(event_opindex, $int9, 0, $component2, $comsubid3, $component4, $component5, $component6, $component7, $component27)"); - .cc_setonop("script805(event_opindex, $int9, 1, $component2, $comsubid3, $component4, $component5, $component6, $component7, $component27)"); - cc_setonmouseover("cc_graphic_swapper($component8, $comsubid25, $graphic33, null)"); - .cc_setonmouseover("cc_graphic_swapper($component8, $comsubid26, $graphic35, null)"); - cc_setonmouseleave("cc_graphic_swapper($component8, $comsubid25, $graphic32, $component27)"); - .cc_setonmouseleave("cc_graphic_swapper($component8, $comsubid26, $graphic34, $component27)"); - cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component27, $string1, 25, 512)"); - $string1 = "Offer to SELL items."; - .cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component27, $string1, 25, 512)"); - if (cc_find($component8, $comsubid25) = ^true & .cc_find($component8, $comsubid26) = ^true) { - cc_sethide(false); - .cc_sethide(false); - cc_setgraphic($graphic32); - .cc_setgraphic($graphic34); + if (~script5305 = true) { + $int38 = calc(25 + (if_getheight($component8) - 91) / 2); + if (cc_find($component8, $comsubid11) = ^true) { + cc_sethide(true); + } + if (cc_find($component8, $comsubid14) = ^true) { + cc_sethide(true); + } + if (cc_find($component8, $comsubid10) = ^true) { + cc_sethide(false); + cc_setsize(63, 63, ^setsize_abs, ^setsize_abs); + cc_setposition(1, calc($int38 + 1), ^setpos_abs_centre, ^setpos_abs_top); + } + if (cc_find($component8, $comsubid13) = ^true) { + cc_sethide(false); + cc_setsize(63, 63, ^setsize_abs, ^setsize_abs); + cc_setposition(0, $int38, ^setpos_abs_centre, ^setpos_abs_top); + if ($int37 = 1) { + cc_setop(1, "Create Buy offer"); + cc_setonop("script805(event_opindex, $int9, 0, $component2, $comsubid3, $component4, $component5, $component6, $component7, $component27)"); + cc_setonmouseover("cc_graphic_swapper($component8, $comsubid25, $graphic33, null)"); + cc_setonmouseleave("cc_graphic_swapper($component8, $comsubid25, $graphic32, $component27)"); + $string1 = "Offer to buy a bond."; + cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component27, $string1, 25, 512)"); + if (cc_find($component8, $comsubid25) = ^true) { + cc_sethide(false); + cc_setposition(0, calc($int38 + 14), ^setpos_abs_centre, ^setpos_abs_top); + cc_setgraphic($graphic32); + } + } else { + cc_clearops; + cc_setonop(null); + cc_setonmouseover(null); + cc_setonmouseleave(null); + cc_setonmouserepeat(null); + if (cc_find($component8, $comsubid25) = ^true) { + cc_sethide(false); + cc_setposition(0, calc($int38 + 14), ^setpos_abs_centre, ^setpos_abs_top); + cc_setgraphic($graphic33); + } } - } else { - cc_clearops; - .cc_clearops; - cc_setonop(null); - .cc_setonop(null); - cc_setonmouseover(null); - .cc_setonmouseover(null); - cc_setonmouseleave(null); - .cc_setonmouseleave(null); - cc_setonmouserepeat(null); - .cc_setonmouserepeat(null); - if (cc_find($component8, $comsubid25) = ^true & .cc_find($component8, $comsubid26) = ^true) { - cc_sethide(false); - .cc_sethide(false); - cc_setgraphic($graphic33); - .cc_setgraphic($graphic35); + } + if (cc_find($component8, $comsubid26) = ^true) { + cc_sethide(true); + } + } else { + $int38 = calc(25 + (if_getheight($component8) - 73) / 2); + if (cc_find($component8, $comsubid10) = ^true) { + cc_sethide(false); + cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); + cc_setposition(7, calc($int38 + 1), ^setpos_abs_left, ^setpos_abs_top); + } + if (cc_find($component8, $comsubid11) = ^true) { + cc_sethide(false); + cc_setposition(calc(if_getwidth($component8) - 53 + 1), calc($int38 + 1), ^setpos_abs_left, ^setpos_abs_top); + } + if (cc_find($component8, $comsubid13) = ^true & .cc_find($component8, $comsubid14) = ^true) { + cc_sethide(false); + .cc_sethide(false); + cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); + .cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); + cc_setposition(6, $int38, ^setpos_abs_left, ^setpos_abs_top); + .cc_setposition(7, $int38, ^setpos_abs_right, ^setpos_abs_top); + if ($int37 = 1) { + cc_setop(1, "Create Buy offer"); + .cc_setop(1, "Create Sell offer"); + cc_setonop("script805(event_opindex, $int9, 0, $component2, $comsubid3, $component4, $component5, $component6, $component7, $component27)"); + .cc_setonop("script805(event_opindex, $int9, 1, $component2, $comsubid3, $component4, $component5, $component6, $component7, $component27)"); + cc_setonmouseover("cc_graphic_swapper($component8, $comsubid25, $graphic33, null)"); + .cc_setonmouseover("cc_graphic_swapper($component8, $comsubid26, $graphic35, null)"); + cc_setonmouseleave("cc_graphic_swapper($component8, $comsubid25, $graphic32, $component27)"); + .cc_setonmouseleave("cc_graphic_swapper($component8, $comsubid26, $graphic34, $component27)"); + cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component27, $string1, 25, 512)"); + $string1 = "Offer to SELL items."; + .cc_setonmouserepeat("tooltip_mouserepeat(event_com, event_comsubid, $component27, $string1, 25, 512)"); + if (cc_find($component8, $comsubid25) = ^true & .cc_find($component8, $comsubid26) = ^true) { + cc_sethide(false); + .cc_sethide(false); + cc_setposition(13, calc($int38 + 5), ^setpos_abs_left, ^setpos_abs_top); + .cc_setposition(11, calc($int38 + 5), ^setpos_abs_right, ^setpos_abs_top); + cc_setgraphic($graphic32); + .cc_setgraphic($graphic34); + } + } else { + cc_clearops; + .cc_clearops; + cc_setonop(null); + .cc_setonop(null); + cc_setonmouseover(null); + .cc_setonmouseover(null); + cc_setonmouseleave(null); + .cc_setonmouseleave(null); + cc_setonmouserepeat(null); + .cc_setonmouserepeat(null); + if (cc_find($component8, $comsubid25) = ^true & .cc_find($component8, $comsubid26) = ^true) { + cc_sethide(false); + .cc_sethide(false); + cc_setposition(13, calc($int38 + 5), ^setpos_abs_left, ^setpos_abs_top); + .cc_setposition(11, calc($int38 + 5), ^setpos_abs_right, ^setpos_abs_top); + cc_setgraphic($graphic33); + .cc_setgraphic($graphic35); + } } } } @@ -169,21 +229,21 @@ if (cc_find($component8, $comsubid17) = ^true) { cc_sethide(false); cc_setobject($obj28, $int29); } -def_int $width38 = 0; +def_int $width39 = 0; def_string $string3 = ""; -def_int $int39 = 0; def_int $int40 = 0; +def_int $int41 = 0; def_string $string4 = ""; if (cc_find($component8, $comsubid18) = ^true) { cc_sethide(false); - $width38, $string3 = cc_getwidth, oc_name($obj28); - $int39 = string_length($string3); - if ($int39 > 0 & parawidth($string3, $width38, p11_full) > $width38) { - while ($int39 > 1 & $int40 = 0) { - $int39 = calc($int39 - 1); - $string4 = append(substring($string3, 0, $int39), "..."); - if (parawidth($string4, $width38, p11_full) <= $width38) { - $string3, $int40 = $string4, 1; + $width39, $string3 = cc_getwidth, oc_name($obj28); + $int40 = string_length($string3); + if ($int40 > 0 & parawidth($string3, $width39, p11_full) > $width39) { + while ($int40 > 1 & $int41 = 0) { + $int40 = calc($int40 - 1); + $string4 = append(substring($string3, 0, $int40), "..."); + if (parawidth($string4, $width39, p11_full) <= $width39) { + $string3, $int41 = $string4, 1; } } } diff --git a/scripts/[proc,ge_offers_index_initslot].cs2 b/scripts/[proc,ge_offers_index_initslot].cs2 index 8e360f521..7a41b2db1 100644 --- a/scripts/[proc,ge_offers_index_initslot].cs2 +++ b/scripts/[proc,ge_offers_index_initslot].cs2 @@ -1,138 +1,127 @@ // 794 [proc,ge_offers_index_initslot](component $component0, int $comsubid1, component $component2, component $component3, component $component4, component $component5, component $component6, int $int7, component $component8) -def_int $width9 = if_getwidth($component6); -def_int $height10 = if_getheight($component6); cc_deleteall($component6); -def_int $int11 = 0; -def_int $int12 = calc(25 + ($height10 - 73) / 2); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid13 = $int11; -$int11 = calc($int11 + 1); -cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); -cc_setposition(7, calc($int12 + 1), ^setpos_abs_left, ^setpos_abs_top); +def_int $int9 = 0; +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid10 = $int9; +$int9 = calc($int9 + 1); cc_setfill(false); cc_setcolour(0x5a5245); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid14 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid11 = $int9; +$int9 = calc($int9 + 1); cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); -cc_setposition(calc($width9 - 53 + 1), calc($int12 + 1), ^setpos_abs_left, ^setpos_abs_top); cc_setfill(false); cc_setcolour(0x5a5245); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid15 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid12 = $int9; +$int9 = calc($int9 + 1); cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top); cc_setfill(true); cc_setcolour(^white); cc_settrans(255); cc_setonop("script805(event_opindex, $int7, -1, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component8)"); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid16 = $int11; -$int11 = calc($int11 + 1); -cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); -cc_setposition(6, $int12, ^setpos_abs_left, ^setpos_abs_top); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid13 = $int9; +$int9 = calc($int9 + 1); cc_setfill(false); cc_setcolour(0x383023); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid17 = $int11; -$int11 = calc($int11 + 1); -cc_setsize(46, 45, ^setsize_abs, ^setsize_abs); -cc_setposition(7, $int12, ^setpos_abs_right, ^setpos_abs_top); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid14 = $int9; +$int9 = calc($int9 + 1); cc_setfill(false); cc_setcolour(0x383023); -$int11 = ~stonepanel(25, $component6, $int11); -cc_create($component6, ^iftype_text, $int11); -def_int $comsubid18 = $int11; -$int11 = calc($int11 + 1); +$int9 = ~stonepanel(25, $component6, $int9); +cc_create($component6, ^iftype_text, $int9); +def_int $comsubid15 = $int9; +$int9 = calc($int9 + 1); cc_setsize(0, 25, ^setsize_minus, ^setsize_abs); cc_setposition(0, 0, ^setpos_abs_left, ^setpos_abs_top); cc_setcolour(0xff981f); cc_settextfont(b12_full); cc_settextshadow(true); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_create($component6, ^iftype_graphic, $int11); -def_int $comsubid19 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_graphic, $int9); +def_int $comsubid16 = $int9; +$int9 = calc($int9 + 1); cc_setsize(40, 36, ^setsize_abs, ^setsize_abs); cc_setposition(4, 32, ^setpos_abs_left, ^setpos_abs_top); cc_setgraphic("graphic_1120"); -cc_create($component6, ^iftype_graphic, $int11); -def_int $comsubid20 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_graphic, $int9); +def_int $comsubid17 = $int9; +$int9 = calc($int9 + 1); cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); cc_setposition(6, 34, ^setpos_abs_left, ^setpos_abs_top); cc_setgraphicshadow(0x333333); cc_setoutline(1); -cc_create($component6, ^iftype_text, $int11); -def_int $comsubid21 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_text, $int9); +def_int $comsubid18 = $int9; +$int9 = calc($int9 + 1); cc_setsize(50, 32, ^setsize_minus, ^setsize_abs); cc_setposition(4, 34, ^setpos_abs_right, ^setpos_abs_top); cc_setcolour(0xffb83f); cc_settextfont(p11_full); cc_settextshadow(true); cc_settextalign(^settextalign_left, ^settextalign_top, 0); -def_int $int22 = calc($width9 - 10); -def_int $int23 = 75; -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid24 = $int11; -$int11 = calc($int11 + 1); -cc_setsize(calc($int22 + 2), 15, ^setsize_abs, ^setsize_abs); -cc_setposition(4, calc($int23 - 1), ^setpos_abs_left, ^setpos_abs_top); +def_int $int19 = calc(if_getwidth($component6) - 10); +def_int $int20 = 75; +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid21 = $int9; +$int9 = calc($int9 + 1); +cc_setsize(calc($int19 + 2), 15, ^setsize_abs, ^setsize_abs); +cc_setposition(4, calc($int20 - 1), ^setpos_abs_left, ^setpos_abs_top); cc_setfill(false); cc_setcolour(^black); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid25 = $int11; -$int11 = calc($int11 + 1); -cc_setsize($int22, 13, ^setsize_abs, ^setsize_abs); -cc_setposition(5, $int23, ^setpos_abs_left, ^setpos_abs_top); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid22 = $int9; +$int9 = calc($int9 + 1); +cc_setsize($int19, 13, ^setsize_abs, ^setsize_abs); +cc_setposition(5, $int20, ^setpos_abs_left, ^setpos_abs_top); cc_setfill(true); cc_setcolour(^black); cc_settrans(200); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid26 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid23 = $int9; +$int9 = calc($int9 + 1); cc_setsize(0, 13, ^setsize_abs, ^setsize_abs); -cc_setposition(5, $int23, ^setpos_abs_left, ^setpos_abs_top); +cc_setposition(5, $int20, ^setpos_abs_left, ^setpos_abs_top); cc_setfill(true); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid27 = $int11; -$int11 = calc($int11 + 1); -cc_setsize($int22, 3, ^setsize_abs, ^setsize_abs); -cc_setposition(5, $int23, ^setpos_abs_left, ^setpos_abs_top); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid24 = $int9; +$int9 = calc($int9 + 1); +cc_setsize($int19, 3, ^setsize_abs, ^setsize_abs); +cc_setposition(5, $int20, ^setpos_abs_left, ^setpos_abs_top); cc_setfill(true); cc_setcolour(^black); cc_settrans(200); -cc_create($component6, ^iftype_rectangle, $int11); -def_int $comsubid28 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_rectangle, $int9); +def_int $comsubid25 = $int9; +$int9 = calc($int9 + 1); cc_setsize(3, 10, ^setsize_abs, ^setsize_abs); -cc_setposition(5, calc($int23 + 3), ^setpos_abs_left, ^setpos_abs_top); +cc_setposition(5, calc($int20 + 3), ^setpos_abs_left, ^setpos_abs_top); cc_setfill(true); cc_setcolour(^black); cc_settrans(200); -cc_create($component6, ^iftype_text, $int11); -def_int $comsubid29 = $int11; -$int11 = calc($int11 + 1); -cc_setsize(6, calc($int23 + 13 + 1 + 3), ^setsize_minus, ^setsize_minus); +cc_create($component6, ^iftype_text, $int9); +def_int $comsubid26 = $int9; +$int9 = calc($int9 + 1); +cc_setsize(6, calc($int20 + 13 + 1 + 3), ^setsize_minus, ^setsize_minus); cc_setposition(0, 3, ^setpos_abs_centre, ^setpos_abs_bottom); cc_setcolour(0xff981f); cc_settextfont(p11_full); cc_settextshadow(true); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_create($component6, ^iftype_graphic, $int11); -def_int $comsubid30 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_graphic, $int9); +def_int $comsubid27 = $int9; +$int9 = calc($int9 + 1); cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(13, calc($int12 + 5), ^setpos_abs_left, ^setpos_abs_top); -cc_create($component6, ^iftype_graphic, $int11); -def_int $comsubid31 = $int11; -$int11 = calc($int11 + 1); +cc_create($component6, ^iftype_graphic, $int9); +def_int $comsubid28 = $int9; +$int9 = calc($int9 + 1); cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(14, calc($int12 + 5), ^setpos_abs_right, ^setpos_abs_top); -def_inv $inv32 = enum(int, inv, enum_150, $int7); -~ge_offers_index_drawslot($inv32, $int22, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid19, $comsubid20, $comsubid21, $comsubid29, $comsubid24, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid30, $comsubid31, $component8); -if_setoninvtransmit("ge_offers_index_drawslot($inv32, $int22, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid19, $comsubid20, $comsubid21, $comsubid29, $comsubid24, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid30, $comsubid31, $component8){$inv32}", $component6); -if_setonstocktransmit("ge_offers_index_drawslot($inv32, $int22, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid19, $comsubid20, $comsubid21, $comsubid29, $comsubid24, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid30, $comsubid31, $component8)", $component6); +def_inv $inv29 = enum(int, inv, enum_150, $int7); +~ge_offers_index_drawslot($inv29, $int19, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid26, $comsubid21, $comsubid22, $comsubid23, $comsubid24, $comsubid25, $comsubid27, $comsubid28, $component8); +if_setoninvtransmit("ge_offers_index_drawslot($inv29, $int19, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid26, $comsubid21, $comsubid22, $comsubid23, $comsubid24, $comsubid25, $comsubid27, $comsubid28, $component8){$inv29}", $component6); +if_setonstocktransmit("ge_offers_index_drawslot($inv29, $int19, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid26, $comsubid21, $comsubid22, $comsubid23, $comsubid24, $comsubid25, $comsubid27, $comsubid28, $component8)", $component6); +if_setonvartransmit("ge_offers_index_drawslot($inv29, $int19, $component0, $comsubid1, $component2, $component3, $component4, $component5, $component6, $int7, $comsubid10, $comsubid11, $comsubid12, $comsubid13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $comsubid26, $comsubid21, $comsubid22, $comsubid23, $comsubid24, $comsubid25, $comsubid27, $comsubid28, $component8){var499}", $component6); diff --git a/scripts/[proc,ge_offers_initboxes].cs2 b/scripts/[proc,ge_offers_initboxes].cs2 index 5bc8790dc..b4e15cd84 100644 --- a/scripts/[proc,ge_offers_initboxes].cs2 +++ b/scripts/[proc,ge_offers_initboxes].cs2 @@ -1,103 +1,125 @@ // 807 -[proc,ge_offers_initboxes](int $int0, component $component1, component $component2, fontmetrics $fontmetrics3)(int, int, int, int, int, int, int, int, int) -def_int $width4 = if_getwidth($component1); -def_int $height5 = if_getheight($component1); -def_int $int6 = calc($width4 - 30); -$int0 = ~script771($component1, $int0, 15, 0, 150, 91); -$int0 = ~script771($component1, $int0, 15, 25, 150, 66); -cc_create($component1, ^iftype_text, $int0); -def_int $comsubid7 = $int0; -$int0 = calc($int0 + 1); +[proc,ge_offers_initboxes](boolean $boolean0, int $int1, component $component2, component $component3, fontmetrics $fontmetrics4)(int, int, int, int, int, int, int, int, int) +def_int $width5 = if_getwidth($component2); +def_int $height6 = if_getheight($component2); +def_int $int7 = calc($width5 - 30); +$int1 = ~script771($component2, $int1, 15, 0, 150, 91); +$int1 = ~script771($component2, $int1, 15, 25, 150, 66); +cc_create($component2, ^iftype_text, $int1); +def_int $comsubid8 = $int1; +$int1 = calc($int1 + 1); cc_setposition(15, 2, ^setpos_abs_left, ^setpos_abs_top); cc_setsize(150, 23, ^setsize_abs, ^setsize_abs); cc_setcolour(0xff981f); cc_settextfont(b12_full); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); cc_settextshadow(true); -cc_create($component1, ^iftype_graphic, $int0); -def_int $comsubid8 = $int0; -$int0 = calc($int0 + 1); +cc_create($component2, ^iftype_graphic, $int1); +def_int $comsubid9 = $int1; +$int1 = calc($int1 + 1); cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); cc_setposition(140, 5, ^setpos_abs_left, ^setpos_abs_top); cc_settiling(false); -cc_create($component1, ^iftype_graphic, $int0); -def_int $int9 = $int0; -$int0 = calc($int0 + 1); +cc_create($component2, ^iftype_graphic, $int1); +def_int $int10 = $int1; +$int1 = calc($int1 + 1); cc_setsize(40, 36, ^setsize_abs, ^setsize_abs); cc_setposition(70, 31, ^setpos_abs_left, ^setpos_abs_top); cc_setgraphic("graphic_1120"); -cc_create($component1, ^iftype_graphic, $int0); -def_int $comsubid10 = $int0; -$int0 = calc($int0 + 1); +cc_create($component2, ^iftype_graphic, $int1); +def_int $comsubid11 = $int1; +$int1 = calc($int1 + 1); cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); cc_setposition(calc(15 + (150 - 36) / 2), 33, ^setpos_abs_left, ^setpos_abs_top); cc_setgraphicshadow(0x333333); cc_setoutline(1); -cc_create($component1, ^iftype_graphic, $int0); -$int0 = calc($int0 + 1); +cc_create($component2, ^iftype_graphic, $int1); +$int1 = calc($int1 + 1); cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); cc_setgraphic("ge_smallicons,0"); -~ge_offers_priceicon($component2); -cc_setontimer("ge_offers_priceicon(event_com, event_comsubid, $component2)"); -$int0 = ~script771($component1, $int0, 164, 0, calc($int6 - 149), 91); -cc_create($component1, ^iftype_text, $int0); -def_int $comsubid11 = $int0; -$int0 = calc($int0 + 1); +~ge_offers_priceicon($component3); +cc_setontimer("ge_offers_priceicon(event_com, event_comsubid, $component3)"); +$int1 = ~script771($component2, $int1, 164, 0, calc($int7 - 149), 91); +cc_create($component2, ^iftype_text, $int1); +def_int $comsubid12 = $int1; +$int1 = calc($int1 + 1); cc_setposition(174, 2, ^setpos_abs_left, ^setpos_abs_top); -cc_setsize(calc($int6 - 149 - 20), 23, ^setsize_abs, ^setsize_abs); +cc_setsize(calc($int7 - 149 - 20), 23, ^setsize_abs, ^setsize_abs); cc_setcolour(0xff981f); cc_settextfont(b12_full); cc_settextalign(^settextalign_left, ^settextalign_centre, 0); cc_settextshadow(true); -def_int $int12 = calc($int6 / 2); -$int0 = ~script771($component1, $int0, 15, 93, calc($int12 + 1), 76); -cc_create($component1, ^iftype_text, $int0); -$int0 = calc($int0 + 1); -cc_setposition(15, 95, ^setpos_abs_left, ^setpos_abs_top); -cc_setsize(calc($int12 + 1), 23, ^setsize_abs, ^setsize_abs); +def_int $int13 = calc($int7 / 2); +def_int $int14 = calc($int7 / 4); +def_int $comsubid15 = -1; +if ($boolean0 = true) { + $int1 = ~script771($component2, $int1, calc(15 + $int14), 106, calc($int7 - $int13), 76); +} else { + $int1 = ~script771($component2, $int1, 15, 93, calc($int13 + 1), 76); + cc_create($component2, ^iftype_text, $int1); + $int1 = calc($int1 + 1); + cc_setposition(15, 95, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int13 + 1), 23, ^setsize_abs, ^setsize_abs); + cc_setcolour(0xff981f); + cc_settextfont(b12_full); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settext("Quantity:"); + $int1 = ~ge_textbox($component2, $int1, 45, 118, calc($int13 + 1 - 60)); + cc_create($component2, ^iftype_text, $int1); + $comsubid15 = $int1; + $int1 = calc($int1 + 1); + cc_setposition(15, 118, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int13 + 1), 20, ^setsize_abs, ^setsize_abs); + cc_setcolour(0xffb83f); + cc_settextfont($fontmetrics4); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settextshadow(true); + $int1 = ~script771($component2, $int1, calc(15 + $int13), 93, calc($int7 - $int13), 76); +} +cc_create($component2, ^iftype_text, $int1); +$int1 = calc($int1 + 1); +if ($boolean0 = true) { + cc_setposition(calc(15 + $int14), 108, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int13), 95, ^setpos_abs_left, ^setpos_abs_top); +} +cc_setsize($int13, 23, ^setsize_abs, ^setsize_abs); cc_setcolour(0xff981f); cc_settextfont(b12_full); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); cc_settextshadow(true); -cc_settext("Quantity:"); -$int0 = ~ge_textbox($component1, $int0, 45, 118, calc($int12 + 1 - 60)); -cc_create($component1, ^iftype_text, $int0); -def_int $comsubid13 = $int0; -$int0 = calc($int0 + 1); -cc_setposition(15, 118, ^setpos_abs_left, ^setpos_abs_top); -cc_setsize(calc($int12 + 1), 20, ^setsize_abs, ^setsize_abs); +if ($boolean0 = true) { + cc_settext("Price:"); + $int1 = ~ge_textbox($component2, $int1, calc(15 + $int14 + 30), 131, calc($int13 - 60)); +} else { + cc_settext("Price per item:"); + $int1 = ~ge_textbox($component2, $int1, calc(15 + $int13 + 30), 118, calc($int13 - 60)); +} +cc_create($component2, ^iftype_text, $int1); +def_int $comsubid16 = $int1; +$int1 = calc($int1 + 1); +if ($boolean0 = true) { + cc_setposition(calc(15 + $int14), 131, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int13), 118, ^setpos_abs_left, ^setpos_abs_top); +} +cc_setsize($int13, 20, ^setsize_abs, ^setsize_abs); cc_setcolour(0xffb83f); -cc_settextfont($fontmetrics3); +cc_settextfont($fontmetrics4); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); cc_settextshadow(true); -$int0 = ~script771($component1, $int0, calc(15 + $int12), 93, calc($int6 - $int12), 76); -cc_create($component1, ^iftype_text, $int0); -$int0 = calc($int0 + 1); -cc_setposition(calc(15 + $int12), 95, ^setpos_abs_left, ^setpos_abs_top); -cc_setsize($int12, 23, ^setsize_abs, ^setsize_abs); -cc_setcolour(0xff981f); -cc_settextfont(b12_full); -cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_settextshadow(true); -cc_settext("Price per item:"); -$int0 = ~ge_textbox($component1, $int0, calc(15 + $int12 + 30), 118, calc($int12 - 60)); -cc_create($component1, ^iftype_text, $int0); -def_int $comsubid14 = $int0; -$int0 = calc($int0 + 1); -cc_setposition(calc(15 + $int12), 118, ^setpos_abs_left, ^setpos_abs_top); -cc_setsize($int12, 20, ^setsize_abs, ^setsize_abs); -cc_setcolour(0xffb83f); -cc_settextfont($fontmetrics3); -cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_settextshadow(true); -$int0 = ~ge_textbox($component1, $int0, 130, 172, calc($width4 - 260)); -cc_create($component1, ^iftype_text, $int0); -def_int $comsubid15 = $int0; -$int0 = calc($int0 + 1); -cc_setposition(0, 172, ^setpos_abs_left, ^setpos_abs_top); -cc_setsize($width4, 20, ^setsize_abs, ^setsize_abs); -cc_setcolour(^white); -cc_settextfont($fontmetrics3); -cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -cc_settextshadow(true); -return($int0, $comsubid7, $comsubid8, $int9, $comsubid10, $comsubid11, $comsubid13, $comsubid14, $comsubid15); +def_int $comsubid17 = -1; +if ($boolean0 = false) { + $int1 = ~ge_textbox($component2, $int1, 130, 172, calc($width5 - 260)); + cc_create($component2, ^iftype_text, $int1); + $comsubid17 = $int1; + $int1 = calc($int1 + 1); + cc_setposition(0, 172, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize($width5, 20, ^setsize_abs, ^setsize_abs); + cc_setcolour(^white); + cc_settextfont($fontmetrics4); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settextshadow(true); +} +return($int1, $comsubid8, $comsubid9, $int10, $comsubid11, $comsubid12, $comsubid15, $comsubid16, $comsubid17); diff --git a/scripts/[proc,ge_offers_setup_draw].cs2 b/scripts/[proc,ge_offers_setup_draw].cs2 index 353b45011..cf8c92e07 100644 --- a/scripts/[proc,ge_offers_setup_draw].cs2 +++ b/scripts/[proc,ge_offers_setup_draw].cs2 @@ -1,65 +1,86 @@ // 779 -[proc,ge_offers_setup_draw](component $component0, int $comsubid1, int $comsubid2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, component $component13, int $comsubid14) +[proc,ge_offers_setup_draw](boolean $boolean0, component $component1, int $comsubid2, int $comsubid3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, int $comsubid8, int $comsubid9, int $comsubid10, int $comsubid11, int $comsubid12, int $comsubid13, component $component14, int $comsubid15) if (%varbit4397 = 1) { - if (cc_find($component0, $comsubid1) = ^true) { + if (cc_find($component1, $comsubid2) = ^true) { cc_sethide(true); } - if (cc_find($component0, $comsubid6) = ^true) { + if (cc_find($component1, $comsubid7) = ^true) { cc_settrans(0); cc_setontimer(null); } - if (cc_find($component0, $comsubid12) = ^true) { + if (cc_find($component1, $comsubid13) = ^true) { cc_sethide(true); } - if (cc_find($component0, $comsubid4) = ^true) { + if (cc_find($component1, $comsubid5) = ^true) { cc_settext("Sell offer"); } - if (cc_find($component0, $comsubid5) = ^true) { + if (cc_find($component1, $comsubid6) = ^true) { cc_setgraphic("ge_smallicons,7"); } - if (cc_find($component0, $comsubid2) = ^true) { + if (cc_find($component1, $comsubid3) = ^true & .cc_find($component1, $comsubid4) = ^true) { + cc_sethide(false); + .cc_sethide(false); cc_setop(1, "All"); + .cc_settext("All"); + } +} else if ($boolean0 = true) { + if (cc_find($component1, $comsubid2) = ^true) { + cc_sethide(true); + } + if (cc_find($component1, $comsubid7) = ^true) { + cc_settrans(0); + cc_setontimer(null); } - if (cc_find($component0, $comsubid3) = ^true) { - cc_settext("All"); + if (cc_find($component1, $comsubid13) = ^true) { + cc_sethide(true); + } + if (cc_find($component1, $comsubid5) = ^true) { + cc_settext("Buy offer"); + } + if (cc_find($component1, $comsubid6) = ^true) { + cc_setgraphic("ge_smallicons,6"); + } + if (cc_find($component1, $comsubid3) = ^true) { + cc_sethide(true); + cc_clearops; } } else { - if (cc_find($component0, $comsubid1) = ^true) { + if (cc_find($component1, $comsubid2) = ^true) { cc_sethide(false); } - if (cc_find($component0, $comsubid6) = ^true) { + if (cc_find($component1, $comsubid7) = ^true) { cc_settrans(100); cc_setontimer("script811(event_com, event_comsubid, clientclock, 100, 250)"); } - if (cc_find($component0, $comsubid12) = ^true) { + if (cc_find($component1, $comsubid13) = ^true) { cc_sethide(false); } - if (cc_find($component0, $comsubid4) = ^true) { + if (cc_find($component1, $comsubid5) = ^true) { cc_settext("Buy offer"); } - if (cc_find($component0, $comsubid5) = ^true) { + if (cc_find($component1, $comsubid6) = ^true) { cc_setgraphic("ge_smallicons,6"); } - if (cc_find($component0, $comsubid2) = ^true) { + if (cc_find($component1, $comsubid3) = ^true & .cc_find($component1, $comsubid4) = ^true) { + cc_sethide(false); + .cc_sethide(false); cc_setop(1, "+1K"); - } - if (cc_find($component0, $comsubid3) = ^true) { - cc_settext("+1K"); + .cc_settext("+1K"); } } def_string $string0 = ","; -def_int $int15 = 0; +def_int $int16 = 0; if (%var1151 ! null) { - if (cc_find($component0, $comsubid7) = ^true) { + if (cc_find($component1, $comsubid8) = ^true) { cc_setobject_nonum(%var1151, %varbit4396); } - if (cc_find($component0, $comsubid8) = ^true) { + if (cc_find($component1, $comsubid9) = ^true) { cc_settext(oc_name(%var1151)); } - if (cc_find($component0, $comsubid9) = ^true) { + if (cc_find($component1, $comsubid10) = ^true) { cc_settext(~tostring_spacer(%varbit4396, $string0)); } - if (cc_find($component0, $comsubid10) = ^true) { + if (cc_find($component1, $comsubid11) = ^true) { if (%varbit4398 = 1) { cc_settext("1 coin"); } else { @@ -67,46 +88,46 @@ if (%var1151 ! null) { } } if (%varbit4396 > 0 & calc(^max_32bit_int / %varbit4396) < %varbit4398) { - if (cc_find($component0, $comsubid11) = ^true) { + if (cc_find($component1, $comsubid12) = ^true) { cc_settext("Too much money!"); } - ~ge_offers_setup_draw_disableconfirm($component0, $comsubid14, $component13); + ~ge_offers_setup_draw_disableconfirm($component1, $comsubid15, $component14); } else { - $int15 = calc(%varbit4396 * %varbit4398); - if (cc_find($component0, $comsubid11) = ^true) { - if ($int15 = 1) { + $int16 = calc(%varbit4396 * %varbit4398); + if (cc_find($component1, $comsubid12) = ^true) { + if ($int16 = 1) { cc_settext("1 coin"); } else { - cc_settext("<~tostring_spacer($int15, $string0)> coins"); + cc_settext("<~tostring_spacer($int16, $string0)> coins"); } } - if ($int15 > 0) { - ~v2_stone_button_out_filled($component13); - if_setonmouserepeat("v2_stone_button_in_filled(event_com)", $component13); - if_setonmouseleave("v2_stone_button_out_filled(event_com)", $component13); - if_setonop("opsound(event_opindex, 2)", $component13); - if (cc_find($component0, $comsubid14) = ^true) { + if ($int16 > 0) { + ~v2_stone_button_out_filled($component14); + if_setonmouserepeat("v2_stone_button_in_filled(event_com)", $component14); + if_setonmouseleave("v2_stone_button_out_filled(event_com)", $component14); + if_setonop("opsound(event_opindex, 2)", $component14); + if (cc_find($component1, $comsubid15) = ^true) { cc_settext("Confirm"); } } else { - ~ge_offers_setup_draw_disableconfirm($component0, $comsubid14, $component13); + ~ge_offers_setup_draw_disableconfirm($component1, $comsubid15, $component14); } } } else { - if (cc_find($component0, $comsubid7) = ^true) { + if (cc_find($component1, $comsubid8) = ^true) { cc_setobject_nonum(obj_6512, 1); } - if (cc_find($component0, $comsubid8) = ^true) { + if (cc_find($component1, $comsubid9) = ^true) { cc_settext("Choose an item..."); } - if (cc_find($component0, $comsubid9) = ^true) { + if (cc_find($component1, $comsubid10) = ^true) { cc_settext(""); } - if (cc_find($component0, $comsubid10) = ^true) { + if (cc_find($component1, $comsubid11) = ^true) { cc_settext(""); } - if (cc_find($component0, $comsubid11) = ^true) { + if (cc_find($component1, $comsubid12) = ^true) { cc_settext(""); } - ~ge_offers_setup_draw_disableconfirm($component0, $comsubid14, $component13); + ~ge_offers_setup_draw_disableconfirm($component1, $comsubid15, $component14); } diff --git a/scripts/[proc,ge_offers_setup_init].cs2 b/scripts/[proc,ge_offers_setup_init].cs2 index 39c466bcd..419006d9c 100644 --- a/scripts/[proc,ge_offers_setup_init].cs2 +++ b/scripts/[proc,ge_offers_setup_init].cs2 @@ -1,205 +1,265 @@ // 773 [proc,ge_offers_setup_init](component $component0, component $component1, component $component2) -def_int $width3 = if_getwidth($component0); -def_int $int4 = calc($width3 - 30); -def_int $int5 = calc($int4 / 2); -def_int $y6 = 119; -def_int $y7 = 136; -def_graphic $graphic8 = "ge_icons,4"; -def_graphic $graphic9 = "ge_icons,5"; +def_boolean $boolean3 = ~script5305; +def_int $width4 = if_getwidth($component0); +def_int $int5 = calc($width4 - 30); +def_int $int6 = calc($int5 / 2); +def_int $int7 = calc($int5 / 4); +def_int $int8 = 119; +def_int $int9 = 136; +if ($boolean3 = true) { + $int8, $int9 = calc($int8 + 13), calc($int9 + 13); +} +def_graphic $graphic10 = "ge_icons,4"; +def_graphic $graphic11 = "ge_icons,5"; cc_deleteall($component0); -def_int $int10 = 0; -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid11 = $int10; -$int10 = calc($int10 + 1); +def_int $int12 = 0; +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid13 = $int12; +$int12 = calc($int12 + 1); cc_setsize(40, 36, ^setsize_abs, ^setsize_abs); cc_setposition(70, 31, ^setpos_abs_left, ^setpos_abs_top); cc_setgraphic("graphic_1121"); cc_setop(1, "Choose item"); cc_setonop("opsound(event_opindex, 2)"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid12 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); -cc_setposition(20, $y6, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic("ge_smallicons,4"); -cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)"); -cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)"); -cc_setop(1, "-1"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid13 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int5 - 25), $y6, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic("ge_smallicons,5"); -cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)"); -cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)"); -cc_setop(1, "+1"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid14 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(25, $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); -cc_setop(1, "+1"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid15 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(67, $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); -cc_setop(1, "+10"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid16 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(109, $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); -cc_setop(1, "+100"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid17 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(151, $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid18 = $int10; -$int10 = calc($int10 + 1); -cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(193, $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); -cc_setop(1, "Enter quantity"); -cc_setonop("opsound(event_opindex, 2)"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid19 = $int10; -$int10 = calc($int10 + 1); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid14 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); + cc_setposition(20, $int8, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic("ge_smallicons,4"); + cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)"); + cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)"); + cc_setop(1, "-1"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid15 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); + cc_setposition(calc(15 + $int6 - 25), $int8, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic("ge_smallicons,5"); + cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)"); + cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)"); + cc_setop(1, "+1"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid16 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); + cc_setposition(25, $int9, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic($graphic10); + cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); + cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); + cc_setop(1, "+1"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid17 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); + cc_setposition(67, $int9, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic($graphic10); + cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); + cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); + cc_setop(1, "+10"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid18 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); + cc_setposition(109, $int9, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic($graphic10); + cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); + cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); + cc_setop(1, "+100"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid19 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); + cc_setposition(151, $int9, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic($graphic10); + cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); + cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid20 = $int12; +$int12 = calc($int12 + 1); +if ($boolean3 = true) { + cc_sethide(true); +} else { + cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); + cc_setposition(193, $int9, ^setpos_abs_left, ^setpos_abs_top); + cc_setgraphic($graphic10); + cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); + cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); + cc_setop(1, "Enter quantity"); + cc_setonop("opsound(event_opindex, 2)"); +} +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid21 = $int12; +$int12 = calc($int12 + 1); cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int5 + 5), $y6, ^setpos_abs_left, ^setpos_abs_top); +if ($boolean3 = true) { + cc_setposition(calc(15 + $int7 + 5), $int8, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int6 + 5), $int8, ^setpos_abs_left, ^setpos_abs_top); +} cc_setgraphic("ge_smallicons,4"); cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)"); cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)"); cc_setop(1, "-1"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid20 = $int10; -$int10 = calc($int10 + 1); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid22 = $int12; +$int12 = calc($int12 + 1); cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int4 - 25), $y6, ^setpos_abs_left, ^setpos_abs_top); +if ($boolean3 = true) { + cc_setposition(calc(15 + $int5 - ($int7 + 20 + 5)), $int8, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int5 - 25), $int8, ^setpos_abs_left, ^setpos_abs_top); +} cc_setgraphic("ge_smallicons,5"); cc_setonmouserepeat("cc_settrans(event_com, event_comsubid, 100, null)"); cc_setonmouseleave("cc_settrans(event_com, event_comsubid, 0, null)"); cc_setop(1, "+1"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid21 = $int10; -$int10 = calc($int10 + 1); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid23 = $int12; +$int12 = calc($int12 + 1); cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int5 + 15), $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); +if ($boolean3 = true) { + cc_setposition(calc(15 + $int7 + 15), $int9, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int6 + 15), $int9, ^setpos_abs_left, ^setpos_abs_top); +} +cc_setgraphic($graphic10); +cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); +cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); cc_setop(1, "-5%"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid22 = $int10; -$int10 = calc($int10 + 1); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid24 = $int12; +$int12 = calc($int12 + 1); cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int5 + 72), $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); +if ($boolean3 = true) { + cc_setposition(calc(15 + $int7 + 72), $int9, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int6 + 72), $int9, ^setpos_abs_left, ^setpos_abs_top); +} +cc_setgraphic($graphic10); +cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); +cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); cc_setop(1, "Guide price"); cc_setonop("opsound(event_opindex, 2)"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid23 = $int10; -$int10 = calc($int10 + 1); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid25 = $int12; +$int12 = calc($int12 + 1); cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int5 + $int5 - 107), $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); +if ($boolean3 = true) { + cc_setposition(calc(15 + $int5 - ($int7 + 72 + 35)), $int9, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int5 - 107), $int9, ^setpos_abs_left, ^setpos_abs_top); +} +cc_setgraphic($graphic10); +cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); +cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); cc_setop(1, "Enter price"); cc_setonop("opsound(event_opindex, 2)"); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid24 = $int10; -$int10 = calc($int10 + 1); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid26 = $int12; +$int12 = calc($int12 + 1); cc_setsize(35, 35, ^setsize_abs, ^setsize_abs); -cc_setposition(calc(15 + $int5 + $int5 - 50), $y7, ^setpos_abs_left, ^setpos_abs_top); -cc_setgraphic($graphic8); -cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic9, null)"); -cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic8, null)"); +if ($boolean3 = true) { + cc_setposition(calc(15 + $int5 - ($int7 + 15 + 35)), $int9, ^setpos_abs_left, ^setpos_abs_top); +} else { + cc_setposition(calc(15 + $int5 - 50), $int9, ^setpos_abs_left, ^setpos_abs_top); +} +cc_setgraphic($graphic10); +cc_setonmouserepeat("cc_graphic_swapper(event_com, event_comsubid, $graphic11, null)"); +cc_setonmouseleave("cc_graphic_swapper(event_com, event_comsubid, $graphic10, null)"); cc_setop(1, "+5%"); -def_int $comsubid25 = 0; -def_int $comsubid26 = 0; def_int $comsubid27 = 0; def_int $comsubid28 = 0; def_int $comsubid29 = 0; def_int $comsubid30 = 0; def_int $comsubid31 = 0; def_int $comsubid32 = 0; -$int10, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32 = ~ge_offers_initboxes($int10, $component0, $component1, p11_full); -cc_create($component0, ^iftype_graphic, $int10); -def_int $comsubid33 = $int10; -$int10 = calc($int10 + 1); +def_int $comsubid33 = 0; +def_int $comsubid34 = 0; +$int12, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34 = ~ge_offers_initboxes($boolean3, $int12, $component0, $component1, p11_full); +cc_create($component0, ^iftype_graphic, $int12); +def_int $comsubid35 = $int12; +$int12 = calc($int12 + 1); cc_setsize(20, 18, ^setsize_abs, ^setsize_abs); cc_setposition(70, 31, ^setpos_abs_left, ^setpos_abs_top); cc_setgraphic("ge_smallicons,1"); -$int10 = ~ge_offers_setup_buttontext($component0, $comsubid14, "+1", $int10); -$int10 = ~ge_offers_setup_buttontext($component0, $comsubid15, "+10", $int10); -$int10 = ~ge_offers_setup_buttontext($component0, $comsubid16, "+100", $int10); -def_int $comsubid34 = $int10; -$int10 = ~ge_offers_setup_buttontext($component0, $comsubid17, "", $int10); -$int10 = ~ge_offers_setup_buttontext($component0, $comsubid18, "...", $int10); -$int10 = ~ge_offers_setup_buttongraphic($component0, $comsubid21, "ge_smallicons,2", $int10); -$int10 = ~ge_offers_setup_buttongraphic($component0, $comsubid22, "ge_smallicons,0", $int10); -$int10 = ~ge_offers_setup_buttontext($component0, $comsubid23, "...", $int10); -$int10 = ~ge_offers_setup_buttongraphic($component0, $comsubid24, "ge_smallicons,3", $int10); -cc_create($component0, ^iftype_text, $int10); -def_int $comsubid35 = $int10; -$int10 = calc($int10 + 1); +def_int $comsubid36 = -1; +if ($boolean3 = false) { + $int12 = ~ge_offers_setup_buttontext($component0, $comsubid16, "+1", $int12); + $int12 = ~ge_offers_setup_buttontext($component0, $comsubid17, "+10", $int12); + $int12 = ~ge_offers_setup_buttontext($component0, $comsubid18, "+100", $int12); + $comsubid36 = $int12; + $int12 = ~ge_offers_setup_buttontext($component0, $comsubid19, "", $int12); + $int12 = ~ge_offers_setup_buttontext($component0, $comsubid20, "...", $int12); +} +$int12 = ~ge_offers_setup_buttongraphic($component0, $comsubid23, "ge_smallicons,2", $int12); +$int12 = ~ge_offers_setup_buttongraphic($component0, $comsubid24, "ge_smallicons,0", $int12); +$int12 = ~ge_offers_setup_buttontext($component0, $comsubid25, "...", $int12); +$int12 = ~ge_offers_setup_buttongraphic($component0, $comsubid26, "ge_smallicons,3", $int12); +cc_create($component0, ^iftype_text, $int12); +def_int $comsubid37 = $int12; +$int12 = calc($int12 + 1); cc_setsize(if_getwidth($component2), if_getheight($component2), ^setsize_abs, ^setsize_abs); cc_setposition(if_getx($component2), if_gety($component2), ^setpos_abs_left, ^setpos_abs_top); cc_setcolour(0xff981f); cc_settextshadow(true); cc_settextfont(b12_full); cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); -~ge_offers_setup_draw($component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35); -if_setonvartransmit("ge_offers_setup_draw($component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35){var1151, var563, var1043}", $component0); -if_setoninvtransmit("ge_offers_setup_draw($component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35){inv}", $component0); -if (cc_find($component0, $comsubid12) = ^true) { - cc_setonop("ge_offers_setup_changequantity(-1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); -} -if (cc_find($component0, $comsubid13) = ^true) { - cc_setonop("ge_offers_setup_changequantity(1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); -} +~ge_offers_setup_draw($boolean3, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37); +if_setonvartransmit("ge_offers_setup_draw($boolean3, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37){var1151, var563, var1043}", $component0); +if_setoninvtransmit("ge_offers_setup_draw($boolean3, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37){inv}", $component0); if (cc_find($component0, $comsubid14) = ^true) { - cc_setonop("ge_offers_setup_changequantity(1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); + cc_setonop("ge_offers_setup_changequantity($boolean3, -1, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } if (cc_find($component0, $comsubid15) = ^true) { - cc_setonop("ge_offers_setup_changequantity(10, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); + cc_setonop("ge_offers_setup_changequantity($boolean3, 1, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } if (cc_find($component0, $comsubid16) = ^true) { - cc_setonop("ge_offers_setup_changequantity(100, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); + cc_setonop("ge_offers_setup_changequantity($boolean3, 1, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } if (cc_find($component0, $comsubid17) = ^true) { - cc_setonop("ge_offers_setup_changequantity(^max_32bit_int, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); + cc_setonop("ge_offers_setup_changequantity($boolean3, 10, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } -if (cc_find($component0, $comsubid19) = ^true) { - cc_setonop("ge_offers_setup_changeprice(-1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); +if (cc_find($component0, $comsubid18) = ^true) { + cc_setonop("ge_offers_setup_changequantity($boolean3, 100, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } -if (cc_find($component0, $comsubid20) = ^true) { - cc_setonop("ge_offers_setup_changeprice(1, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); +if (cc_find($component0, $comsubid19) = ^true) { + cc_setonop("ge_offers_setup_changequantity($boolean3, ^max_32bit_int, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } if (cc_find($component0, $comsubid21) = ^true) { - cc_setonop("ge_offers_setup_changeprice(-5, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); + cc_setonop("ge_offers_setup_changeprice($boolean3, -1, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); +} +if (cc_find($component0, $comsubid22) = ^true) { + cc_setonop("ge_offers_setup_changeprice($boolean3, 1, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); +} +if (cc_find($component0, $comsubid23) = ^true) { + cc_setonop("ge_offers_setup_changeprice($boolean3, -5, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } -if (cc_find($component0, $comsubid24) = ^true) { - cc_setonop("ge_offers_setup_changeprice(5, event_opindex, $component0, $comsubid11, $comsubid17, $comsubid34, $comsubid25, $comsubid26, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $component2, $comsubid35)"); +if (cc_find($component0, $comsubid26) = ^true) { + cc_setonop("ge_offers_setup_changeprice($boolean3, 5, event_opindex, $component0, $comsubid13, $comsubid19, $comsubid36, $comsubid27, $comsubid28, $comsubid29, $comsubid30, $comsubid31, $comsubid32, $comsubid33, $comsubid34, $comsubid35, $component2, $comsubid37)"); } diff --git a/scripts/[proc,ironman_modebutton_init].cs2 b/scripts/[proc,ironman_modebutton_init].cs2 index ae39e2589..6c3b55a13 100644 --- a/scripts/[proc,ironman_modebutton_init].cs2 +++ b/scripts/[proc,ironman_modebutton_init].cs2 @@ -1,17 +1,17 @@ // 2094 -[proc,ironman_modebutton_init](component $component0, int $int1, string $op0, string $string1, component $component2, component $component3, component $component4, component $component5) +[proc,ironman_modebutton_init](component $component0, int $int1, string $op0, string $string1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7) cc_deleteall($component0); -def_int $int6 = 0; -.cc_create($component0, ^iftype_rectangle, $int6); -def_int $int7 = $int6; -$int6 = calc($int6 + 1); +def_int $int8 = 0; +.cc_create($component0, ^iftype_rectangle, $int8); +def_int $int9 = $int8; +$int8 = calc($int8 + 1); .cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); .cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); .cc_setfill(true); .cc_setcolour(^white); -$int6 = ~thinbox($component0, $int6); -cc_create($component0, ^iftype_text, $int6); -$int6 = calc($int6 + 1); +$int8 = ~script5295($component0, $int8); +cc_create($component0, ^iftype_text, $int8); +$int8 = calc($int8 + 1); cc_setsize(30, 0, ^setsize_minus, ^setsize_minus); cc_setposition(5, 0, ^setpos_abs_right, ^setpos_abs_centre); cc_setcolour(0xff981f); @@ -23,11 +23,11 @@ if (if_getheight($component0) < 30) { } else { cc_settext("<$op0>
<$string1>"); } -cc_create($component0, ^iftype_graphic, $int6); -def_int $int8 = $int6; -$int6 = calc($int6 + 1); +cc_create($component0, ^iftype_graphic, $int8); +def_int $int10 = $int8; +$int8 = calc($int8 + 1); cc_setsize(17, 17, ^setsize_abs, ^setsize_abs); cc_setposition(5, 0, ^setpos_abs_left, ^setpos_abs_centre); -~ironman_modebutton_redraw($component0, $int7, $int8, $int1, $component2, $component3, $component4, $component5); -if_setonvartransmit("ironman_modebutton_redraw($component0, $int7, $int8, $int1, $component2, $component3, $component4, $component5){var499, var281}", $component0); +~ironman_modebutton_redraw($component0, $int9, $int10, $int1, $component2, $component3, $component4, $component5, $component6, $component7); +if_setonvartransmit("ironman_modebutton_redraw($component0, $int9, $int10, $int1, $component2, $component3, $component4, $component5, $component6, $component7){var499, var281, var3170}", $component0); if_setop(1, $op0, $component0); diff --git a/scripts/[proc,ironman_modebutton_redraw].cs2 b/scripts/[proc,ironman_modebutton_redraw].cs2 index 490546575..0afc74caa 100644 --- a/scripts/[proc,ironman_modebutton_redraw].cs2 +++ b/scripts/[proc,ironman_modebutton_redraw].cs2 @@ -1,16 +1,16 @@ // 2096 -[proc,ironman_modebutton_redraw](component $component0, int $int1, int $int2, int $int3, component $component4, component $component5, component $component6, component $component7) +[proc,ironman_modebutton_redraw](component $component0, int $int1, int $int2, int $int3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9) .cc_settrans(255); if (%varbit1777 = $int3) { cc_setgraphic("options_radio_buttons,2"); if_setonmouserepeat(null, $component0); if_setonmouseleave(null, $component0); if_setonop("opsound(event_opindex, 0)", $component0); -} else if (%var281 < 1000 | %varbit1776 = 1 & ($int3 = 0 | $int3 = 1 & (%varbit1777 = 3 | %varbit1777 = 2))) { +} else if (%var281 < 1000 | %varbit13044 = 0 | %varbit1776 = 1 & ($int3 = 0 | $int3 = 1 & (%varbit1777 = 3 | %varbit1777 = 2))) { cc_setgraphic("options_radio_buttons,0"); if_setonmouserepeat("cc_settrans(event_com, $int1, 225, null)", $component0); if_setonmouseleave("cc_settrans(event_com, $int1, 255, null)", $component0); - if_setonop("ironman_modebutton_op(event_opindex, $component0, $int1, $int2, $int3, $component4, $component5, $component6, $component7)", $component0); + if_setonop("ironman_modebutton_op(event_opindex, $component0, $int1, $int2, $int3, $component4, $component5, $component6, $component7, $component8, $component9)", $component0); } else { cc_setgraphic("options_radio_buttons,0"); if_setonmouserepeat(null, $component0); diff --git a/scripts/[proc,panetest].cs2 b/scripts/[proc,panetest].cs2 index 3c4b106ce..820c3b7cc 100644 --- a/scripts/[proc,panetest].cs2 +++ b/scripts/[proc,panetest].cs2 @@ -1,5 +1,5 @@ // 193 -[proc,panetest](int $chattype0, string $string0, int $int1)(int) +[proc,panetest](int $chattype0, string $string0, int $int1, string $string1)(int) if (%varcint41 = 0) { return(1); } @@ -10,6 +10,8 @@ switch_int (%varcint41) { case 1 : if (enum(int, boolean, enum_892, $chattype0) = true) { return(1); + } else if ($chattype0 = 43 & ~script5309($string1) = 1) { + return(1); } case 2 : if ($chattype0 = ^chattype_modchat | $chattype0 = ^chattype_publicchat | $chattype0 = ^chattype_autotyper | $chattype0 = ^chattype_modautotyper) { @@ -25,8 +27,12 @@ switch_int (%varcint41) { } case 5 : switch_int ($chattype0) { - case 41, 44, 43, 46, 109, 110 : + case 41, 44, 46, 109, 110, 111, 112 : return(1); + case 43 : + if (~script5309($string1) = 0) { + return(1); + } } case 6 : if ($chattype0 = ^chattype_tradereq | $chattype0 = ^chattype_chalreq_trade | $chattype0 = ^chattype_trade) { diff --git a/scripts/[proc,raids_storage_shared_warning].cs2 b/scripts/[proc,raids_storage_shared_warning].cs2 index a5951974f..3049cee3f 100644 --- a/scripts/[proc,raids_storage_shared_warning].cs2 +++ b/scripts/[proc,raids_storage_shared_warning].cs2 @@ -1,8 +1,10 @@ // 1602 [proc,raids_storage_shared_warning](component $component0) if (%varbit1777 ! 0) { - if (%varbit1777 = 2 | %varbit12286 = 0) { + if (%varbit1777 = 2 | %varbit13069 = 0) { if_settext("As an you cannot retrieve items
once you have donated them to the party.", $component0); + } else if (~script5262 = 1) { + if_settext("As an you may retrieve items
as everyone present is in your group.", $component0); } else { if_settext("As an you may retrieve items
as you have embarked on this raid alone.", $component0); } diff --git a/scripts/[proc,raids_storage_side_warning].cs2 b/scripts/[proc,raids_storage_side_warning].cs2 index bc7a80f95..d4217e1b3 100644 --- a/scripts/[proc,raids_storage_side_warning].cs2 +++ b/scripts/[proc,raids_storage_side_warning].cs2 @@ -3,6 +3,8 @@ if (%varbit1777 ! 0) { if (%varbit1777 = 2) { if_settext("As an you cannot retrieve items once you have donated them to the party.", $component0); + } else if (~script5262 = 1) { + if_settext("As an you may only retrieve items if you embark on raids with only your group.", $component0); } else { if_settext("As an you may only retrieve items if you embark on raids alone.", $component0); } diff --git a/scripts/[proc,rebuildchatbox].cs2 b/scripts/[proc,rebuildchatbox].cs2 index fa818b93d..651917263 100644 --- a/scripts/[proc,rebuildchatbox].cs2 +++ b/scripts/[proc,rebuildchatbox].cs2 @@ -84,7 +84,7 @@ def_string $string18 = ""; def_int $int21 = 0; while ($mesuid10 ! -1 & $component9 ! null) { $chattype11, $int12, $string13, $string14, $string15, $int15, $string18, $int21 = chat_gethistoryex_byuid($mesuid10); - if (~panetest($chattype11, $string13, $int15) = 1 & ~filtertest($chattype11, $string13, ~script4742($string18, $string15), $int12, $int2, $string0, $int15) = 1) { + if (~panetest($chattype11, $string13, $int15, $string15) = 1 & ~filtertest($chattype11, $string13, ~script4742($string18, $string15), $string15, $int12, $int2, $string0, $int15) = 1) { switch_int ($chattype11) { case ^chattype_publicchat, ^chattype_modchat : $int7 = ~script203(~script4742($string18, "<$string13>:"), "<$string4><$string15>", $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); @@ -108,6 +108,10 @@ while ($mesuid10 ! -1 & $component9 ! null) { $int7 = ~script199(~script4742($string18, "<$string15>"), $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); case ^chattype_friendschat : $int7 = ~script203(~script4742($string18, "[<$string3><$string14>] <$string13>:"), "<$string7><$string15>", $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); + case 111 : + $int7 = ~script199(~script4742($string18, "<$string15>"), $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); + case 112 : + $int7 = ~script199(~script4742($string18, "<$string15>"), $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); case 41 : if (activeclansettings_find_affined(0) = true & activeclanchannel_find_affined(0) = true) { $clanslot17 = activeclanchannel_getuserslot(removetags($string13)); @@ -143,7 +147,14 @@ while ($mesuid10 ! -1 & $component9 ! null) { $int7 = ~script4483(~script4742($string18, "[<$string2><$string14>]"), null, 0, 0, "<$string13>:", "<$string11><$string15>", $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); } case 43 : - if (activeclanchannel_find_affined(0) = true) { + if (~script5309($string15) = 1) { + $string13, $string15 = ~script632($string15); + if (activeclansettings_find_affined(1) = true) { + $int7 = ~script203(~script4742($string18, "[<$string2>]"), $string15, $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); + } else { + $int7 = ~script203(~script4742($string18, ""), $string15, $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); + } + } else if (activeclanchannel_find_affined(0) = true) { $int7 = ~script4483(~script4742($string18, "[<$string2>]"), null, 0, 0, "", $string15, $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); } else { $int7 = ~script4483(~script4742($string18, ""), null, 0, 0, "", $string15, $int8, $component9, interface_162:56, $width1, 3, 14, $int6, ^setpos_abs_top, 103, $int3, $boolean4); @@ -244,6 +255,30 @@ while ($mesuid10 ! -1 & $component9 ! null) { if_setop(6, "Add friend", $component9); if_setop(7, "Add ignore", $component9); } + case 111 : + if_setopbase("<$string13>", $component9); + if_setop(2, "Form group", $component9); + if_setonop("chat_op(event_opindex, event_opbase, $chattype11)", $component9); + if_setonmouserepeat(null, $component9); + if_setonmouseleave(null, $component9); + if ($int15 = 1) { + if_setop(6, "Message", $component9); + } else { + if_setop(6, "Add friend", $component9); + if_setop(7, "Add ignore", $component9); + } + case 112 : + if_setopbase("<$string13>", $component9); + if_setop(2, "Group with", $component9); + if_setonop("chat_op(event_opindex, event_opbase, $chattype11)", $component9); + if_setonmouserepeat(null, $component9); + if_setonmouseleave(null, $component9); + if ($int15 = 1) { + if_setop(6, "Message", $component9); + } else { + if_setop(6, "Add friend", $component9); + if_setop(7, "Add ignore", $component9); + } case default : if_setonop(null, $component9); if_setonmouserepeat(null, $component9); diff --git a/scripts/[proc,script1280].cs2 b/scripts/[proc,script1280].cs2 index 7adb86d97..3d62a541a 100644 --- a/scripts/[proc,script1280].cs2 +++ b/scripts/[proc,script1280].cs2 @@ -4,22 +4,29 @@ cc_deleteall(interface_226:16); def_int $int0 = 0; def_int $int1 = 0; def_int $int2 = 0; -def_obj $obj3 = null; +def_int $int3 = ~deadman_mode; def_int $int4 = 0; +if ($int3 = 2) { + $int4 = 1; +} else if ($int3 = 3 & %varbit13017 ! 2) { + $int4 = 1; +} +def_obj $obj5 = null; +def_int $int6 = 0; if (%varcint139 ! 0) { $int0 = inv_size(inv_554); while ($int1 < $int0) { cc_create(interface_226:16, ^iftype_graphic, $int1); - $obj3 = inv_getobj(inv_554, $int1); - $int4 = inv_getnum(inv_554, $int1); - if (%varbit13017 ! 2) { - $int4 = ~min($int4, ~max(4, scale(8, 10, $int4))); + $obj5 = inv_getobj(inv_554, $int1); + $int6 = inv_getnum(inv_554, $int1); + if ($int4 = 1) { + $int6 = ~min($int6, ~max(4, scale(8, 10, $int6))); } - if ($obj3 ! null) { + if ($obj5 ! null) { cc_setsize(36, 32, ^setsize_abs, ^setsize_abs); cc_setposition(calc($int2 % 7 * 39), calc($int2 / 7 * 38), ^setpos_abs_left, ^setpos_abs_top); - cc_setobject($obj3, $int4); - cc_setopbase(""); + cc_setobject($obj5, $int6); + cc_setopbase(""); cc_setop(1, "Examine"); cc_setgraphicshadow(0x333333); cc_setoutline(1); diff --git a/scripts/[proc,script2213].cs2 b/scripts/[proc,script2213].cs2 index a003c92ff..3a3b8de94 100644 --- a/scripts/[proc,script2213].cs2 +++ b/scripts/[proc,script2213].cs2 @@ -1,33 +1,33 @@ // 2213 [proc,script2213] if (%varbit6281 = 1) { - if_setgraphic("miscgraphics,9", interface_12:57); - if_setgraphic("miscgraphics,0", interface_12:59); - if_setgraphic("miscgraphics,0", interface_12:61); - if_setgraphic("miscgraphics,0", interface_12:63); - if_setgraphic("miscgraphics,0", interface_12:65); + if_setgraphic("miscgraphics,9", interface_12:58); + if_setgraphic("miscgraphics,0", interface_12:60); + if_setgraphic("miscgraphics,0", interface_12:62); + if_setgraphic("miscgraphics,0", interface_12:64); + if_setgraphic("miscgraphics,0", interface_12:66); } else if (%varbit6281 = 2) { - if_setgraphic("miscgraphics,0", interface_12:57); - if_setgraphic("miscgraphics,9", interface_12:59); - if_setgraphic("miscgraphics,0", interface_12:61); - if_setgraphic("miscgraphics,0", interface_12:63); - if_setgraphic("miscgraphics,0", interface_12:65); + if_setgraphic("miscgraphics,0", interface_12:58); + if_setgraphic("miscgraphics,9", interface_12:60); + if_setgraphic("miscgraphics,0", interface_12:62); + if_setgraphic("miscgraphics,0", interface_12:64); + if_setgraphic("miscgraphics,0", interface_12:66); } else if (%varbit6281 = 3) { - if_setgraphic("miscgraphics,0", interface_12:57); - if_setgraphic("miscgraphics,0", interface_12:59); - if_setgraphic("miscgraphics,9", interface_12:61); - if_setgraphic("miscgraphics,0", interface_12:63); - if_setgraphic("miscgraphics,0", interface_12:65); + if_setgraphic("miscgraphics,0", interface_12:58); + if_setgraphic("miscgraphics,0", interface_12:60); + if_setgraphic("miscgraphics,9", interface_12:62); + if_setgraphic("miscgraphics,0", interface_12:64); + if_setgraphic("miscgraphics,0", interface_12:66); } else if (%varbit6281 = 4) { - if_setgraphic("miscgraphics,0", interface_12:57); - if_setgraphic("miscgraphics,0", interface_12:59); - if_setgraphic("miscgraphics,0", interface_12:61); - if_setgraphic("miscgraphics,9", interface_12:63); - if_setgraphic("miscgraphics,0", interface_12:65); + if_setgraphic("miscgraphics,0", interface_12:58); + if_setgraphic("miscgraphics,0", interface_12:60); + if_setgraphic("miscgraphics,0", interface_12:62); + if_setgraphic("miscgraphics,9", interface_12:64); + if_setgraphic("miscgraphics,0", interface_12:66); } else { - if_setgraphic("miscgraphics,0", interface_12:57); - if_setgraphic("miscgraphics,0", interface_12:59); - if_setgraphic("miscgraphics,0", interface_12:61); - if_setgraphic("miscgraphics,0", interface_12:63); - if_setgraphic("miscgraphics,9", interface_12:65); + if_setgraphic("miscgraphics,0", interface_12:58); + if_setgraphic("miscgraphics,0", interface_12:60); + if_setgraphic("miscgraphics,0", interface_12:62); + if_setgraphic("miscgraphics,0", interface_12:64); + if_setgraphic("miscgraphics,9", interface_12:66); } diff --git a/scripts/[proc,script2237].cs2 b/scripts/[proc,script2237].cs2 index a4087d56b..1f9babf8a 100644 --- a/scripts/[proc,script2237].cs2 +++ b/scripts/[proc,script2237].cs2 @@ -1,7 +1,7 @@ // 2237 [proc,script2237]()(int) def_int $flags0 = worldflags; -if (testbit($flags0, 25) = ^true & testbit($flags0, 23) = ^false & testbit($flags0, 4) = ^true) { - return(1); +if (testbit($flags0, 25) = ^false & testbit($flags0, 23) = ^false & testbit($flags0, 4) = ^false & testbit($flags0, 30) = ^false & testbit($flags0, 26) = ^true & testbit($flags0, 20) = ^true) { + return(2); } return(0); diff --git a/scripts/[proc,script4473].cs2 b/scripts/[proc,script4473].cs2 index ae70ea6d0..d593134c1 100644 --- a/scripts/[proc,script4473].cs2 +++ b/scripts/[proc,script4473].cs2 @@ -1,6 +1,13 @@ // 4473 -[proc,script4473](component $component0, component $component1, component $component2, component $component3) -~side_channels_settab(0, $component0, $component0, $component1, $component2, $component3); -~side_channels_settab(1, $component1, $component0, $component1, $component2, $component3); -~side_channels_settab(2, $component2, $component0, $component1, $component2, $component3); -~side_channels_settab(3, $component3, $component0, $component1, $component2, $component3); +[proc,script4473](component $component0, component $component1, component $component2, component $component3, component $component4) +~side_channels_settab(0, $component0, $component0, $component1, $component2, $component3, $component4); +~side_channels_settab(1, $component1, $component0, $component1, $component2, $component3, $component4); +~side_channels_settab(2, $component2, $component0, $component1, $component2, $component3, $component4); +~side_channels_settab(3, $component3, $component0, $component1, $component2, $component3, $component4); +if (%varbit1777 = 4) { + ~side_channels_settab(4, $component4, $component0, $component1, $component2, $component3, $component4); +} else if (%varbit1777 = 5) { + ~side_channels_settab(5, $component4, $component0, $component1, $component2, $component3, $component4); +} else { + if_sethide(true, $component4); +} diff --git a/scripts/[proc,script4766].cs2 b/scripts/[proc,script4766].cs2 index f70b92b59..0a22ffc34 100644 --- a/scripts/[proc,script4766].cs2 +++ b/scripts/[proc,script4766].cs2 @@ -7,4 +7,5 @@ $int0 = calc($int0 + enum_getoutputcount(enum_3983)); $int0 = calc($int0 + enum_getoutputcount(enum_3984)); $int0 = calc($int0 + enum_getoutputcount(enum_3985)); $int0 = calc($int0 + enum_getoutputcount(enum_3986)); +$int0 = calc($int0 - ~script5242); return($int0); diff --git a/scripts/[proc,script5241].cs2 b/scripts/[proc,script5241].cs2 new file mode 100644 index 000000000..2659d522c --- /dev/null +++ b/scripts/[proc,script5241].cs2 @@ -0,0 +1,10 @@ +// 5241 +[proc,script5241]()(int) +def_int $int0 = 0; +$int0 = calc($int0 + enum_getoutputcount(enum_3981)); +$int0 = calc($int0 + enum_getoutputcount(enum_3982)); +$int0 = calc($int0 + enum_getoutputcount(enum_3983)); +$int0 = calc($int0 + enum_getoutputcount(enum_3984)); +$int0 = calc($int0 + enum_getoutputcount(enum_3985)); +$int0 = calc($int0 + enum_getoutputcount(enum_3986)); +return($int0); diff --git a/scripts/[proc,script5242].cs2 b/scripts/[proc,script5242].cs2 new file mode 100644 index 000000000..918b2efb0 --- /dev/null +++ b/scripts/[proc,script5242].cs2 @@ -0,0 +1,13 @@ +// 5242 +[proc,script5242]()(int) +if (~script5262 = 1) { + switch_int (%varbit13049) { + case 2 : + return(enum_getoutputcount(enum_4049)); + case 3 : + return(enum_getoutputcount(enum_4050)); + case 4 : + return(enum_getoutputcount(enum_4051)); + } +} +return(0); diff --git a/scripts/[proc,script5243].cs2 b/scripts/[proc,script5243].cs2 new file mode 100644 index 000000000..fb2b2030c --- /dev/null +++ b/scripts/[proc,script5243].cs2 @@ -0,0 +1,13 @@ +// 5243 +[proc,script5243](struct $struct0)(int) +if (~script5262 = 1) { + switch_int (%varbit13049) { + case 2 : + return(enum(struct, int, enum_4049, $struct0)); + case 3 : + return(enum(struct, int, enum_4050, $struct0)); + case 4 : + return(enum(struct, int, enum_4051, $struct0)); + } +} +return(0); diff --git a/scripts/[proc,script5247].cs2 b/scripts/[proc,script5247].cs2 new file mode 100644 index 000000000..e7dfaf50a --- /dev/null +++ b/scripts/[proc,script5247].cs2 @@ -0,0 +1,20 @@ +// 5247 +[proc,script5247](component $component0, component $component1, component $component2) +cc_deleteall($component0); +def_int $int3 = 0; +if_sethide(true, $component1); +if_sethide(true, $component2); +if (%varbit13068 = 0) { + $int3 = calc($int3 + ~script5293($component0, $int3, 0, 100, 5, 0x726451, "Solo Modes", b12_full, 0xff981f, 0, null, 0, 0, 0, 0, 1)); + if_sethide(false, $component1); +} else { + $int3 = calc($int3 + ~script5293($component0, $int3, 0, 100, 5, 0x726451, "Solo Modes", b12_full, 0xff981f, 0, null, 0, 0, 0, 0, 0)); + cc_setonop("script5248(0, $component0, $component1, $component2)"); +} +if (%varbit13068 = 1) { + $int3 = calc($int3 + ~script5293($component0, $int3, 1, 100, 5, 0x726451, "Group Modes", b12_full, 0xff981f, 0, null, 0, 0, 0, 0, 1)); + if_sethide(false, $component2); +} else { + $int3 = calc($int3 + ~script5293($component0, $int3, 1, 100, 5, 0x726451, "Group Modes", b12_full, 0xff981f, 0, null, 0, 0, 0, 0, 0)); + cc_setonop("script5248(1, $component0, $component1, $component2)"); +} diff --git a/scripts/[proc,script5251].cs2 b/scripts/[proc,script5251].cs2 new file mode 100644 index 000000000..6e85099f2 --- /dev/null +++ b/scripts/[proc,script5251].cs2 @@ -0,0 +1,24 @@ +// 5251 +[proc,script5251](component $component0, int $int1) +cc_create($component0, ^iftype_text, 0); +cc_setsize(8, 4, ^setsize_minus, ^setsize_minus); +cc_setposition(4, 2, ^setpos_abs_centre, ^setpos_abs_centre); +cc_settextshadow(true); +cc_settextfont(p12_full); +if ($int1 = 1) { + cc_settextalign(^settextalign_left, ^settextalign_top, 15); + if (map_members = ^true) { + cc_settext("Group - Retain your Group Status

By choosing to remain as a Group , you must make a new group, the same size or larger than your last group, with you as the owner.
You will only be able to recruit new players into your group.

You will lose ALL tradeable items."); + } else { + cc_settext("Group Ironman - Retain your Iron Status

By choosing to remain as a Group , you will be put into your own group, the same size as your last group, with you as the owner.
You will only be able to recruit fresh accounts into your group.

You will also lose ALL tradeable items.

As you are on a F2P world, you will also lose ALL members-only items.
Consider logging into a members world before proceeding."); + } + cc_setcolour(0xffa82f); +} else if ($int1 = 2) { + cc_settextalign(^settextalign_left, ^settextalign_top, 15); + cc_settext("Regular Account - Lose your Iron Status

By choosing to become a regular account, you will lose your Iron Status.
You will not be able to become an again.

You will not lose any items."); + cc_setcolour(0xffa82f); +} else { + cc_settextalign(^settextalign_centre, ^settextalign_centre, 15); + cc_settext("Pick a gamemode."); + cc_setcolour(0xffa82f); +} diff --git a/scripts/[proc,script5252].cs2 b/scripts/[proc,script5252].cs2 new file mode 100644 index 000000000..143bf0be7 --- /dev/null +++ b/scripts/[proc,script5252].cs2 @@ -0,0 +1,14 @@ +// 5252 +[proc,script5252](component $component0, component $component1, int $int2) +def_int $int3 = 6749952; +def_int $int4 = 16719904; +if ($int2 = 1) { + ~script5254($component0, "Confirm", $int3, false); + ~script5254($component1, "Regular Account", $int4, false); +} else if ($int2 = 2) { + ~script5254($component1, "Confirm", $int3, false); + ~script5254($component0, "GIM Account", $int4, false); +} else { + ~script5254($component1, "Regular Account", $int4, false); + ~script5254($component0, "GIM Account", $int4, false); +} diff --git a/scripts/[proc,script5254].cs2 b/scripts/[proc,script5254].cs2 new file mode 100644 index 000000000..573da9044 --- /dev/null +++ b/scripts/[proc,script5254].cs2 @@ -0,0 +1,20 @@ +// 5254 +[proc,script5254](component $component0, string $string0, int $int1, boolean $boolean2) +def_int $comsubid3 = 0; +if ($boolean2 = false) { + $comsubid3 = ~v2_stone_button_out_filled($component0); +} else { + $comsubid3 = ~v2_stone_button_in_filled($component0); +} +cc_create($component0, ^iftype_text, $comsubid3); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); +cc_setcolour($int1); +cc_settextshadow(true); +cc_settextfont(p12_full); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settext($string0); +if (~on_mobile = false) { + if_setonmouseover("script5253($component0, $string0, $int1, true)", $component0); + if_setonmouseleave("script5253($component0, $string0, $int1, false)", $component0); +} diff --git a/scripts/[proc,script5257].cs2 b/scripts/[proc,script5257].cs2 new file mode 100644 index 000000000..ba079ea16 --- /dev/null +++ b/scripts/[proc,script5257].cs2 @@ -0,0 +1,228 @@ +// 5257 +[proc,script5257](component $component0, int $comsubid1, int $comsubid2, component $component3, int $comsubid4, int $comsubid5, int $comsubid6, int $comsubid7, component $component8, component $component9) +if (%varbit13063 = 1) { + ~clan_stonebutton_init("Inviting", $component9, "p12_full"); + if_setonop("opsound(event_opindex, 2)", $component9); +} else if (%varbit13063 = 2) { + ~clan_stonebutton_init("Not inviting", $component9, "p12_full"); + if_setonop("opsound(event_opindex, 2)", $component9); +} else { + if_setonmouserepeat(null, $component9); + if_setonmouseleave(null, $component9); + if_setontimer(null, $component9); + ~clan_stonebutton_draw(true, "---", "p12_full", $component9); + if_setop(1, "Invite", $component9); + if_setonop("opsound(0, 0)", $component9); +} +cc_deleteall($component8); +def_int $int10 = 0; +def_int $int11 = 0; +def_int $int12 = -1; +def_int $int13 = 0; +def_int $int14 = 0; +def_int $int15 = 0; +def_int $int16 = 0; +def_int $int17 = -1; +def_int $width18 = if_getwidth($component3); +def_int $int19 = 0; +def_int $world20 = -1; +def_int $world21 = -1; +def_int $int22 = 0; +def_string $string0 = ""; +def_int $int23 = 0; +if (%varbit13060 = 3 & activeclansettings_find_affined(1) = true) { + if (cc_find($component0, $comsubid1) = ^true & .cc_find($component0, $comsubid2) = ^true) { + $string0 = activeclansettings_getclanname; + cc_settext($string0); + $int23 = parawidth($string0, 190, b12_full); + cc_setsize($int23, 0, ^setsize_abs, ^setsize_minus); + if (%varclansetting39 = 1) { + .cc_setgraphic(enum(int, graphic, enum_3798, 39)); + .cc_setposition(calc((5 + $int23) / 2), -1, ^setpos_abs_centre, ^setpos_abs_centre); + cc_setposition(calc((0 - (13 + 5)) / 2), 0, ^setpos_abs_centre, ^setpos_abs_centre); + } else { + .cc_setgraphic(null); + cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); + } + } + $int11 = ~min(5, %varclansetting37); + if (cc_find($component3, $comsubid4) = ^true & .cc_find($component3, $comsubid5) = ^true) { + if ($int11 > 0) { + $string0 = ""; + } else { + $string0 = "-"; + } + cc_settext($string0); + $int23 = parawidth($string0, 190, p11_full); + cc_setsize($int23, 0, ^setsize_abs, ^setsize_minus); + .cc_setgraphic("graphic_3523"); + $int23 = calc($int23 + 3 + 13); + if (%varclansetting41 > 0 & %varclansetting40 <= 0) { + $int19 = calc(($width18 / 2 - $int23) / 2); + .cc_setposition($int19, -1, ^setpos_abs_left, ^setpos_abs_centre); + cc_setposition(calc($int19 + 13 + 3), 0, ^setpos_abs_left, ^setpos_abs_centre); + if (cc_find($component3, $comsubid6) = ^true & .cc_find($component3, $comsubid7) = ^true) { + $string0 = ""; + $int23 = parawidth($string0, 190, p11_full); + cc_setsize($int23, 0, ^setsize_abs, ^setsize_minus); + cc_settext($string0); + .cc_setgraphic("graphic_3522"); + $int23 = calc($int23 + 3 + 13); + $int19 = calc($width18 / 2 + ($width18 / 2 - $int23) / 2); + .cc_setposition($int19, -1, ^setpos_abs_left, ^setpos_abs_centre); + cc_setposition(calc($int19 + 13 + 3), 0, ^setpos_abs_left, ^setpos_abs_centre); + } + } else { + $int19 = calc(($width18 - $int23) / 2); + .cc_setposition($int19, -1, ^setpos_abs_left, ^setpos_abs_centre); + cc_setposition(calc($int19 + 13 + 3), 0, ^setpos_abs_left, ^setpos_abs_centre); + if (cc_find($component3, $comsubid6) = ^true & .cc_find($component3, $comsubid7) = ^true) { + cc_settext(""); + .cc_setgraphic(null); + } + } + } + $int14, $int12 = activeclansettings_getaffinedcount, activeclansettings_getcurrentowner_slot; + while ($int13 < $int14) { + cc_create($component8, ^iftype_rectangle, $int10); + $int10 = calc($int10 + 1); + cc_setsize(0, 25, ^setsize_minus, ^setsize_abs); + cc_setcolour(^white); + cc_setfill(true); + cc_settrans(255); + cc_sethide(false); + cc_setop(1, "Details"); + cc_setopbase(""); + if (~on_mobile = false) { + cc_setonmouserepeat("clan_members_hover(true, event_com, event_comsubid, 255)"); + } + cc_setonmouseleave("clan_members_hover(false, event_com, event_comsubid, 255)"); + $int13 = calc($int13 + 1); + } + $world20 = map_world; + while ($int15 < $int14) { + $int13 = activeclansettings_getsortedaffinedslot($int15); + if (.cc_find($component8, $int13) = ^true) { + .cc_clearops; + if ($int13 = $int12) { + $int16, $int17 = 0, $int15; + cc_create($component8, ^iftype_graphic, $int10); + $int10 = calc($int10 + 1); + cc_setsize(13, 13, ^setsize_abs, ^setsize_abs); + cc_setgraphic(enum(int, graphic, enum_3798, -4)); + cc_setposition(calc((15 - 13) / 2), calc($int16 + (25 - 13) / 2), ^setpos_abs_left, ^setpos_abs_top); + } else if ($int17 = -1) { + $int16 = calc(($int15 + 1) * 25); + } else { + $int16 = calc($int15 * 25); + } + .cc_setposition(0, $int16, ^setpos_abs_centre, ^setpos_abs_top); + $string0 = removetags(activeclansettings_getaffineddisplayname($int13)); + if (compare(lowercase($string0), lowercase(removetags(chat_playername))) = 0) { + $int22 = 1; + } else { + $int22 = 0; + } + cc_create($component8, ^iftype_text, $int10); + $int10 = calc($int10 + 1); + cc_setposition(0, $int16, ^setpos_abs_right, ^setpos_abs_top); + cc_setsize(15, 25, ^setsize_minus, ^setsize_abs); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_settextalign(^settextalign_left, ^settextalign_centre, 0); + cc_setcolour(^white); + cc_settext($string0); + $int23 = calc((15 - 13) / 2); + cc_create($component8, ^iftype_text, $int10); + $int10 = calc($int10 + 1); + cc_setposition($int23, $int16, ^setpos_abs_right, ^setpos_abs_top); + cc_setsize($int23, 25, ^setsize_minus, ^setsize_abs); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_settextalign(^settextalign_right, ^settextalign_centre, 0); + if (activeclanchannel_find_affined(1) = true) { + $int19 = activeclanchannel_getuserslot($string0); + if ($int19 ! -1) { + $world21 = activeclanchannel_getuserworld($int19); + if ($world21 ! $world20) { + cc_setcolour(0xffff64); + if ($int22 = 0) { + .cc_setop(10, "Switch world"); + } + } else { + cc_setcolour(0x0dc10d); + } + cc_settext("W"); + } else { + $world21 = -1; + cc_setcolour(0x808080); + cc_settext("---"); + } + } else { + $world21 = -1; + cc_setcolour(0x808080); + cc_settext("---"); + } + if ($int22 = 0) { + if (friend_count >= 0 & ignore_count >= 0) { + if (friend_test($string0) = true) { + .cc_setop(1, "Message"); + .cc_setop(2, "Remove friend"); + } else if (ignore_test($string0) = true) { + .cc_setop(3, "Remove ignore"); + } else { + .cc_setop(2, "Add friend"); + .cc_setop(3, "Add ignore"); + } + } + .cc_setonop("script5259(event_opindex, event_com, event_comsubid, $string0, $world21)"); + } + if (activeclansettings_getaffinedextrainfo($int13, 28, 28) = 1) { + cc_create($component8, ^iftype_graphic, $int10); + $int10 = calc($int10 + 1); + cc_setsize(13, 13, ^setsize_abs, ^setsize_abs); + cc_setgraphic(enum(int, graphic, enum_3798, 39)); + cc_setposition(calc(15 + parawidth($string0, 190, p12_full) + 1), calc($int16 + (25 - 13) / 2 - 1), ^setpos_abs_left, ^setpos_abs_top); + } + } + $int15 = calc($int15 + 1); + } + while ($int15 < $int11) { + cc_create($component8, ^iftype_text, $int10); + $int10 = calc($int10 + 1); + cc_setposition(0, calc($int15 * 25), ^setpos_abs_right, ^setpos_abs_top); + cc_setsize(15, 25, ^setsize_minus, ^setsize_abs); + cc_settextshadow(true); + cc_settextfont(p12_full); + cc_settextalign(^settextalign_left, ^settextalign_centre, 0); + cc_setcolour(0x808080); + cc_settext("Vacancy"); + $int15 = calc($int15 + 1); + } +} else { + if (cc_find($component0, $comsubid1) = ^true & .cc_find($component0, $comsubid2) = ^true) { + cc_settext(""); + cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); + .cc_setgraphic(null); + cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); + } + if (cc_find($component3, $comsubid4) = ^true & .cc_find($component3, $comsubid5) = ^true) { + cc_settext("<~script5258(%varbit13060)>"); + cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); + cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); + .cc_setgraphic(null); + } + if (cc_find($component3, $comsubid6) = ^true & .cc_find($component3, $comsubid7) = ^true) { + cc_settext(""); + .cc_setgraphic(null); + } + cc_create($component8, ^iftype_text, $int10); + $int10 = calc($int10 + 1); + cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); + cc_setsize(10, 10, ^setsize_minus, ^setsize_minus); + cc_setcolour(0x808080); + cc_settextshadow(true); + cc_settextfont(p11_full); + cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); + cc_settext("Loading..."); +} diff --git a/scripts/[proc,script5258].cs2 b/scripts/[proc,script5258].cs2 new file mode 100644 index 000000000..061a953c3 --- /dev/null +++ b/scripts/[proc,script5258].cs2 @@ -0,0 +1,12 @@ +// 5258 +[proc,script5258](int $int0)(string) +switch_int ($int0) { + case 2 : + return("Fetching data..."); + case 1, 3 : + return("No group"); + case 0 : + return("Connecting..."); + case default : + return("System unavailable"); +} diff --git a/scripts/[proc,script5262].cs2 b/scripts/[proc,script5262].cs2 new file mode 100644 index 000000000..baac5c567 --- /dev/null +++ b/scripts/[proc,script5262].cs2 @@ -0,0 +1,9 @@ +// 5262 +[proc,script5262]()(int) +if (%varbit1777 = 4) { + return(1); +} +if (%varbit1777 = 5) { + return(1); +} +return(0); diff --git a/scripts/[proc,script5263].cs2 b/scripts/[proc,script5263].cs2 new file mode 100644 index 000000000..6deb52e31 --- /dev/null +++ b/scripts/[proc,script5263].cs2 @@ -0,0 +1,7 @@ +// 5263 +[proc,script5263](int $clanslot0)(int) +def_int $int1 = activeclansettings_getaffinedextrainfo($clanslot0, 0, 12); +if ($int1 ! 0) { + return(calc(7115 + $int1)); +} +return(-1); diff --git a/scripts/[proc,script5267].cs2 b/scripts/[proc,script5267].cs2 new file mode 100644 index 000000000..c6ce37391 --- /dev/null +++ b/scripts/[proc,script5267].cs2 @@ -0,0 +1,25 @@ +// 5267 +[proc,script5267] +def_string $string0 = ""; +if (%var262 < 1) { + cc_sethide(false); + .cc_sethide(true); + $string0 = "View only"; +} else if (%var262 < 2) { + cc_sethide(false); + .cc_sethide(true); + $string0 = "Deposit only"; +} else { + if (%var261 <= -1) { + cc_sethide(true); + .cc_sethide(true); + return; + } + cc_sethide(false); + .cc_sethide(false); + $string0 = ~tostring_spacer(%var261, ","); +} +def_int $width0 = parawidth($string0, 512, p11_full); +cc_setsize($width0, .cc_getheight, ^setsize_abs, ^setsize_abs); +.cc_setposition(calc(36 + $width0 + 2), cc_gety, ^setpos_abs_right, ^setpos_abs_top); +cc_settext($string0); diff --git a/scripts/[proc,script5269].cs2 b/scripts/[proc,script5269].cs2 new file mode 100644 index 000000000..f5552aa5a --- /dev/null +++ b/scripts/[proc,script5269].cs2 @@ -0,0 +1,72 @@ +// 5269 +[proc,script5269](component $component0, component $component1, component $component2, int $int3, component $component4, int $comsubid5, component $component6) +def_int $int7 = calc((if_getwidth($component1) - 8 * 36) / 7 + 36); +def_int $int8 = -1; +def_int $int9 = -1; +def_int $int10 = 0; +def_int $int11 = 0; +def_int $int12 = ~bankmain_searching; +def_obj $obj13 = null; +def_int $int14 = 0; +while ($int14 < $int3) { + if (cc_find($component1, $int14) = ^true) { + $obj13 = inv_getobj(inv_659, $int14); + if ($obj13 ! null) { + $int11 = calc($int11 + 1); + } + if ($int12 = 1) { + if ($obj13 ! null & ~bankmain_filteritem($obj13) = 1) { + cc_sethide(false); + cc_setposition(calc($int10 % 8 * $int7), calc($int10 / 8 * $int7), ^setpos_abs_left, ^setpos_abs_top); + ~script5272($obj13, inv_getnum(inv_659, $int14), $int3, $component0, $component1, $component2); + $int10, $int8, $int9 = calc($int10 + 1), cc_gety, cc_gety; + } else { + cc_sethide(true); + } + } else { + cc_sethide(false); + cc_setposition(calc($int14 % 8 * $int7), calc($int14 / 8 * $int7), ^setpos_abs_left, ^setpos_abs_top); + if (~script5272($obj13, inv_getnum(inv_659, $int14), $int3, $component0, $component1, $component2) = 1) { + $int8 = cc_gety; + } + $int9 = cc_gety; + } + } + $int14 = calc($int14 + 1); +} +if_settext(~tostring_spacer($int11, ","), $component6); +def_string $string0 = ""; +if ($int12 = 1) { + $string0 = ~bankmain_filterstring; + if (string_length($string0) > 0) { + if (cc_find($component4, $comsubid5) = ^true) { + cc_settext("Showing items: <$string0>"); + } + if (%varcint5 = 11) { + if_settext("Show items whose names contain the following text: (<~tostring_spacer($int10, ",")> found)", interface_162:41); + } + } else { + if (cc_find($component4, $comsubid5) = ^true) { + cc_settext("Showing items: *"); + } + if (%varcint5 = 11) { + if_settext("Show items whose names contain the following text:", interface_162:41); + } + } +} else if (cc_find($component4, $comsubid5) = ^true) { + cc_settext("Group Storage"); +} +if ($int8 ! -1) { + $int8 = calc($int8 + 32); +} else { + $int8 = 0; +} +if ($int9 ! -1) { + $int9 = calc($int9 + 32); +} else { + $int9 = 0; +} +def_int $int15 = ~min($int9, calc($int8 + 2 * $int7)); +def_int $int16 = 90; +def_int $int17 = calc($int7 * (($int3 + 7) / 8 - 1) + 32 + $int16); +~script5270(if_getlayer($component0), $component0, $component1, $component2, $int15, $int17, $int16); diff --git a/scripts/[proc,script5270].cs2 b/scripts/[proc,script5270].cs2 new file mode 100644 index 000000000..4d68ab401 --- /dev/null +++ b/scripts/[proc,script5270].cs2 @@ -0,0 +1,18 @@ +// 5270 +[proc,script5270](component $component0, component $component1, component $component2, component $component3, int $int4, int $int5, int $int6) +def_int $int7 = 334; +if ($component0 ! null) { + $int7 = if_getheight($component0); + if_setontimer("script5271($component0, $component1, $component2, $component3, $int4, $int5, $int6, $int7)", $component1); +} +def_int $int8 = ~min($int5, calc($int7 - 10)); +if_setsize(0, $int8, ^setsize_minus, ^setsize_abs, $component1); +def_int $int9 = calc($int8 - $int6); +if ($int4 > $int9) { + if_setscrollsize(0, $int4, $component2); + ~scrollbar_resize($component3, $component2, %varcint179); +} else { + if_setscrollsize(0, 0, $component2); + ~scrollbar_resize($component3, $component2, 0); + %varcint179 = 0; +} diff --git a/scripts/[proc,script5272].cs2 b/scripts/[proc,script5272].cs2 new file mode 100644 index 000000000..6af7680aa --- /dev/null +++ b/scripts/[proc,script5272].cs2 @@ -0,0 +1,38 @@ +// 5272 +[proc,script5272](obj $obj0, int $num1, int $comsubid2, component $component3, component $component4, component $component5)(int) +cc_clearops; +if ($obj0 ! null) { + cc_setobject($obj0, $num1); + cc_setopbase(""); + cc_setop(1, "Withdraw-<~script2579>"); + if (%varbit6590 ! 0) { + cc_setop(2, "Withdraw-1"); + } + if (%varbit6590 ! 1) { + cc_setop(3, "Withdraw-5"); + } + if (%varbit6590 ! 2) { + cc_setop(4, "Withdraw-10"); + } + if (%varbit6590 ! 3 & %varbit3960 > 0) { + cc_setop(5, "Withdraw-"); + } + cc_setop(6, "Withdraw-X"); + if (%varbit6590 ! 4) { + cc_setop(7, "Withdraw-All"); + } + cc_setop(8, "Withdraw-All-but-1"); + cc_setop(10, "Examine"); + cc_settrans(0); + cc_setonop("cc_settrans_temporarily(event_com, event_comsubid, 100, 0)"); + cc_setondrag("script5273(event_mousey, 0, $component3, event_com, event_comsubid, $component5)"); + cc_setondragcomplete("script5274($component3, event_com, event_comsubid, event_drop, event_dropsubid, $comsubid2, 0, $component5)"); + return(1); +} +cc_setobject_nonum(obj_6512, 1); +cc_setopbase(""); +cc_settrans(0); +cc_setonop(null); +cc_setontimer(null); +cc_setondragcomplete(null); +return(0); diff --git a/scripts/[proc,script5276].cs2 b/scripts/[proc,script5276].cs2 new file mode 100644 index 000000000..03c4bb33d --- /dev/null +++ b/scripts/[proc,script5276].cs2 @@ -0,0 +1,13 @@ +// 5276 +[proc,script5276](component $component0, component $component1, component $component2, component $component3, int $int4, component $component5, int $int6, component $component7) +if (~bankmain_searching = 1) { + if_setgraphic("miscgraphics,9", $component0); + if (%varcint5 = 11) { + if_setontimer("script5277($component0, $component1, $component2, $component3, $int4, $component5, $int6, $component7)", $component0); + } else { + if_setontimer(null, $component0); + } +} else { + if_setgraphic("miscgraphics,0", $component0); + if_setontimer(null, $component0); +} diff --git a/scripts/[proc,script5280].cs2 b/scripts/[proc,script5280].cs2 new file mode 100644 index 000000000..f2c3ca92d --- /dev/null +++ b/scripts/[proc,script5280].cs2 @@ -0,0 +1,12 @@ +// 5280 +[proc,script5280](component $component0) +def_int $int1 = calc((42 - 36) * 3 - 2); +def_int $int2 = calc((36 - 32) * 2); +def_int $int3 = inv_size(inv_660); +while ($int3 > 0) { + $int3 = calc($int3 - 1); + if (cc_find($component0, $int3) = ^true) { + ~script5281(inv_getobj(inv_660, $int3), inv_getnum(inv_660, $int3), $component0); + cc_setposition(calc($int1 + $int3 % 4 * 42), calc($int2 + $int3 / 4 * 36), ^setpos_abs_left, ^setpos_abs_top); + } +} diff --git a/scripts/[proc,script5281].cs2 b/scripts/[proc,script5281].cs2 new file mode 100644 index 000000000..ebdc86c2b --- /dev/null +++ b/scripts/[proc,script5281].cs2 @@ -0,0 +1,34 @@ +// 5281 +[proc,script5281](obj $obj0, int $num1, component $component2) +cc_clearops; +if ($obj0 ! null) { + cc_settrans(0); + cc_setobject($obj0, $num1); + cc_setonop("cc_settrans_temporarily(event_com, event_comsubid, 100, 0)"); + cc_setop(1, "Deposit-<~script2579>"); + if (%varbit6590 ! 0) { + cc_setop(2, "Deposit-1"); + } + if (%varbit6590 ! 1) { + cc_setop(3, "Deposit-5"); + } + if (%varbit6590 ! 2) { + cc_setop(4, "Deposit-10"); + } + if (%varbit6590 ! 3 & %varbit3960 > 0) { + cc_setop(5, "Deposit-"); + } + cc_setop(6, "Deposit-X"); + if (%varbit6590 ! 4) { + cc_setop(7, "Deposit-All"); + } + cc_setop(10, "Examine"); + cc_setopbase(""); + cc_setondragcomplete("script5282(event_com, event_drop, event_comsubid, event_dropsubid)"); +} else { + cc_settrans(255); + cc_setobject(obj_6512, 1); + cc_setonop(null); + cc_setondragcomplete(null); +} +cc_setontimer(null); diff --git a/scripts/[proc,script5283].cs2 b/scripts/[proc,script5283].cs2 new file mode 100644 index 000000000..878144b0f --- /dev/null +++ b/scripts/[proc,script5283].cs2 @@ -0,0 +1,4 @@ +// 5283 +[proc,script5283](component $component0, component $component1, int $int2) +if_sethide(false, $component1); +~script5285($component0, $component1, calc($int2 * 30)); diff --git a/scripts/[proc,script5285].cs2 b/scripts/[proc,script5285].cs2 new file mode 100644 index 000000000..6ebc11a35 --- /dev/null +++ b/scripts/[proc,script5285].cs2 @@ -0,0 +1,13 @@ +// 5285 +[proc,script5285](component $component0, component $component1, int $int2) +def_int $int3 = calc($int2 % 3000 / 50); +if ($int3 >= 10) { + cc_settext(":"); +} else { + cc_settext(":0"); +} +if_setontimer("script5284($component0, $component1, cc_getid, $int2)", $component1); +if ($int2 > 500) { + $int2 = 500; +} +cc_setcolour(~rgb_to_hex(255, interpolate(0, $int2, 0, 500, 152), interpolate(0, $int2, 0, 500, 31))); diff --git a/scripts/[proc,script5288].cs2 b/scripts/[proc,script5288].cs2 new file mode 100644 index 000000000..37e362656 --- /dev/null +++ b/scripts/[proc,script5288].cs2 @@ -0,0 +1,21 @@ +// 5288 +[proc,script5288](component $component0, int $int1, int $int2, int $int3, int $width4, int $height5, struct $struct6, int $colour7)(int) +def_int $int8 = 4; +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_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 + 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); +if (cc_find($component0, $int1) = ^true) { + return(calc($int1 + 10)); +} +return(0); diff --git a/scripts/[proc,script5291].cs2 b/scripts/[proc,script5291].cs2 new file mode 100644 index 000000000..1b9de2274 --- /dev/null +++ b/scripts/[proc,script5291].cs2 @@ -0,0 +1,73 @@ +// 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) +def_int $int15 = 4; +def_int $int16 = 1; +def_int $int17 = calc($int2 * ($int3 + $int4)); +def_struct $struct18 = struct_3712; +if ($int14 = 0) { + $struct18 = struct_3714; +} +def_int $width19 = calc($int15 - $int16); +def_int $int20 = $int1; +cc_create($component0, ^iftype_rectangle, $int20); +cc_setposition(1, calc($int17 + 1), ^setpos_abs_left, ^setpos_abs_top); +cc_setsize($width19, calc($int3 - 2), ^setsize_minus, ^setsize_abs); +cc_setfill(true); +cc_setcolour($colour5); +if ($int14 = 0) { + cc_setop(1, "View"); + cc_setopbase("<$text0>"); + if (~on_mobile = false) { + cc_setonmouseover("script5292($component0, $int20, struct_3713)"); + cc_setonmouseleave("script5292($component0, $int20, struct_3714)"); + } +} +$int1 = calc($int1 + 1); +if ($int14 = 0) { + $width19 = calc($int15 * 2 - $int16); +} else { + $width19 = $int15; +} +~create_graphic($component0, $int1, struct_param($struct18, param_1391), $int15, calc($int17 + 2), ^setpos_abs_left, ^setpos_abs_top, $width19, calc($int3 - 4), ^setsize_minus, ^setsize_abs); +$int1 = calc($int1 + 1); +if ($int17 = 0 & $int14 = 1) { + $width19 = $int15; +} else { + $width19 = calc(2 * $int15 - $int16); +} +~create_graphic($component0, $int1, struct_param($struct18, param_1388), $int15, $int17, ^setpos_abs_left, ^setpos_abs_top, $width19, $int15, ^setsize_minus, ^setsize_abs); +$int1 = calc($int1 + 1); +if (calc($int17 + $int3) = if_getheight($component0) & $int14 = 1) { + $width19 = $int15; +} else { + $width19 = calc(2 * $int15 - $int16); +} +~create_graphic($component0, $int1, struct_param($struct18, param_1394), $int15, calc($int17 + $int3 - $int15), ^setpos_abs_left, ^setpos_abs_top, $width19, $int15, ^setsize_minus, ^setsize_abs); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, struct_param($struct18, param_1390), 0, calc($int17 + $int15), ^setpos_abs_left, ^setpos_abs_top, $int15, calc($int3 - 2 * $int15), ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, struct_param($struct18, param_1387), 0, $int17, ^setpos_abs_left, ^setpos_abs_top, $int15, $int15, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, struct_param($struct18, param_1393), 0, calc($int17 + $int3 - $int15), ^setpos_abs_left, ^setpos_abs_top, $int15, $int15, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, $graphic9, calc(3 + $int12), calc($int17 + $int3 / 2 - $int11 / 2 + $int13), ^setpos_abs_left, ^setpos_abs_top, $int10, $int11, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +def_int $int21 = 0; +if ($fontmetrics6 = null) { + cc_sethide(true); +} else { + $int21 = calc(8 + $int10 + $int8); + cc_setposition($int21, $int17, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int21 + 6), $int3, ^setsize_minus, ^setsize_abs); + cc_settextalign(^settextalign_left, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settextfont($fontmetrics6); + cc_setcolour($colour7); + cc_settext($text0); +} +$int1 = calc($int1 + 1); +if (cc_find($component0, $int20) = ^true) { + return($int1); +} +return(0); diff --git a/scripts/[proc,script5293].cs2 b/scripts/[proc,script5293].cs2 new file mode 100644 index 000000000..841afa67b --- /dev/null +++ b/scripts/[proc,script5293].cs2 @@ -0,0 +1,82 @@ +// 5293 +[proc,script5293](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)); +def_struct $struct18 = struct_3712; +if ($int14 = 0) { + $struct18 = struct_3714; +} +def_int $int19 = calc($int15 + 1); +def_int $int20 = $int1; +cc_create($component0, ^iftype_rectangle, $int20); +cc_setposition(calc($int17 + 1), 1, ^setpos_abs_left, ^setpos_abs_top); +cc_setsize(calc($int3 - 2), calc($int19 - 2), ^setsize_abs, ^setsize_minus); +cc_setfill(true); +cc_setcolour($colour5); +if ($int14 = 0) { + cc_setop(1, "View"); + cc_setopbase("<$text0>"); + if (~on_mobile = false) { + cc_setonmouseover("script5294($component0, $int20, struct_3713)"); + cc_setonmouseleave("script5294($component0, $int20, struct_3714)"); + } +} +$int1 = calc($int1 + 1); +if ($int14 = 0) { + $int19 = calc($int15 * 2 - $int16); +} else { + $int19 = $int15; +} +~create_graphic($component0, $int1, struct_param($struct18, param_1391), calc($int17 + 2), $int15, ^setpos_abs_left, ^setpos_abs_top, calc($int3 - 4), $int19, ^setsize_abs, ^setsize_minus); +$int1 = calc($int1 + 1); +if ($int17 = 0 & $int14 = 1) { + $int19 = $int15; +} else { + $int19 = calc(2 * $int15 - $int16); +} +~create_graphic($component0, $int1, struct_param($struct18, param_1390), $int17, $int15, ^setpos_abs_left, ^setpos_abs_top, $int15, $int19, ^setsize_abs, ^setsize_minus); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, struct_param($struct18, param_1388), calc($int17 + $int15), 0, ^setpos_abs_left, ^setpos_abs_top, calc($int3 - 2 * $int15), $int15, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +if (calc($int17 + $int3) = if_getwidth($component0) & $int14 = 1) { + $int19 = $int15; +} else { + $int19 = calc(2 * $int15 - $int16); +} +~create_graphic($component0, $int1, struct_param($struct18, param_1392), calc($int17 + $int3 - $int15), $int15, ^setpos_abs_left, ^setpos_abs_top, $int15, $int19, ^setsize_abs, ^setsize_minus); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, struct_param($struct18, param_1387), $int17, 0, ^setpos_abs_left, ^setpos_abs_top, $int15, $int15, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +~create_graphic($component0, $int1, struct_param($struct18, param_1389), calc($int17 + $int3 - $int15), 0, ^setpos_abs_left, ^setpos_abs_top, $int15, $int15, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +if ($fontmetrics6 = null) { + $int19 = calc($int17 + $int3 / 2 - $int10 / 2 + $int13); +} else { + $int19 = calc($int17 + 4 + $int12); +} +~create_graphic($component0, $int1, $graphic9, $int19, calc((if_getheight($component0) + $int16) / 2 - $int11 / 2 + $int13), ^setpos_abs_left, ^setpos_abs_top, $int10, $int11, ^setsize_abs, ^setsize_abs); +$int1 = calc($int1 + 1); +cc_create($component0, ^iftype_text, $int1); +def_int $x21 = 0; +def_int $settextalignh22 = ^settextalign_left; +if ($graphic9 = null) { + $settextalignh22 = ^settextalign_centre; +} +if ($fontmetrics6 = null) { + cc_sethide(true); +} else { + $x21 = calc($int17 + 8 + $int10 + $int8); + cc_setposition($x21, $int15, ^setpos_abs_left, ^setpos_abs_top); + cc_setsize(calc($int3 - 8 + $int10 - $int8 - 8), calc(2 * $int15 - $int16), ^setsize_abs, ^setsize_minus); + cc_settextalign($settextalignh22, ^settextalign_centre, 0); + cc_settextshadow(true); + cc_settextfont($fontmetrics6); + cc_setcolour($colour7); + cc_settext($text0); +} +$int1 = calc($int1 + 1); +if (cc_find($component0, $int20) = ^true) { + return($int1); +} +return(0); diff --git a/scripts/[proc,script5295].cs2 b/scripts/[proc,script5295].cs2 new file mode 100644 index 000000000..b98452f96 --- /dev/null +++ b/scripts/[proc,script5295].cs2 @@ -0,0 +1,15 @@ +// 5295 +[proc,script5295](component $component0, int $int1)(int) +cc_create($component0, ^iftype_rectangle, $int1); +$int1 = calc($int1 + 1); +cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_setfill(false); +cc_setcolour(0x2e2b23); +cc_create($component0, ^iftype_rectangle, $int1); +$int1 = calc($int1 + 1); +cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); +cc_setsize(2, 2, ^setsize_minus, ^setsize_minus); +cc_setfill(false); +cc_setcolour(0x726451); +return($int1); diff --git a/scripts/[proc,script5296].cs2 b/scripts/[proc,script5296].cs2 new file mode 100644 index 000000000..7478ebd94 --- /dev/null +++ b/scripts/[proc,script5296].cs2 @@ -0,0 +1,17 @@ +// 5296 +[proc,script5296](component $component0, string $string0, graphic $graphic1) +cc_deleteall($component0); +def_int $comsubid2 = ~options_button_off($component0, 0); +cc_create($component0, ^iftype_text, $comsubid2); +cc_setsize(0, 0, ^setsize_minus, ^setsize_minus); +cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre); +cc_setcolour(0xff981f); +cc_settextfont($graphic1); +cc_settextalign(^settextalign_centre, ^settextalign_centre, 0); +cc_settextshadow(true); +cc_settext($string0); +if_setonmouseover("cc_colour_swapper(event_com, $comsubid2, ^white)", $component0); +if_setonmouseleave("cc_colour_swapper(event_com, $comsubid2, 0xff981f)", $component0); +if_setop(1, removetags($string0), $component0); +if_setonop("script5297(event_opindex, event_com, $string0, $graphic1)", $component0); +if_setontimer(null, $component0); diff --git a/scripts/[proc,script5300].cs2 b/scripts/[proc,script5300].cs2 new file mode 100644 index 000000000..dab8a4305 --- /dev/null +++ b/scripts/[proc,script5300].cs2 @@ -0,0 +1,12 @@ +// 5300 +[proc,script5300](component $component0) +if (~script5262 = 1) { + ~ge_offers_bigbutton($component0, "Group Storage", 0); +} else { + cc_deleteall($component0); + if_clearops($component0); + if_setonmouserepeat(null, $component0); + if_setonmouseleave(null, $component0); + if_setonop(null, $component0); + if_setontimer(null, $component0); +} diff --git a/scripts/[proc,script5305].cs2 b/scripts/[proc,script5305].cs2 new file mode 100644 index 000000000..ef4880a73 --- /dev/null +++ b/scripts/[proc,script5305].cs2 @@ -0,0 +1,6 @@ +// 5305 +[proc,script5305]()(boolean) +if (%varbit1777 = 0) { + return(false); +} +return(true); diff --git a/scripts/[proc,script5308].cs2 b/scripts/[proc,script5308].cs2 new file mode 100644 index 000000000..17fd5cc34 --- /dev/null +++ b/scripts/[proc,script5308].cs2 @@ -0,0 +1,9 @@ +// 5308 +[proc,script5308](component $component0) +~script4215($component0, "Close"); +if (%varbit4602 = 1) { + if_setonop("opsound(event_opindex, 2)", $component0); + if_setopkey(1, ^key_escape, 0, $component0); +} else { + if_setonop("closebutton_click", $component0); +} diff --git a/scripts/[proc,script5309].cs2 b/scripts/[proc,script5309].cs2 new file mode 100644 index 000000000..f5d957383 --- /dev/null +++ b/scripts/[proc,script5309].cs2 @@ -0,0 +1,6 @@ +// 5309 +[proc,script5309](string $string0)(int) +if (string_length($string0) > 0 & compare(substring($string0, 0, 1), "|") = 0) { + return(1); +} +return(0); diff --git a/scripts/[proc,script553].cs2 b/scripts/[proc,script553].cs2 index 61f3d4912..627f34b1f 100644 --- a/scripts/[proc,script553].cs2 +++ b/scripts/[proc,script553].cs2 @@ -12,7 +12,7 @@ def_int $chattype5 = ^chattype_gamemessage; def_int $int6 = 0; def_string $string3 = ""; def_int $int7 = 0; -while ($chattype5 <= 110) { +while ($chattype5 <= 112) { if (chat_gethistorylength($chattype5) > 0) { $mesuid0, $int1, $string0, $string1, $string2, $int6, $string3, $int7 = chat_gethistoryex_bytypeandline($chattype5, 0); if ($int1 > $int3 | $mesuid0 > $mesuid2) { diff --git a/scripts/[proc,script819].cs2 b/scripts/[proc,script819].cs2 index c6afcf030..23c280ea7 100644 --- a/scripts/[proc,script819].cs2 +++ b/scripts/[proc,script819].cs2 @@ -64,7 +64,7 @@ def_int $comsubid16 = 0; def_int $comsubid17 = 0; def_int $comsubid18 = 0; cc_deleteall($component0); -$int3, $comsubid11, $comsubid12, $int13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18 = ~ge_offers_initboxes(0, $component0, $component1, b12_full); +$int3, $comsubid11, $comsubid12, $int13, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18 = ~ge_offers_initboxes(~script5305, 0, $component0, $component1, b12_full); ~script821($component0, $comsubid11, $comsubid12, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $component2, $comsubid7, $comsubid8, $comsubid10, $int9); if_setonstocktransmit("script820($component0, $comsubid11, $comsubid12, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $component2, $comsubid7, $comsubid8, $comsubid10, $int9)", $component2); if_setonvartransmit("script820($component0, $comsubid11, $comsubid12, $comsubid14, $comsubid15, $comsubid16, $comsubid17, $comsubid18, $component2, $comsubid7, $comsubid8, $comsubid10, $int9){var375}", $component2); diff --git a/scripts/[proc,scrollbar_vertical_doscroll].cs2 b/scripts/[proc,scrollbar_vertical_doscroll].cs2 index 7b8bab4e4..037e2c21b 100644 --- a/scripts/[proc,scrollbar_vertical_doscroll].cs2 +++ b/scripts/[proc,scrollbar_vertical_doscroll].cs2 @@ -12,7 +12,7 @@ switch_component ($component1) { %varcint75 = if_getscrolly($component1); case interface_429:11 : %varcint9 = if_getscrolly($component1); - case interface_12:12 : + case interface_12:13 : %varcint51 = if_getscrolly($component1); case interface_381:7 : %varcint0 = if_getscrolly($component1); @@ -32,7 +32,7 @@ switch_component ($component1) { %varcint80 = if_getscrolly($component1); case interface_129:13 : %varcint138 = if_getscrolly($component1); - case interface_499:14, interface_507:11, interface_500:10, interface_700:5, interface_699:11, interface_695:6 : + case interface_499:14, interface_507:11, interface_500:10, interface_700:5, interface_699:11, interface_695:6, interface_724:10 : %varcint179 = if_getscrolly($component1); case interface_595:19 : %varcint182 = if_getscrolly($component1); diff --git a/scripts/[proc,settings_clicked_toggle].cs2 b/scripts/[proc,settings_clicked_toggle].cs2 index f8ea2b140..7ec789ddf 100644 --- a/scripts/[proc,settings_clicked_toggle].cs2 +++ b/scripts/[proc,settings_clicked_toggle].cs2 @@ -92,6 +92,10 @@ switch_int ($int0) { ~settings_warning_annakarl_tablet; case 73 : ~settings_warning_ghorrock_tablet; + case 182 : + %varbit13039 = calc(1 - %varbit13039); + case 183 : + %varbit13040 = calc(1 - %varbit13040); case 82 : ~settings_precise_timing; case 83 : diff --git a/scripts/[proc,settings_get_toggle].cs2 b/scripts/[proc,settings_get_toggle].cs2 index 4493bbab8..9e98ca7d5 100644 --- a/scripts/[proc,settings_get_toggle].cs2 +++ b/scripts/[proc,settings_get_toggle].cs2 @@ -91,6 +91,10 @@ switch_int ($int0) { return(%varbit2324); case 73 : return(%varbit3931); + case 182 : + return(%varbit13039); + case 183 : + return(%varbit13040); case 82 : return(%varbit11866); case 83 : diff --git a/scripts/[proc,settings_toggle_choose_transmit].cs2 b/scripts/[proc,settings_toggle_choose_transmit].cs2 index 7742bdf29..422ac81d2 100644 --- a/scripts/[proc,settings_toggle_choose_transmit].cs2 +++ b/scripts/[proc,settings_toggle_choose_transmit].cs2 @@ -33,6 +33,8 @@ switch_int ($int3) { cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $int3, $trans5, $struct4){var1055, var2855, var2856}"); case 127 : cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $int3, $trans5, $struct4){var1734}"); + case 182, 183 : + cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $int3, $trans5, $struct4){var1734}"); case default : cc_setonvartransmit("settings_toggle_transmit($component0, $int1, $boolean2, $int3, $trans5, $struct4){var2855}"); } diff --git a/scripts/[proc,side_channels_settab].cs2 b/scripts/[proc,side_channels_settab].cs2 index e86364990..5ea4bd9d5 100644 --- a/scripts/[proc,side_channels_settab].cs2 +++ b/scripts/[proc,side_channels_settab].cs2 @@ -1,16 +1,20 @@ // 4475 -[proc,side_channels_settab](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5) -def_graphic $graphic6 = "tabs_short,2"; -def_graphic $graphic7 = "tabs_short,3"; -if (%varbit930 = $int0) { +[proc,side_channels_settab](int $int0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6) +if ($component1 = null) { + return; +} +if_sethide(false, $component1); +def_graphic $graphic7 = "tabs_short,2"; +def_graphic $graphic8 = "tabs_short,3"; +if (%varbit13071 = $int0) { ~side_channels_drawtab($component1, "tabs_short,0", "tabs_short,1"); if_setonmouserepeat(null, $component1); if_setonmouseleave(null, $component1); - if_setonop("adventurepath_do_nothing", $component1); + if_setonop("opsound(0, 0)", $component1); } else { - ~side_channels_drawtab($component1, $graphic6, $graphic7); - if_setonmouseleave("side_channels_drawtab($component1, $graphic6, $graphic7)", $component1); - $graphic6, $graphic7 = "tabs_short,4", "tabs_short,5"; - if_setonmouserepeat("side_channels_drawtab($component1, $graphic6, $graphic7)", $component1); - if_setonop("side_channels_optab(event_opindex, $int0, $component2, $component3, $component4, $component5)", $component1); + ~side_channels_drawtab($component1, $graphic7, $graphic8); + if_setonmouseleave("side_channels_drawtab($component1, $graphic7, $graphic8)", $component1); + $graphic7, $graphic8 = "tabs_short,4", "tabs_short,5"; + if_setonmouserepeat("side_channels_drawtab($component1, $graphic7, $graphic8)", $component1); + if_setonop("side_channels_optab(event_opindex, $int0, $component2, $component3, $component4, $component5, $component6)", $component1); } diff --git a/scripts/[proc,side_channels_tabinit].cs2 b/scripts/[proc,side_channels_tabinit].cs2 index aad5a0f87..e703556c5 100644 --- a/scripts/[proc,side_channels_tabinit].cs2 +++ b/scripts/[proc,side_channels_tabinit].cs2 @@ -17,3 +17,6 @@ cc_create($component0, ^iftype_graphic, 3); cc_setsize(17, 18, ^setsize_abs, ^setsize_abs); cc_setposition(0, 1, ^setpos_abs_centre, ^setpos_abs_bottom); cc_setgraphic(enum(int, graphic, enum_3840, $int1)); +if ($int1 = 5 | $int1 = 4) { + cc_setonvartransmit("script5302(event_com, event_comsubid, $component0){var499}"); +} diff --git a/scripts/[proc,toplevel_redraw].cs2 b/scripts/[proc,toplevel_redraw].cs2 index d7f3b79de..207e773f2 100644 --- a/scripts/[proc,toplevel_redraw].cs2 +++ b/scripts/[proc,toplevel_redraw].cs2 @@ -107,10 +107,11 @@ if ($component9 ! null & $component7 ! null) { $component9, $component7 = enum(int, component, enum_1138, 7), enum(int, component, enum_1139, 7); $component9, $component7 = enum(component, component, $enum1, $component9), enum(component, component, $enum1, $component7); if ($component9 ! null) { - if_setop(1, enum(int, string, enum_3839, %varbit930), $component9); + if_setop(1, enum(int, string, enum_3839, %varbit13071), $component9); } if ($component7 ! null) { - if_setgraphic(enum(int, graphic, enum_3841, %varbit930), $component7); + if_setgraphic(enum(int, graphic, enum_3841, %varbit13071), $component7); + if_setonvartransmit("script5303($component7, $component9){var499}", $component7); } $component7 = enum(component, component, $enum1, interface_161:41); if ($component7 ! null) {