-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLailloken UI.ahk
2085 lines (1892 loc) · 73.6 KB
/
Lailloken UI.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#NoEnv
#SingleInstance, Force
#InstallKeybdHook
#InstallMouseHook
#Hotstring NoMouse
#Hotstring EndChars `n
#MaxThreads 100
#MaxMem 1024
#Include %A_ScriptDir%
DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr")
OnMessage(0x0204, "LLK_Rightclick")
OnMessage(0x0200, "LLK_MouseMove")
SetKeyDelay, 20
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
CoordMode, ToolTip, Screen
SendMode, Input
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, 2
SetBatchLines, -1
OnExit, Exit
Menu, Tray, Tip, Lailloken UI
#Include data\Class_CustomFont.ahk
font1 := New CustomFont("data\Fontin-SmallCaps.ttf")
timeout := 1
Menu, Tray, Icon, img\GUI\tray.ico
IniRead, enable_caps_toggling, ini\config.ini, Settings, enable CapsLock-toggling, 1
SetStoreCapsLockMode, %enable_caps_toggling%
If !pToken := Gdip_Startup()
{
MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
ExitApp
}
SysGet, xborder, 32
SysGet, yborder, 33
SysGet, caption, 4
GroupAdd, poe_window, ahk_exe GeForceNOW.exe
GroupAdd, poe_window, ahk_exe boosteroid.exe
GroupAdd, poe_window, ahk_class POEWindowClass
GroupAdd, poe_ahk_window, ahk_class POEWindowClass
GroupAdd, poe_ahk_window, ahk_exe GeForceNOW.exe
GroupAdd, poe_ahk_window, ahk_exe boosteroid.exe
GroupAdd, poe_ahk_window, ahk_class AutoHotkeyGUI
IniRead, clone_frames_failcheck, ini\clone frames.ini
Loop, Parse, clone_frames_failcheck, `n, `n
{
If InStr(A_LoopField, " ")
IniDelete, ini\clone frames.ini, %A_LoopField%
}
If !FileExist("data\Resolutions.ini") || !FileExist("data\Class_CustomFont.ahk") || !FileExist("data\Fontin-SmallCaps.ttf") || !FileExist("data\JSON.ahk") || !FileExist("data\External Functions.ahk") || !FileExist("data\Map mods.ini")
|| !FileExist("data\Betrayal.ini") || !FileExist("data\Atlas.ini") || !FileExist("data\timeless jewels\") || !FileExist("data\leveling tracker\")
LLK_Error("Critical files are missing. Make sure you have installed the script correctly.")
If !FileExist("ini\")
{
FileCreateDir, ini\
Sleep 250
}
If !FileExist("ini\")
LLK_FilePermissionError("create")
IniRead, kill_timeout, ini\config.ini, Settings, kill-timeout, 1
IniRead, kill_script, ini\config.ini, Settings, kill script, 1
startup := A_TickCount
FileRead, json_mods, data\item info\mods.json
itemchecker_mod_data := Json.Load(json_mods)
json_mods := ""
FileRead, json_base_items, data\item info\base items.json
itemchecker_base_item_data := Json.Load(json_base_items)
json_base_items := ""
While !WinExist("ahk_group poe_window")
{
If (A_TickCount >= startup + kill_timeout*60000) && (kill_script = 1)
ExitApp
win_not_exist := 1
sleep, 100
}
If WinExist("ahk_group poe_window") && (win_not_exist = 1) ;band-aid fix for situations in which the script detected an unsupported resolution because the PoE-client window was being resized while launching
client_start := A_TickCount
While (A_TickCount < client_start + 4000)
sleep, 100
If !WinExist("ahk_exe GeForceNOW.exe") && !WinExist("ahk_exe boosteroid.exe")
{
IniRead, poe_config_file, ini\config.ini, Settings, PoE config-file, %A_MyDocuments%\My Games\Path of Exile\production_Config.ini
If !FileExist(poe_config_file)
{
FileSelectFile, poe_config_file, 3, %A_MyDocuments%\My Games\\production_Config.ini, Please locate the 'production_Config.ini' file which is stored in the same folder as loot-filters, config files (*.ini)
If (ErrorLevel = 1) || !InStr(poe_config_file, "production_Config")
{
Reload
ExitApp
}
FileRead, poe_config_check, % poe_config_file
If !InStr(poe_config_check, "[Display]")
{
Reload
ExitApp
}
IniWrite, "%poe_config_file%", ini\config.ini, Settings, PoE config-file
}
Else IniWrite, "%poe_config_file%", ini\config.ini, Settings, PoE config-file
FileRead, poe_config_content, % poe_config_file
If (poe_config_content = "")
LLK_Error("Cannot read the PoE config-file. Please restart the game-client and then the script. If you still get this error repeatedly, please report the issue.`n`nError-message (for reporting): PoE-config returns empty")
exclusive_fullscreen := InStr(poe_config_content, "`nfullscreen=true") ? "true" : InStr(poe_config_content, "fullscreen=false") ? "false" : ""
If (exclusive_fullscreen = "")
{
IniDelete, ini\config.ini, Settings, PoE config-file
LLK_Error("Cannot read the PoE config-file.`n`nThe script will restart and reset the first-time setup. If you still get this error repeatedly, please report the issue.`n`nError-message (for reporting): Cannot read state of exclusive fullscreen", 1)
}
Else If (exclusive_fullscreen = "true")
LLK_Error("The game-client is set to exclusive fullscreen.`nPlease set it to windowed fullscreen.")
fullscreen := InStr(poe_config_content, "borderless_windowed_fullscreen=true") ? "true" : InStr(poe_config_content, "borderless_windowed_fullscreen=false") ? "false" : ""
If (fullscreen = "")
{
IniDelete, ini\config.ini, Settings, PoE config-file
LLK_Error("Cannot read the PoE config-file.`n`nThe script will restart and reset the first-time setup. If you still get this error repeatedly, please report the issue.`n`nError-message (for reporting): Cannot read state of borderless fullscreen", 1)
}
IniRead, fullscreen_last, ini\config.ini, Settings, fullscreen, % A_Space
If (fullscreen_last != fullscreen)
{
IniWrite, % fullscreen, ini\config.ini, Settings, fullscreen
IniWrite, 0, ini\config.ini, Settings, enable custom-resolution
}
}
Else IniWrite, 0, ini\config.ini, Settings, enable custom-resolution
hwnd_poe_client := WinExist("ahk_group poe_window")
last_check := A_TickCount
WinGetPos, xScreenOffset_initial, yScreenOffset_initial, poe_width_initial, poe_height_initial, ahk_group poe_window
poe_width := poe_width_initial, poe_height := poe_height_initial
xScreenOffSet := xScreenOffset_initial, yScreenOffSet := yScreenOffset_initial
;############################################################ delete old files from previous versions, or files that have been moved elsewhere
If FileExist("Resolutions.ini")
FileDelete, Resolutions.ini
If FileExist("Class_CustomFont.ahk")
FileDelete, Class_CustomFont.ahk
If FileExist("External Functions.ahk")
FileDelete, External Functions.ahk
If FileExist("Fontin-SmallCaps.ttf")
FileDelete, Fontin-SmallCaps.ttf
If FileExist("ini\lake helper.ini")
FileDelete, ini\lake helper.ini
If FileExist("modules\overlayke.ahk")
FileDelete, modules\overlayke.ahk
If FileExist("modules\gwennen regex.ahk")
FileDelete, modules\gwennen regex.ahk
If FileExist("data\leveling tracker\gems.txt")
FileDelete, data\leveling tracker\gems.txt
If FileExist("modules\bestiary search.ahk")
FileDelete, modules\bestiary search.ahk
If FileExist("data\map search.ini")
FileDelete, data\map search.ini
If FileExist("_ini\")
FileRemoveDir, _ini\, 1
If FileExist("img\_Fallback\")
FileRemoveDir, img\_Fallback\, 1
If FileExist("img\Recognition (" poe_height "p)\Sanctum\")
FileRemoveDir, % "img\Recognition (" poe_height "p)\Sanctum\", 1
If FileExist("modules\sanctum.ahk")
FileDelete, modules\sanctum.ahk
If FileExist("data\sanctum.ini")
FileDelete, data\sanctum.ini
If FileExist("img\GUI\sanctum.jpg")
FileDelete, img\GUI\sanctum.jpg
If FileExist("launcher.ahk")
FileDelete, launcher.ahk
;############################################################
;determine native resolution of the active monitor
Gui, Test: New, -DPIScale +LastFound +AlwaysOnTop +ToolWindow -Caption
WinSet, Trans, 0
Gui, Test: Show, NA x%xScreenOffset% y%yScreenOffset% Maximize
WinGetPos, xScreenOffset_monitor, yScreenOffSet_monitor, width_native, height_native
Gui, Test: Destroy
IniRead, supported_resolutions, data\Resolutions.ini
supported_resolutions := "," StrReplace(supported_resolutions, "`n", ",")
WinGet, poe_log_file, ProcessPath, ahk_group poe_window
poe_log_file := FileExist(SubStr(poe_log_file, 1, InStr(poe_log_file, "\",,,LLK_InStrCount(poe_log_file, "\"))) "logs\client.txt") ? SubStr(poe_log_file, 1, InStr(poe_log_file, "\",,,LLK_InStrCount(poe_log_file, "\"))) "logs\client.txt" : SubStr(poe_log_file, 1, InStr(poe_log_file, "\",,,LLK_InStrCount(poe_log_file, "\"))) "logs\kakaoclient.txt"
If FileExist(poe_log_file)
{
poe_log := FileOpen(poe_log_file, "r")
poe_log_content := poe_log.Read()
Loop, Parse, poe_log_content, `n, `r
{
If InStr(A_Loopfield, "generating level")
{
current_location := SubStr(A_Loopfield, InStr(A_Loopfield, "area """) + 6)
current_location := SubStr(current_location, 1, InStr(current_location, """") -1) ;save PoE-internal location name in var
in_lab := InStr(current_location, "labyrinth_") ? 1 : 0
current_area_tier := SubStr(A_LoopField, InStr(A_LoopField, "level ") + 6, InStr(A_LoopField, " area """) - InStr(A_LoopField, "level ") - 6) - 67
current_area_level := current_area_tier + 67
If (current_area_tier > 0)
current_area_tier := (current_area_tier < 10) ? 0 current_area_tier : current_area_tier ;save map-tier in var
}
If in_lab && InStr(A_LoopField, ": you have entered ")
{
lab_location_verbose := SubStr(A_LoopField, InStr(A_LoopField, "you have entered") + 17, -1)
lab_location := current_location
}
}
leveling_guide_fresh_login := 1
}
Else poe_log_file := 0
If (fullscreen = "false")
{
poe_width -= xborder*2
poe_height := poe_height - caption - yborder*2
xScreenOffSet += xborder
yScreenOffSet += caption + yborder
}
IniRead, fSize_config0, data\Resolutions.ini, %poe_height%p, font-size0, 16
IniRead, fSize_config1, data\Resolutions.ini, %poe_height%p, font-size1, 14
fSize0 := fSize_config0
fSize1 := fSize_config1
IniRead, window_docking, ini\config.ini, Settings, top-docking, 1
IniRead, custom_resolution_setting, ini\config.ini, Settings, enable custom-resolution
If (custom_resolution_setting != 0) && (custom_resolution_setting != 1)
{
IniWrite, 0, ini\config.ini, Settings, enable custom-resolution
custom_resolution_setting := 0
}
If (custom_resolution_setting = 1)
{
IniRead, custom_resolution, ini\config.ini, Settings, custom-resolution
IniRead, custom_width, ini\config.ini, Settings, custom-width
If !IsNumber(custom_resolution) || !IsNumber(custom_width)
{
MsgBox, Incorrect config.ini settings detected: custom resolution enabled but none selected.`nThe setting will be reset and the script restarted.
IniWrite, 0, ini\config.ini, Settings, enable custom-resolution
Reload
ExitApp
}
If (custom_resolution > height_native) || (custom_width > width_native) ;check resolution in case of manual .ini edit
{
MsgBox, Incorrect config.ini settings detected.`nThe script will now exit.
IniWrite, 0, ini\config.ini, Settings, enable custom-resolution
IniWrite, %height_native%, ini\config.ini, Settings, custom-resolution
IniWrite, %width_native%, ini\config.ini, Settings, custom-width
ExitApp
}
If (fullscreen = "true")
WinMove, ahk_group poe_window,, % xScreenOffset_monitor, % yScreenOffset_monitor, % poe_width, %custom_resolution%
Else
{
WinMove, ahk_group poe_window,,, % (window_docking = 0) ? "" : yScreenOffset_monitor, % custom_width + xborder*2, % custom_resolution + caption + yborder*2
WinGetPos, xScreenOffSet, yScreenOffSet,,, ahk_group poe_window
xScreenOffSet += xborder
yScreenOffSet += caption + yborder
poe_width := custom_width
}
poe_height := custom_resolution
IniRead, fSize_config0, data\Resolutions.ini, %poe_height%p, font-size0, 16
IniRead, fSize_config1, data\Resolutions.ini, %poe_height%p, font-size1, 14
fSize0 := fSize_config0
fSize1 := fSize_config1
}
If !FileExist("img\Recognition (" poe_height "p)\GUI\")
FileCreateDir, img\Recognition (%poe_height%p)\GUI\
If !FileExist("img\Recognition (" poe_height "p)\Betrayal\")
FileCreateDir, img\Recognition (%poe_height%p)\Betrayal\
Sleep, 250
If !FileExist("img\Recognition (" poe_height "p)\")
LLK_FilePermissionError("create")
GoSub, Init_variables
GoSub, Init_screenchecks
GoSub, Init_general
GoSub, Init_alarm
GoSub, Init_betrayal
GoSub, Init_cheatsheets
GoSub, Init_cloneframes
GoSub, Init_delve
If WinExist("ahk_exe GeForceNOW.exe") || WinExist("ahk_exe boosteroid.exe")
GoSub, Init_geforce
GoSub, Init_hotkeys
GoSub, Init_itemchecker
GoSub, Init_legion
GoSub, Init_maps
GoSub, Init_notepad
GoSub, Init_searchstrings
GoSub, Init_leveling_guide
GoSub, Init_map_tracker
GoSub, Resolution_check
GoSub, Init_conversions
SetTimer, Loop, 1000
SetTimer, Log_loop, 1000
timeout := 0
If (custom_resolution_setting = 1)
WinActivate, ahk_group poe_window
If !enable_startup_beep
WinWaitActive, ahk_group poe_window
Else WinWaitActive, ahk_group poe_ahk_window
If enable_startup_beep
SoundBeep, 100
GoSub, GUI
GoSub, Recombinators
GoSub, Lab_info
If (clone_frames_enabled != "")
GoSub, GUI_clone_frames
SetTimer, MainLoop, 100
If (update_available = 1)
ToolTip, % "New version available: " version_online "`nCurrent version: " version_installed "`nPress TAB to open the release page.`nPress ESC to dismiss this notification.", % xScreenOffSet + poe_width/2*0.9, % yScreenOffSet
IniRead, restart_section, ini\config.ini, Versions, reload settings, % A_Space
If restart_section
GoSub, Settings_menu
IniDelete, ini\config.ini, Versions, reload settings
Return
#Include *i modules\hotkeys custom.ahk
#Include modules\hotkeys.ahk
#Include modules\alarm-timer.ahk
Apply_settings_general:
Gui, settings_menu: Submit, NoHide
If (A_GuiControl = "custom_resolution_apply")
{
custom_width := (custom_width > width_native) ? width_native : custom_width
poe_width := (fullscreen = "true") ? width_native : custom_width
If (fullscreen = "false")
{
custom_resolution += caption + yborder*2
poe_width += (poe_width > width_native) ? 0 : xborder*2
}
WinMove, ahk_group poe_window,, % (fullscreen = "false") ? xScreenOffset_monitor - xborder : xScreenOffset_monitor, %yScreenOffset_monitor%, %poe_width%, %custom_resolution%
WinGetPos,,, poe_width, custom_resolution, ahk_group poe_window
If (fullscreen = "false")
{
xScreenOffSet := (poe_width < width_native) ? xScreenOffset_monitor + (width_native - poe_width)/2 : xScreenOffset_monitor - xborder
yScreenOffSet := (custom_resolution < height_native) ? yScreenOffset_monitor + (height_native - custom_resolution)/2 : yScreenOffset_monitor - yborder - caption
WinMove, ahk_group poe_window,, %xScreenOffSet%, % (window_docking = 1) ? yScreenOffset_monitor : yScreenOffSet_monitor + (height_native - custom_resolution)/2, %poe_width%, %custom_resolution%
}
IniWrite, %custom_resolution_setting%, ini\config.ini, Settings, enable custom-resolution
IniWrite, % (fullscreen = "false") ? custom_resolution - caption - yborder*2 : custom_resolution, ini\config.ini, Settings, custom-resolution
IniWrite, % (fullscreen = "false") ? custom_width : width_native, ini\config.ini, Settings, custom-width
IniWrite, % settings_menu_section, ini\config.ini, Versions, reload settings
Reload
ExitApp
}
If (A_GuiControl = "custom_resolution_setting")
{
IniWrite, % %A_GuiControl%, ini\config.ini, Settings, enable custom-resolution
Return
}
If (A_GuiControl = "window_docking")
{
IniWrite, % %A_GuiControl%, ini\config.ini, Settings, top-docking
Return
}
If (A_GuiControl = "interface_size_minus")
{
fSize_offset -= 1
IniWrite, %fSize_offset%, ini\config.ini, UI, font-offset
}
If (A_GuiControl = "interface_size_plus")
{
fSize_offset += 1
IniWrite, %fSize_offset%, ini\config.ini, UI, font-offset
}
If (A_GuiControl = "interface_size_reset")
{
fSize_offset := 0
IniWrite, %fSize_offset%, ini\config.ini, UI, font-offset
}
fSize0 := fSize_config0 + fSize_offset
fSize1 := fSize_config1 + fSize_offset
Gui, font_size: New, -DPIScale -Caption +LastFound +AlwaysOnTop +ToolWindow +Border HWNDhwnd_font_size
Gui, font_size: Margin, 0, 0
Gui, font_size: Color, Black
Gui, font_size: Font, % "cWhite s"fSize0, Fontin SmallCaps
Gui, font_size: Add, Text, % "Border HWNDmain_text", % "7"
GuiControlGet, font_check_, Pos, % main_text
font_height := font_check_h
font_width := font_check_w
Gui, font_size: Destroy
hwnd_font_size := ""
If (A_GuiControl = "kill_script")
IniWrite, %kill_script%, ini\config.ini, Settings, kill script
If (A_GuiControl = "kill_timeout")
{
kill_timeout := (kill_timeout = "") ? 0 : kill_timeout
IniWrite, %kill_timeout%, ini\config.ini, Settings, kill-timeout
}
If (A_GuiControl = "panel_position0")
IniWrite, %panel_position0%, ini\config.ini, UI, panel-position0
If (A_GuiControl = "panel_position1")
IniWrite, %panel_position1%, ini\config.ini, UI, panel-position1
If (A_GuiControl = "hide_panel")
IniWrite, %hide_panel%, ini\config.ini, UI, hide panel
If (A_GuiControl = "enable_browser_features")
IniWrite, %enable_browser_features%, ini\config.ini, Settings, enable browser features
If (A_GuiControl = "enable_caps_toggling")
{
IniWrite, %enable_caps_toggling%, ini\config.ini, Settings, enable CapsLock-toggling
IniWrite, % settings_menu_section, ini\config.ini, Versions, reload settings
Reload
ExitApp
}
SetTimer, Settings_menu, 10
GoSub, GUI
WinActivate, ahk_group poe_window
Return
#Include modules\betrayal-info.ahk
#Include modules\cheat sheets.ahk
#Include modules\clone-frames.ahk
#Include modules\delve-helper.ahk
Exit:
Gdip_Shutdown(pToken)
poe_log.Close()
If (map_tracker_map != "")
LLK_MapTrackSave()
If (timeout != 1)
{
If !(alarm_timestamp < A_Now) && (alarm_loop != 1) && enable_alarm
IniWrite, %alarm_timestamp%, ini\alarm.ini, Settings, alarm-timestamp
If enable_notepad
{
IniWrite, %notepad_width%, ini\notepad.ini, UI, width
IniWrite, %notepad_height%, ini\notepad.ini, UI, height
notepad_text := StrReplace(notepad_text, "`n", ",,")
IniWrite, %notepad_text%, ini\notepad.ini, Text, text
}
If enable_itemchecker_gear
{
Loop, Parse, gear_slots, `,
IniWrite, % equipped_%A_LoopField%, ini\item-checker gear.ini, % A_LoopField
}
Loop, Parse, clone_frames_list, `n, `n
{
If (A_LoopField = "Settings")
continue
IniWrite, % clone_frame_%A_LoopField%_enable, ini\clone frames.ini, %A_LoopField%, enable
}
IniRead, guide_progress_ini, ini\leveling guide.ini, Progress,, % A_Space
If (guide_progress != "") && (guide_progress != guide_progress_ini)
{
IniDelete, ini\leveling guide.ini, Progress
IniWrite, % guide_progress, ini\leveling guide.ini, Progress
}
IniRead, leveling_guide_skilltree_last_ini, ini\leveling tracker.ini, Settings, last skilltree-image, % A_Space
If (leveling_guide_skilltree_last != "") && (leveling_guide_skilltree_last != leveling_guide_skilltree_last_ini) && (leveling_guide_skilltree_last_ini != "")
IniWrite, "%leveling_guide_skilltree_last%", ini\leveling tracker.ini, Settings, last skilltree-image
IniRead, leveling_guide_time_ini, ini\leveling tracker.ini, current run, time, 0
If (leveling_guide_time_ini != leveling_guide_time)
IniWrite, % leveling_guide_time, ini\leveling tracker.ini, current run, time
}
ExitApp
Return
Geforce_now_apply:
Gui, settings_menu: Submit, NoHide
pixelsearch_variation := (pixelsearch_variation = "") ? 0 : pixelsearch_variation
pixelsearch_variation := (pixelsearch_variation > 255) ? 255 : pixelsearch_variation
imagesearch_variation := (imagesearch_variation = "") ? 0 : imagesearch_variation
imagesearch_variation := (imagesearch_variation > 255) ? 255 : imagesearch_variation
If (A_GuiControl = "pixelsearch_variation")
IniWrite, % pixelsearch_variation, ini\geforce now.ini, Settings, pixel-check variation
If (A_GuiControl = "imagesearch_variation")
IniWrite, % imagesearch_variation, ini\geforce now.ini, Settings, image-check variation
Return
#Include modules\GUI.ahk
Init_conversions:
IniRead, ini_version, ini\config.ini, Versions, ini-version, 0
If (ini_version < 12406) && FileExist("ini\pixel checks (" poe_height "p).ini") ;migrate pixel-check settings to screen-checks ini
{
IniRead, pixel_gamescreen_color1, ini\pixel checks (%poe_height%p).ini, gamescreen, color 1
IniRead, convert_pixelchecks, ini\pixel checks (%poe_height%p).ini, gamescreen
IniWrite, % convert_pixelchecks, ini\screen checks (%poe_height%p).ini, gamescreen
FileDelete, ini\pixel checks*.ini
}
If (ini_version < 12808)
{
itemchecker_highlight := StrReplace(itemchecker_highlight, "added small passive skills also grant: ")
itemchecker_highlight := StrReplace(itemchecker_highlight, "added Passive Skill is ")
itemchecker_blacklist := StrReplace(itemchecker_blacklist, "added small passive skills also grant: ")
itemchecker_blacklist := StrReplace(itemchecker_blacklist, "added Passive Skill is ")
IniWrite, % itemchecker_highlight, ini\item-checker.ini, settings, highlighted mods
IniWrite, % itemchecker_blacklist, ini\item-checker.ini, settings, blacklisted mods
}
If (ini_version < 12900) ;clean up item-info: highlight- and blacklist, default colors
{
itemchecker_highlight := StrReplace(itemchecker_highlight, ".")
While InStr(itemchecker_highlight, " ")
itemchecker_highlight := StrReplace(itemchecker_highlight, " ", " ")
Loop, parse, itemchecker_highlight, |
{
If (A_Index = 1)
itemchecker_highlight := ""
If (A_LoopField = "")
continue
parse := A_LoopField
While (SubStr(parse, 1, 1) = " ")
parse := SubStr(parse, 2)
While (SubStr(parse, 0) = " ")
parse := SubStr(parse, 1, -1)
itemchecker_highlight .= InStr(itemchecker_highlight, "|" parse "|") ? "" : "|" parse "|"
}
itemchecker_blacklist := StrReplace(itemchecker_blacklist, ".")
While InStr(itemchecker_blacklist, " ")
itemchecker_blacklist := StrReplace(itemchecker_blacklist, " ", " ")
Loop, parse, itemchecker_blacklist, |
{
If (A_Index = 1)
itemchecker_blacklist := ""
If (A_LoopField = "")
continue
parse := A_LoopField
While (SubStr(parse, 1, 1) = " ")
parse := SubStr(parse, 2)
While (SubStr(parse, 0) = " ")
parse := SubStr(parse, 1, -1)
itemchecker_blacklist .= InStr(itemchecker_blacklist, "|" parse "|") || InStr(itemchecker_highlight, "|" parse "|") ? "" : "|" parse "|"
}
IniWrite, % itemchecker_highlight, ini\item-checker.ini, settings, highlighted mods
IniWrite, % itemchecker_blacklist, ini\item-checker.ini, settings, blacklisted mods
If (itemchecker_t1_color = "00ff00")
{
itemchecker_t1_color := "00bb00"
IniWrite, % itemchecker_t1_color, ini\item-checker.ini, UI, tier 1
}
If (itemchecker_t5_color = "dc143c")
{
itemchecker_t5_color := "ff4040"
IniWrite, % itemchecker_t5_color, ini\item-checker.ini, UI, tier 5
}
If (itemchecker_t6_color = "800000")
{
itemchecker_t6_color := "aa0000"
IniWrite, % itemchecker_t6_color, ini\item-checker.ini, UI, tier 6
}
If (itemchecker_ilvl2_color = "00ff00")
{
itemchecker_ilvl2_color := "00bb00"
IniWrite, % itemchecker_ilvl2_color, ini\item-checker.ini, UI, ilvl tier 2
}
If (itemchecker_ilvl6_color = "dc143c")
{
itemchecker_ilvl6_color := "ff4040"
IniWrite, % itemchecker_ilvl6_color, ini\item-checker.ini, UI, ilvl tier 6
}
If (itemchecker_ilvl7_color = "800000")
{
itemchecker_ilvl7_color := "aa0000"
IniWrite, % itemchecker_ilvl7_color, ini\item-checker.ini, UI, ilvl tier 7
}
}
If (ini_version < 12903) ;move Gwennen regex-string to search-strings config
{
IniRead, gwennen_check, ini\gwennen.ini, regex, regex, %A_Space%
If (gwennen_check != "")
{
gwennen_check := """" gwennen_check """"
IniWrite, (gwennen_1)`,, ini\stash search.ini, Settings, gwennen
IniWrite, 1, ini\stash search.ini, gwennen_1, enable
IniWrite, "%gwennen_check%", ini\stash search.ini, gwennen_1, string 1
IniWrite, 0, ini\stash search.ini, gwennen_1, string 1 enable scrolling
IniWrite, "", ini\stash search.ini, gwennen_1, string 2
IniWrite, 0, ini\stash search.ini, gwennen_1, string 2 enable scrolling
}
FileDelete, ini\gwennen.ini
}
If (ini_version < 12905)
{
FileDelete, img\GUI\item_info_*.png
IniRead, itemchecker_highlight, ini\item-checker.ini, settings, highlighted mods, %A_Space%
IniRead, itemchecker_blacklist, ini\item-checker.ini, settings, blacklisted mods, %A_Space%
IniRead, itemchecker_highlight_implicits, ini\item-checker.ini, settings, highlighted implicits, %A_Space%
IniRead, itemchecker_blacklist_implicits, ini\item-checker.ini, settings, blacklisted implicits, %A_Space%
IniWrite, % itemchecker_highlight, ini\item-checker.ini, highlighting 1, highlight
IniWrite, % itemchecker_highlight_implicits, ini\item-checker.ini, highlighting 1, highlight implicits
IniWrite, % itemchecker_blacklist, ini\item-checker.ini, highlighting 1, blacklist
IniWrite, % itemchecker_blacklist_implicits, ini\item-checker.ini, highlighting 1, blacklist implicits
IniDelete, ini\item-checker.ini, settings, highlighted mods
IniDelete, ini\item-checker.ini, settings, highlighted implicits
IniDelete, ini\item-checker.ini, settings, blacklisted mods
IniDelete, ini\item-checker.ini, settings, blacklisted implicits
GoSub, Init_itemchecker
}
If (ini_version < 12905.1)
{
Loop 5
IniDelete, ini\item-checker.ini, highlighting %A_Index%*
}
If (ini_version < 13001)
{
If InStr(buggy_resolutions, poe_height)
LLK_Error("The script needs to convert some settings for an updated feature, but it couldn't correctly read your client-resolution.`nIt will now restart.", 1)
conversion_searchstrings := "stash,gwennen,vendor,bestiarydex"
Loop, Parse, conversion_searchstrings, `,
{
conversion_search := (A_LoopField = "bestiarydex") ? "beast index" : A_LoopField
IniRead, conversion_strings, ini\stash search.ini, Settings, % A_LoopField, % A_Space
If conversion_strings
{
IniWrite, 1, ini\search-strings.ini, searches, % conversion_search
IniRead, conversion_coordinates, ini\screen checks (%poe_height%p).ini, % A_LoopField, last coordinates, % A_Space
IniWrite, % conversion_coordinates, ini\search-strings.ini, % conversion_search, last coordinates
If (A_LoopField = "stash")
FileCopy, % "img\Recognition ("poe_height "p)\GUI\" A_LoopField ".bmp", % "img\Recognition ("poe_height "p)\GUI\[search-strings] " A_LoopField ".bmp", 1
Else
{
FileMove, % "img\Recognition ("poe_height "p)\GUI\" A_LoopField ".bmp", % "img\Recognition ("poe_height "p)\GUI\[search-strings] " conversion_search ".bmp", 1
IniDelete, ini\screen checks (%poe_height%p).ini, % A_LoopField
}
}
Else continue
Loop, Parse, conversion_strings, `,, ()
{
If (A_LoopField = "")
continue
conversion_string := A_LoopField
IniRead, conversion_string1, ini\stash search.ini, % conversion_string, string 1, % A_Space
IniRead, conversion_string2, ini\stash search.ini, % conversion_string, string 2, % A_Space
If (conversion_string = "tracker_gems")
{
IniWrite, 1, ini\search-strings.ini, searches, hideout lilly
IniWrite, % "", ini\search-strings.ini, hideout lilly, last coordinates
IniWrite, % """" StrReplace(conversion_string1, ";", " " ";;;" " ") """", ini\search-strings.ini, hideout lilly, 00-exile leveling gems
continue
}
If conversion_string1 && !conversion_string2
IniWrite, % """" StrReplace(conversion_string1, ";", " " ";;;" " ") """", ini\search-strings.ini, % conversion_search, % StrReplace(conversion_string, "_", " ")
Else If conversion_string1 && conversion_string2
{
IniWrite, % """" StrReplace(conversion_string1, ";", " " ";;;" " ") """", ini\search-strings.ini, % conversion_search, % StrReplace(conversion_string, "_", " ") " 1"
IniWrite, % """" StrReplace(conversion_string2, ";", " " ";;;" " ") """", ini\search-strings.ini, % conversion_search, % StrReplace(conversion_string, "_", " ") " 2"
}
}
IniRead, conversion_check, ini\search-strings.ini, vendor,, % A_Space ;double-check the vendor searches after conversion in order to see if it's blank now because the gem-string was the only one to be converted
If !InStr(conversion_check, "`n")
{
IniDelete, ini\search-strings.ini, vendor
IniDelete, ini\search-strings.ini, searches, vendor
}
}
IniRead, conversion_coordinates, ini\screen checks (%poe_height%p).ini, bestiary, last coordinates, % A_Space
IniWrite, % conversion_coordinates, ini\search-strings.ini, beast crafting, last coordinates
IniDelete, ini\screen checks (%poe_height%p).ini, bestiary
FileMove, % "img\Recognition ("poe_height "p)\GUI\bestiary.bmp", % "img\Recognition ("poe_height "p)\GUI\[search-strings] beast crafting.bmp", 1
GoSub, Init_searchstrings
FileDelete, img\GUI\gwennen.jpg
FileDelete, img\GUI\bestiary.jpg
FileDelete, img\GUI\vendor.jpg
FileDelete, img\GUI\bestiary-dex.jpg
}
If (ini_version < 13002)
{
If FileExist("ini\map info.ini")
FileCopy, ini\map info.ini, ini\map info pre-1.30.2.ini, 1
IniDelete, ini\map info.ini, Version
IniDelete, ini\map info.ini, Settings, enable pixel-check
IniDelete, ini\map info.ini, Settings, transparency
IniDelete, ini\map info.ini, Settings, side
IniDelete, ini\map info.ini, Settings, short descriptions
IniDelete, ini\map info.ini, Settings, x-coordinate
IniDelete, ini\map info.ini, Settings, y-coordinate
Loop 99
IniDelete, ini\map info.ini, % (A_Index < 10) ? "00" A_Index : "0" A_Index
IniWrite, % "", ini\map info.ini, UI
IniWrite, % "", ini\map info.ini, last map ;create a section for a potential reload feature in case of hard crashes
}
If (ini_version < 13003)
{
IniWrite, % "", ini\leveling tracker.ini, current run, time
IniWrite, % "", ini\leveling tracker.ini, current run, name
Loop 10
IniWrite, % "", ini\leveling tracker.ini, current run, act %A_Index%
IniDelete, ini\screen checks (%poe_height%p).ini, sanctum
IniRead, conversion, ini\screen checks (%poe_height%p).ini
Loop, Parse, conversion, `n
{
If (A_LoopField = "")
continue
IniDelete, ini\screen checks (%poe_height%p).ini, % A_LoopField, disable
}
}
If (ini_version < 13004)
{
IniDelete, ini\timeless jewels.ini, Settings
Loop 5
IniDelete, ini\timeless jewels.ini, % (A_Index = 1) ? "favorites" : "favorites_" A_Index
}
If (ini_version < 13005)
{
IniRead, conversion, ini\config.ini, Settings, highlight-key, % A_Space
IniDelete, ini\config.ini, Settings, highlight-key
If conversion
{
IniWrite, 1, ini\hotkeys.ini, Settings, advanced item-info rebound
IniWrite, % conversion, ini\hotkeys.ini, Hotkeys, item-descriptions key
}
IniRead, conversion, ini\config.ini, Settings, omni-hotkey, % A_Space
IniDelete, ini\config.ini, Settings, omni-hotkey
If conversion
IniWrite, % conversion, ini\hotkeys.ini, Hotkeys, omni-hotkey
IniRead, conversion, ini\config.ini, Settings, omni-hotkey2, % A_Space
IniDelete, ini\config.ini, Settings, omni-hotkey2
If conversion
{
IniWrite, 1, ini\hotkeys.ini, Settings, c-key rebound
IniWrite, % conversion, ini\hotkeys.ini, Hotkeys, omni-hotkey2
}
}
IniWrite, 13005, ini\config.ini, Versions, ini-version ;1.24.1 = 12401, 1.24.10 = 12410, 1.24.1-hotfixX = 12401.X
If (ini_version < 13005)
{
Reload
ExitApp
Return
}
Return
Init_geforce:
IniRead, pixelsearch_variation, ini\geforce now.ini, Settings, pixel-check variation, 0
IniRead, imagesearch_variation, ini\geforce now.ini, Settings, image-check variation, 25
Return
Init_general:
IniRead, enable_startup_beep, ini\config.ini, Settings, beep, 0
IniRead, panel_xpos, ini\config.ini, UI, button xcoord, 0
IniRead, panel_ypos, ini\config.ini, UI, button ycoord, 0
IniRead, hide_panel, ini\config.ini, UI, hide panel, 0
IniRead, enable_notepad, ini\config.ini, Features, enable notepad, 0
IniRead, enable_alarm, ini\config.ini, Features, enable alarm, 0
IniRead, enable_pixelchecks, ini\config.ini, Settings, background pixel-checks, 1
IniRead, enable_browser_features, ini\config.ini, Settings, enable browser features, 1
IniRead, settings_enable_maptracker, ini\config.ini, Features, enable map tracker, 0
IniRead, enable_map_info, ini\config.ini, Features, enable map-info panel, 0
IniRead, game_version, ini\config.ini, Versions, game-version, 31800 ;3.17.4 = 31704, 3.17.10 = 31710
IniRead, fSize_offset, ini\config.ini, UI, font-offset, 0
fSize0 := fSize_config0 + fSize_offset
fSize1 := fSize_config1 + fSize_offset
IniRead, ultrawide_warning, ini\config.ini, Versions, ultrawide warning, 0
Return
Init_variables:
click := 1
trans := 230
write_test_running := 0
hwnd_win_hover := 0
hwnd_control_hover := 0
blocked_hotkeys := "!,^,+"
pixel_inventory_x1 := 0, pixel_inventory_x2 := 0, pixel_inventory_x3 := 6
pixel_inventory_y1 := 0, pixel_inventory_y2 := 6, pixel_inventory_y3 := 0
inventory := 0
imagesearch_variation := 15
pixelsearch_variation := 0
imagechecks_list := "skilltree,betrayal" ;sorted for better omni-key performance: image-checks with fixed coordinates are checked first, then dynamic ones
imagechecks_list_copy := imagechecks_list ",stash" ;will be sorted alphabetically for screen-checks section in the menu
Sort, imagechecks_list_copy, D`,
scrollboards := 0
lab_mode := 0, lab_checkpoint := 0
guilist := "LLK_panel|notepad_edit|notepad|notepad_sample|alarm|alarm_sample|mapinfo_panel|map_mods_toggle|betrayal_info|betrayal_info_overview|betrayal_search|betrayal_info_members|"
guilist .= "betrayal_prioview_transportation|betrayal_prioview_fortification|betrayal_prioview_research|betrayal_prioview_intervention|legion_window|legion_list|legion_treemap|legion_treemap2|notepad_drag|itemchecker|map_tracker|map_tracker_log|"
guilist .= "cheatsheet|settings_menu|"
buggy_resolutions := "768,1024,1050"
allowed_recomb_classes := "shield,sword,quiver,bow,claw,dagger,mace,ring,amulet,helmet,glove,boot,belt,wand,staves,axe,sceptre,body,sentinel"
delve_directions := "u,d,l,r,"
gear_tracker_limit := 6
gear_tracker_filter := 1
global affixes := [], affix_tiers := [], affix_levels := [], item_type
Loop 20
{
hwnd_itemchecker_panel%A_Index% := ""
hwnd_itemchecker_panel%A_Index%_text := ""
hwnd_itemchecker_panel%A_Index%_button := ""
itemchecker_panel%A_Index%_tooltip := ""
hwnd_itemchecker_implicit%A_Index% := ""
hwnd_itemchecker_implicit%A_Index%_text := ""
hwnd_itemchecker_implicit%A_Index%_button := ""
hwnd_itemchecker_implicit%A_Index%_button1 := ""
hwnd_itemchecker_tier%A_Index%_button := ""
hwnd_itemchecker_ilvl%A_Index%_button := ""
}
hwnd_itemchecker_cluster := ""
hwnd_itemchecker_cluster_text := ""
hwnd_itemchecker_cluster_button := ""
hwnd_itemchecker_cluster_button1 := ""
hwnd_pob_crop1 := ""
gear_mouse_over := 0
gear_slots := "mainhand,offhand,helmet,body,amulet,ring1,ring2,belt,gloves,boots"
leveling_guide_landmarks := "encampment entrance, as the waypoint, by entrances, pillars near the waypoint, touching the road, broken waypoint, petrified soldiers, opposite the waypoint, west wall"
leveling_guide_skilltree_active := 1, leveling_guide_valid_skilltree_files := 0, enable_omnikey_pob := 0, leveling_guide_screencap_caption := "", leveling_guide_valid_images := ""
LLK_FontSize(fSize0, font_height, font_width)
Return
#Include modules\item-checker.ahk
#Include modules\lab-info.ahk
#Include modules\seed-explorer.ahk
#Include modules\leveling tracker.ahk
Log_loop:
;function quick-jump: LLK_MapTrack(), LLK_MapTrackSave()
If !WinActive("ahk_group poe_ahk_window") || (poe_log_file = 0)
{
map_entered += 1000
Return
}
If !map_tracker_paused && (map_tracker_map != "")
{
If (map_tracker_refresh_kills = 1)
{
SetTimer, LLK_MapTrackKillStart, 10
/*
map_tracker_panel_color := (map_tracker_panel_color = "green") ? "black" : "green"
Gui, map_tracker: Color, % map_tracker_panel_color
WinSet, Redraw,, ahk_id %hwnd_map_tracker%
*/
}
Else If (map_tracker_refresh_kills = 2)
{
Gui, map_tracker: Color, Green
map_tracker_panel_color := "Green"
GuiControl, map_tracker: +BackgroundGreen, map_tracker_button_complete_bar
WinSet, Redraw,, ahk_id %hwnd_map_tracker%
map_tracker_refresh_kills := 3
}
If InStr(map_tracker_map, current_location) || ((map_tracker_enable_side_areas = 1) && (InStr(current_location, "abyssleague") || InStr(current_location, "labyrinth_trials") || InStr(current_location, "mapsidearea"))) ;advance map-timer only while in specific map (or side area within it)
map_tracker_ticks := A_TickCount - map_entered
If (InStr(map_tracker_map, current_location) || ((map_tracker_enable_side_areas = 1) && (InStr(current_location, "abyssleague") || InStr(current_location, "labyrinth_trials") || InStr(current_location, "mapsidearea")))) && WinExist("ahk_id " hwnd_map_tracker) ;update timer UI
{
If (map_tracker_refresh_kills = 3)
{
Gui, map_tracker: Color, Black
GuiControl, map_tracker: +BackgroundBlack, map_tracker_button_complete_bar
WinSet, Redraw,, ahk_id %hwnd_map_tracker%
map_tracker_refresh_kills := 0
}
map_tracker_time := Format("{:0.0f}", map_tracker_ticks//1000)
map_tracker_time := (Mod(map_tracker_time, 60) >= 10) ? map_tracker_time//60 ":" Mod(map_tracker_time, 60) : map_tracker_time//60 ":0" Mod(map_tracker_time, 60)
map_tracker_time := (StrLen(map_tracker_time) < 5) ? 0 map_tracker_time : map_tracker_time
GuiControl, map_tracker: text, map_tracker_label_time, % map_tracker_time
}
}
If map_tracker_paused
map_entered += 1000
poe_log_content := poe_log.Read() ;read newest lines from client.txt
StringLower, poe_log_content, poe_log_content
Loop, Parse, poe_log_content, `n, `r ;parse client.txt data
{
If InStr(A_Loopfield, "generating level")
{
If InStr(A_LoopField, "1_1_1") && WinExist("ahk_id " hwnd_alarm)
alarm_timestamp := A_Now
portal_modifier := InStr(current_location, "hideout") ? 1 : 0 ;only count portals when entering from hideout, not side-area (lab trial, abyss, etc.)
current_location := SubStr(A_Loopfield, InStr(A_Loopfield, "area """) + 6)
current_location := SubStr(current_location, 1, InStr(current_location, """") -1) ;save PoE-internal location name in var
in_lab := InStr(current_location, "labyrinth_") ? 1 : 0
current_area_tier := SubStr(A_LoopField, InStr(A_LoopField, "level ") + 6, InStr(A_LoopField, " area """) - InStr(A_LoopField, "level ") - 6) - 67
current_area_level := current_area_tier + 67
If (current_area_tier > 0)
current_area_tier := (current_area_tier < 10) ? 0 current_area_tier : current_area_tier ;save map-tier in var
current_seed := SubStr(A_LoopField, InStr(A_LoopField, "seed ") + 5)
current_seed := StrReplace(current_seed, "`n") ;save map seed in var
If !map_tracker_paused && settings_enable_maptracker
{
date_time := SubStr(A_LoopField, 1, InStr(A_LoopField, " ",,, 2) - 1) ;save date & time from client.txt
If (InStr(current_location, "abyssleague") || InStr(current_location, "labyrinth_trials") || InStr(current_location, "mapsidearea")) && (map_tracker_side_area = "" || map_tracker_side_area != current_location "|" current_area_tier "|" current_seed)
{
map_tracker_side_area := current_location "|" current_area_tier "|" current_seed
map_tracker_verbose_side_area := 0
}
If enable_killtracker && (map_tracker_map != "") && InStr(A_LoopField, """Hideout")
map_tracker_refresh_kills := 2
If LLK_MapTrackInstance(A_LoopField)
{
If (map_tracker_map = "") || (map_tracker_map != current_location "|" current_area_tier "|" current_seed) ;current area is the first since launch, or current area is different from previous one
{
If enable_killtracker
{
map_tracker_refresh_kills := 1
map_tracker_kills_start := 0
}
map_tracker_map := (map_tracker_map = "") ? current_location "|" current_area_tier "|" current_seed : map_tracker_map
If (map_tracker_map != current_location "|" current_area_tier "|" current_seed) ;current area is different from previous -> reset tracker, and save log for previous map
{
LLK_MapTrackSave()
map_tracker_map := current_location "|" current_area_tier "|" current_seed
}
map_tracker_content := "|"
current_location_verbose := ""
map_tracker_ticks := 0
portals := 0
map_tracker_deaths := 0
map_entered_date_time := date_time
}
portals += portal_modifier ;portal counter
map_entered := A_TickCount - map_tracker_ticks
}
}
}
If !in_lab && (lab_location_verbose != "")
{
lab_location_verbose := ""