-
Notifications
You must be signed in to change notification settings - Fork 0
/
WC3 RPG Loader.ahk
5473 lines (5233 loc) · 323 KB
/
WC3 RPG Loader.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
#SingleInstance force
SetTitleMatchMode, 2
#NoEnv
#MaxThreadsPerHotkey 2
FileEncoding UTF-8
SetKeyDelay, 50
;=============== GLOBAL VAR ==================
Global currentversion := "3.2"
Global URLDownloadUpdaterAHK := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/AutoUpdater.ahk"
Global URLDownloadUpdaterEXE := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/AutoUpdater.exe"
Global URLDownloadAHK := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/WC3 RPG Loader.ahk"
Global URLDownloadEXE := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/WC3 RPG Loader.exe"
Global URLDownloadTrayIcon := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/WC3 RPG Loader.ico"
SplitPath, A_ScriptName, OutFileName, OutDir, Extension, OutNameNoExt, OutDrive
Global URLCurrentLoader := A_ScriptDir . "\" . OutNameNoExt
Global URLCurrentUpdaterAHK := A_ScriptDir . "\AutoUpdater.ahk"
Global URLCurrentUpdaterEXE := A_ScriptDir . "\AutoUpdater.exe"
Global URLDownloadHoop := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/Color/Hoop.png"
Global URLDownloadColor := "https://github.com/wawawawawawawa/WC3_Loader/raw/master/Color/"
Global ININame := BuildIniName()
Global TrayIcon := "0"
Global switch := "1"
Global AFKTimerOn := "0"
Global GuiList := ["Main", "Gaia", "HM", "HMStat", "TBR13", "TBR13Stat", "TBR13Pet", "TBR21", "TBR21Stat", "TEVE", "TEVEStat", "GOH", "GOHStat", "GOHSkills", "GOHPet", "TKOK", "TKOKStat", "TW", "TWStat", "HOK", "HOKStat", "Update", "CP"]
RegRead, AHKInstallPath, HKLM, SOFTWARE\AutoHotkey, InstallDir ; AHK Installation Path
;=============== INI FILE ====================
ifNotExist, %A_ScriptDir%\%ININame%
{
NoPath=
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, HMPath
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, GaiaPath
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, TBR13Path
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, TBR21Path
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, TEVEPath
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, GOHPath
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, TKOKPath
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, TWPath
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Settings, HOKPath
IniWrite, 1, %A_ScriptDir%\%ININame%, Loader, RetrieveContent
IniWrite, 1, %A_ScriptDir%\%ININame%, Loader, CheckUpdates
IniWrite, 1, %A_ScriptDir%\%ININame%, Loader, AOT
IniWrite, Default, %A_ScriptDir%\%ININame%, Loader, GUIColor
IniWrite, 0, %A_ScriptDir%\%ININame%, Loader, TrayOption
IniWrite, 0, %A_ScriptDir%\%ININame%, Settings, SaveOption
IniWrite, %NoPath%, %A_ScriptDir%\%ININame%, Loader, WC3Path
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, HMSort
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, TBR21Sort
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, TEVESort
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, GOHSort
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, TKOKSort
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, TWSort
IniWrite, Level, %A_ScriptDir%\%ININame%, Settings, HOKSort
}
IniRead, HMBuddyPath, %A_ScriptDir%\%ININame%, Settings, HMPath
IniRead, GaiaBuddyPath, %A_ScriptDir%\%ININame%, Settings, GaiaPath
IniRead, TBR13BuddyPath, %A_ScriptDir%\%ININame%, Settings, TBR13Path
IniRead, TBR21BuddyPath, %A_ScriptDir%\%ININame%, Settings, TBR21Path
IniRead, TEVEBuddyPath, %A_ScriptDir%\%ININame%, Settings, TEVEPath
IniRead, GOHBuddyPath, %A_ScriptDir%\%ININame%, Settings, GOHPath
IniRead, TKOKBuddyPath, %A_ScriptDir%\%ININame%, Settings, TKOKPath
IniRead, TWBuddyPath, %A_ScriptDir%\%ININame%, Settings, TWPath
IniRead, HOKBuddyPath, %A_ScriptDir%\%ININame%, Settings, HOKPath
IniRead, RetrieveContent, %A_ScriptDir%\%ININame%, Loader, RetrieveContent, 1
IniRead, CheckUpdates, %A_ScriptDir%\%ININame%, Loader, CheckUpdates, 1
IniRead, AOT, %A_ScriptDir%\%ININame%, Loader, AOT, 1
IniRead, GUIColor, %A_ScriptDir%\%ININame%, Loader, GUIColor, Default
IniRead, TrayOption, %A_ScriptDir%\%ININame%, Loader, TrayOption, 0
IniRead, WC3Path, %A_ScriptDir%\%ININame%, Loader, WC3Path
IniRead, SaveOption, %A_ScriptDir%\%ININame%, Settings, SaveOption, 0
IniRead, HMSortVar, %A_ScriptDir%\%ININame%, Settings, HMSort
IniRead, TBR21SortVar, %A_ScriptDir%\%ININame%, Settings, TBR21Sort
IniRead, TEVESortVar, %A_ScriptDir%\%ININame%, Settings, TEVESort
IniRead, GOHSortVar, %A_ScriptDir%\%ININame%, Settings, GOHSort
IniRead, TKOKSortVar, %A_ScriptDir%\%ININame%, Settings, TKOKSort
IniRead, TWSortVar, %A_ScriptDir%\%ININame%, Settings, TWSort
IniRead, HOKSortVar, %A_ScriptDir%\%ININame%, Settings, HOKSort
IniRead, Xaction, %A_ScriptDir%\%ININame%, Settings, Xaction
IniRead, BindEnable, %A_ScriptDir%\%ININame%, Settings, BindEnable, 0
IniRead, GOHLoadSkillList, %A_ScriptDir%\%ININame%, GOHSkills, GOHLoadSkillList, %A_Space%
IniRead, GOHC1, %A_ScriptDir%\%ININame%, Settings, GOHC1
IniRead, GOHC2, %A_ScriptDir%\%ININame%, Settings, GOHC2
IniRead, GOHC3, %A_ScriptDir%\%ININame%, Settings, GOHC3
IniRead, GOHC4, %A_ScriptDir%\%ININame%, Settings, GOHC4
IniRead, GOHC5, %A_ScriptDir%\%ININame%, Settings, GOHC5
IniRead, GOHC6, %A_ScriptDir%\%ININame%, Settings, GOHC6
IniRead, HMC1, %A_ScriptDir%\%ININame%, Settings, HMC1
IniRead, HMC2, %A_ScriptDir%\%ININame%, Settings, HMC2
IniRead, HMC3, %A_ScriptDir%\%ININame%, Settings, HMC3
IniRead, HMC4, %A_ScriptDir%\%ININame%, Settings, HMC4
IniRead, HMC5, %A_ScriptDir%\%ININame%, Settings, HMC5
IniRead, HOKC1, %A_ScriptDir%\%ININame%, Settings, HOKC1
IniRead, TKOKC1, %A_ScriptDir%\%ININame%, Settings, TKOKC1
IniRead, Refresh, %A_ScriptDir%\%ININame%, Settings, Refresh
SetWorkingDir, %A_ScriptDir%
If FileExist("WC3 RPG Loader.ico")
{
Menu, Tray, Icon , WC3 RPG Loader.ico
TrayIcon := "1"
}
;////////////////////////////////////////// GUI //////////////////////////////////////////////////////////////////
;=============== MAIN GUI ====================
Gui 99:+LabelMainBuddy
Gui, MainBuddy:Font, cBlack s12
Gui, MainBuddy:Add, Tab3, vMainTab, Loader|Backup|Settings|Commands
Gui, MainBuddy:Tab, 1
Gui, MainBuddy:Add, GroupBox, section h180 w265, Loader :
Gui, MainBuddy:Font,
Gui, MainBuddy:Add, Button, xp10 yp25 w120 gGUIGaia, Gaia Loader
Gui, MainBuddy:Add, Button, xp125 w120 gGUIHM, HM Loader
Gui, MainBuddy:Add, Button, xp-125 yp30 w120 gGUITBR13, TBR 1.38 Loader
Gui, MainBuddy:Add, Button, xp125 w120 gGUITBR21, TBR 2.1 Loader
Gui, MainBuddy:Add, Button, xp-125 yp30 w120 gGUITEVE, TeveF Loader
Gui, MainBuddy:Add, Button, xp125 w120 gGUIGOH, GoH Loader
Gui, MainBuddy:Add, Button, xp-125 yp30 w120 gGUITKOK, TKoK Loader
Gui, MainBuddy:Add, Button, xp125 w120 gGUITW, TW Loader
Gui, MainBuddy:Add, Button, xp-125 yp30 w120 gGUIHOK, HoK Loader
Gui, MainBuddy:Tab, 2
Gui, MainBuddy:Font, cBlack s12
Gui, MainBuddy:Add, GroupBox, section h180 w265, Backup :
Gui, MainBuddy:Font,
Gui, MainBuddy:Add, Button, xp10 yp25 w120 gCreateBackup, Create Backup
Gui, MainBuddy:Add, Button, xp125 w120 gRestoreBackup, Restore Backup
Gui, MainBuddy:Tab, 3
Gui, MainBuddy:Font, cBlack s12
Gui, MainBuddy:Add, GroupBox, section h180 w265, Settings :
Gui, MainBuddy:Font,
Gui, MainBuddy:Add, CheckBox, xp10 yp25 vGetContentBox gContentSetting Checked%RetrieveContent%, Allow Retrieve Content (Char Information Panel)
Gui, MainBuddy:Add, CheckBox, yp15 vCheckUpdatesBox gUpdateSetting Checked%CheckUpdates%, Check for updates on launch
Gui, MainBuddy:Add, CheckBox, yp15 vAOTBox gAOTSetting Checked%AOT%, Always On Top
Gui, MainBuddy:Add, CheckBox, yp15 vCheckTrayBox gTraySetting Checked%TrayOption%, Launch Wc3 (Taskbar) :
Gui, MainBuddy:Add, Button, x+3 yp-2 h17 w100 vSetPathButton gSetWC3Path Checked%TrayOption%, Set WC3 Path
Gui, MainBuddy:Add, Text, xs+10 yp23 , GUI Theme :
Gui, MainBuddy:Add, Button, x+3 yp-2 h17 gChangeColor vColorChoice, Choose Color
Gui, MainBuddy:Add, Text, xs+10 yp23, X button action :
Gui, MainBuddy:Add, DropDownList, w80 x+3 yp-2 gCheckBoxOptions vXaction hwndhcbx Choose%Xaction% AltSubmit, Hide GUI|Close Script
Gui, MainBuddy:Tab, 4
Gui, MainBuddy:Font, cBlack s12
Gui, MainBuddy:Add, GroupBox, section h180 w265, Commands :
Gui, MainBuddy:Font,
Gui, MainBuddy:Add, CheckBox, xp10 yp25 vRefresh Checked%Refresh% gCheckBoxOptions, !refresh : !closeall then !openall
Gui, MainBuddy:Add, Button, h20 w70 xp175 yp-5 vBindRefresh gBindFunction, Set Bind
Gui, MainBuddy:Add, CheckBox, yp25 xp-175 vSaveOption Checked%SaveOption% gCheckBoxOptions, -save : -clear afterwards
Gui, MainBuddy:Add, Button, xp175 h20 w70 vBindSave gBindFunction, Set Bind
Gui, MainBuddy:Add, CheckBox, xp-175 yp20 vBindEnable Checked%BindEnable% gCheckBoxOptions, Enable Binds at startup
Gui, MainBuddy:Add, Button, yp20 h20 w80 vAFKButton gAFKTimer, Start AutoSave
Gui, MainBuddy:Tab,
Gui, MainBuddy:Add, Button, xs-10 yp240 gUpdate, Check for updates
Gui, MainBuddy:Add, Link, xp180 yp5, Created by <a href="https://github.com/wawawawawawawa/WC3_Loader">Wawawa</a>
MainGUI = 1
CurrentGUI = Main
;=============== UPDATE GUI ====================
Gui 98:+LabelUpdateBuddy
Gui, UpdateBuddy:Font, cBlue bold s10
Gui, UpdateBuddy:Add, GroupBox, w220 h110 section, Version Information :
Gui, UpdateBuddy:Font,
Gui, UpdateBuddy:Add, Text, xp10 yp25, Current Version :
Gui, UpdateBuddy:Font, bold
Gui, UpdateBuddy:Add, Text, xp90, %currentversion%
Gui, UpdateBuddy:Font,
Gui, UpdateBuddy:Add, Text, yp25 xp-90, Latest Version :
Gui, UpdateBuddy:Font, bold
Gui, UpdateBuddy:Add, Text, xp90 vLoaderLastVer, Not Updated
Gui, UpdateBuddy:Font,
Gui, UpdateBuddy:Add, Button, gManualDownload xs+10 yp25 , Manual Download
Gui, UpdateBuddy:Add, Button, gAutoUpdate x+15 vGreyedButton, Automatic Install
Gui, UpdateBuddy:Add, Button, xs yp40 w50 h30 gBack, Back
Gui, UpdateBuddy:Add, Button, xp158 h30 gChangelog, Changelog
;=============== Bind Help ==================
Gui 6d:+LabelBindHelpBuddy
Gui, BindHelpBuddy:Add, Link,, Classic modifiers are :`n^ => CTRL`n+ => Shift`n! => Alt`nExemple: ^h will be ctrl+h`nCheck the link below for additional syntax`n<a href="https://www.autohotkey.com/docs/KeyList.htm">https://www.autohotkey.com/docs/KeyList.htm</a>
Gui, BindHelpBuddy:Show, Hide
;=============== GAIA GUI ====================
Gui 1:+LabelGaiaBuddy
Gui, GaiaBuddy:Add, DropDownList, x5 y5 w120 vThiefchoice AltSubmit, |Thief
Gui, GaiaBuddy:Add, Button, x125 y4 w10 vThiefgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y5 w120 vBardchoice AltSubmit, |Bard
Gui, GaiaBuddy:Add, Button, x280 y4 w10 vBardgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x315 y5 w120 vAssassinchoice AltSubmit, |Assassin
Gui, GaiaBuddy:Add, Button, x435 y4 w10 vAssassingo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x5 y35 w120 vClericchoice AltSubmit, |Cleric
Gui, GaiaBuddy:Add, Button, x125 y34 w10 vClericgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y35 w120 vBishopchoice AltSubmit, |Bishop
Gui, GaiaBuddy:Add, Button, x280 y34 w10 vBishopgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x315 y35 w120 vMonkchoice AltSubmit, |Monk
Gui, GaiaBuddy:Add, Button, x435 y34 w10 vMonkgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x5 y65 w120 vMagicianchoice AltSubmit, |Magician
Gui, GaiaBuddy:Add, Button, x125 y64 w10 vMagiciango gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y65 w120 vSorcererchoice AltSubmit, |Sorcerer
Gui, GaiaBuddy:Add, Button, x280 y64 w10 vSorcerergo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x315 y65 w120 vNecromancerchoice AltSubmit, |Necromancer
Gui, GaiaBuddy:Add, Button, x435 y64 w10 vNecromancergo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x5 y95 w120 vSquirechoice AltSubmit, |Squire
Gui, GaiaBuddy:Add, Button, x125 y94 w10 vSquirego gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y95 w120 vCrusaderchoice AltSubmit, |Crusader
Gui, GaiaBuddy:Add, Button, x280 y94 w10 vCrusadergo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x315 y95 w120 vBerserkerchoice AltSubmit, |Berserker
Gui, GaiaBuddy:Add, Button, x435 y94 w10 vBerserkergo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x5 y125 w120 vRangerchoice AltSubmit, |Ranger
Gui, GaiaBuddy:Add, Button, x125 y124 w10 vRangergo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y125 w120 vDruidchoice AltSubmit, |Druid
Gui, GaiaBuddy:Add, Button, x280 y124 w10 vDruidgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x315 y125 w120 vHunterchoice AltSubmit, |Hunter
Gui, GaiaBuddy:Add, Button, x435 y124 w10 vHuntergo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x5 y155 w120 vMysticchoice AltSubmit, |Mystic
Gui, GaiaBuddy:Add, Button, x125 y154 w10 vMysticgo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y155 w120 vPsionchoice AltSubmit, |Psion
Gui, GaiaBuddy:Add, Button, x280 y154 w10 vPsiongo gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x315 y155 w120 vHexbladechoice AltSubmit, |Hexblade
Gui, GaiaBuddy:Add, Button, x435 y154 w10 vHexbladego gLoadGaia, Go
Gui, GaiaBuddy:Add, DropDownList, x160 y185 w120 vValkyriechoice AltSubmit, |Valkyrie
Gui, GaiaBuddy:Add, Button, x280 y184 w10 vValkyriego gLoadGaia, Go
Gui, GaiaBuddy:Add, Button, x5 y215 w50 h40 gBack, Back
Gui, GaiaBuddy:Add, Button, x140 y215 w130 h40 gGaiaRefresh, Refresh
Gui, GaiaBuddy:Add, Button, x330 y215 w130 h40 gLoadGaiaVault, Vault
Gui, GaiaBuddy:Add, Button, x5 y265 h40 gChangeGaiaPath, Change Save Folder
Gui, GaiaBuddy:Add, Edit, x155 y265 w300 h40 vGaiaPathText ReadOnly, %GaiaBuddyPath%
Gui, GaiaBuddy:Show, Hide Center, Gaia Buddy (Press CTRL + F1 to Show/Hide)
GaiaGUI = 0
;=============== HM GUI ====================
Gui 2:+LabelHMBuddy
Gui, HMBuddy:Add, Text, x40 y5, Class Selection :
Gui, HMBuddy:Add, Text, x205 y5, Characters Available :
Gui, HMBuddy:Add, Text, x500 y5, Character Information :
Gui, HMBuddy:Add, ListBox, x5 y20 w150 h300 vhmclasschoice gHMChoice ,
Gui, HMBuddy:Add, ListBox, x160 y20 w200 h300 vhmclasslist gHMCharChoice AltSubmit,
Gui, HMBuddy:Add, ListBox, x365 y20 w400 h300 vhmclassinfo gHMStatChoice AltSubmit,
Gui, HMBuddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, HMBuddy:Add, Button, x275 y320 w130 h40 gHMRefresh, Refresh
Gui, HMBuddy:Add, Button, x410 y320 w130 h40 vHMSortChoice gHMSort, Sorting : %HMSortVar%
Gui, HMBuddy:Add, Button, x630 y320 w130 h40 gLoadHM, Load
Gui, HMBuddy:Add, Button, x5 y370 h40 gChangeHMPath, Change Save Folder
Gui, HMBuddy:Add, Edit, x155 y370 w300 h40 vHMPathText ReadOnly, %HMBuddyPath%
Gui, HMBuddy:Add, Checkbox, x460 y370 vHMC1 Checked%HMC1% gCheckBoxOptions, -cam 180
Gui, HMBuddy:Add, Checkbox, x460 y385 vHMC2 Checked%HMC2% gCheckBoxOptions, -c
Gui, HMBuddy:Add, Checkbox, x460 y400 vHMC3 Checked%HMC3% gCheckBoxOptions, -b
Gui, HMBuddy:Add, Checkbox, x560 y370 vHMC4 Checked%HMC4% gCheckBoxOptions, -a
Gui, HMBuddy:Add, Checkbox, x560 y385 vHMC5 Checked%HMC5% gCheckBoxOptions, -e
Gui, HMBuddy:Show, Hide Center, HM Buddy (Press CTRL + F1 to Show/Hide)
HMGUI = 0
Gui 2a:+LabelHMStatBuddy
Gui, HMStatBuddy:Add, Edit, vHMdata ReadOnly w600,
Gui, HMStatBuddy:Show, Hide Center, Retrieve content
;=============== TBR GUI 1.38 ====================
Gui 3:+LabelTBR13Buddy
Gui, TBR13Buddy:Add, Text, x40 y5, Class Selection :
Gui, TBR13Buddy:Add, Text, x300 y5, Character Information :
Gui, TBR13Buddy:Add, ListBox, x5 y20 w150 h300 vtbr13classchoice gTBR13Choice AltSubmit,
Gui, TBR13Buddy:Add, ListBox, x160 y20 w400 h300 vtbr13classinfo gTBR13StatChoice AltSubmit,
Gui, TBR13Buddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, TBR13Buddy:Add, Button, xp60 y320 w50 h40 gGUITBR13Pet, Pet
Gui, TBR13Buddy:Add, Button, x159 y320 w130 h40 gTBR13Refresh, Refresh
Gui, TBR13Buddy:Add, Button, x431 y320 w130 h40 gLoadTBR13, Load
Gui, TBR13Buddy:Add, Button, x5 y370 h40 gChangeTBR13Path, Change Save Folder
Gui, TBR13Buddy:Add, Edit, x155 y370 w300 h40 vTBR13PathText ReadOnly, %TBR13BuddyPath%
Gui, TBR13Buddy:Show, Hide Center, TBR 1.38 Buddy (Press CTRL + F1 to Show/Hide)
TBR13GUI = 0
Gui 3a:+LabelTBR13StatBuddy
Gui, TBR13StatBuddy:Add, Edit, vTBR13data ReadOnly w600,
Gui, TBR13StatBuddy:Show, Hide Center, Retrieve content
Gui 3b:+LabelTBR13PetBuddy
Gui, TBR13PetBuddy:Add, Text, y10 x10, Choose your binds for each slot
Gui, TBR13PetBuddy:Add, Button, yp30 x10 w60 h40 vTBR137 gBindFunction, Set Bind Slot 7
Gui, TBR13PetBuddy:Add, Button, xp65 w60 h40 vTBR138 gBindFunction, Set Bind Slot 8
Gui, TBR13PetBuddy:Add, Button, yp45 x10 w60 h40 vTBR134 gBindFunction, Set Bind Slot 4
Gui, TBR13PetBuddy:Add, Button, xp65 w60 h40 vTBR135 gBindFunction, Set Bind Slot 5
Gui, TBR13PetBuddy:Add, Button, yp45 x10 w60 h40 vTBR131 gBindFunction, Set Bind Slot 1
Gui, TBR13PetBuddy:Add, Button, xp65 w60 h40 vTBR132 gBindFunction, Set Bind Slot 2
Gui, TBR13PetBuddy:Add, Button, xp100 w50 h40 gTBR13Back, Back
Gui, TBR13PetBuddy:Add, Button, y92 xp5 gGOHHelp, Help
Gui, TBR13PetBuddy:Show, Hide Center, Skills Selection
;=============== TBR GUI 2.1 ====================
Gui 4:+LabelTBR21Buddy
Gui, TBR21Buddy:Add, Text, x40 y5, Class Selection :
Gui, TBR21Buddy:Add, Text, x205 y5, Characters Available :
Gui, TBR21Buddy:Add, Text, x500 y5, Character Information :
Gui, TBR21Buddy:Add, ListBox, x5 y20 w150 h300 vtbr21classchoice gTBR21Choice ,
Gui, TBR21Buddy:Add, ListBox, x160 y20 w200 h300 vtbr21classlist gTBR21CharChoice AltSubmit,
Gui, TBR21Buddy:Add, ListBox, x365 y20 w400 h300 vtbr21classinfo gTBR21StatChoice AltSubmit,
Gui, TBR21Buddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, TBR21Buddy:Add, Button, x275 y320 w130 h40 gTBR21Refresh, Refresh
Gui, TBR21Buddy:Add, Button, x410 y320 w130 h40 vTBR21SortChoice gTBR21Sort, Sorting : %TBR21SortVar%
Gui, TBR21Buddy:Add, Button, x636 y320 w130 h40 gLoadTBR21, Load
Gui, TBR21Buddy:Add, Button, x5 y370 h40 gChangeTBR21Path, Change Save Folder
Gui, TBR21Buddy:Add, Edit, x155 y370 w300 h40 vTBR21PathText ReadOnly, %TBR21BuddyPath%
Gui, TBR21Buddy:Show, Hide Center, TBR 2.1 Buddy (Press CTRL + F1 to Show/Hide)
TBR21GUI = 0
Gui 4a:+LabelTBR21StatBuddy
Gui, TBR21StatBuddy:Add, Edit, vTBR21data ReadOnly w600,
Gui, TBR21StatBuddy:Show, Hide Center, Retrieve content
;=============== TEVE GUI ====================
Gui 5:+LabelTEVEBuddy
Gui, TEVEBuddy:Add, Text, x40 y5, Class Selection :
Gui, TEVEBuddy:Add, Text, x205 y5, Characters Available :
Gui, TEVEBuddy:Add, Text, x500 y5, Character Information :
Gui, TEVEBuddy:Add, ListBox, x5 y20 w150 h300 vteveclasschoice gTEVEChoice ,
Gui, TEVEBuddy:Add, ListBox, x160 y20 w200 h300 vteveclasslist gTEVECharChoice AltSubmit,
Gui, TEVEBuddy:Add, ListBox, x365 y20 w400 h300 vteveclassinfo gTEVEStatChoice AltSubmit,
Gui, TEVEBuddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, TEVEBuddy:Add, Button, x275 y320 w130 h40 gTEVERefresh, Refresh
Gui, TEVEBuddy:Add, Button, x410 y320 w130 h40 vTEVESortChoice gTEVESort, Sorting : %TEVESortVar%
Gui, TEVEBuddy:Add, Button, x636 y320 w130 h40 gLoadTEVE, Load
Gui, TEVEBuddy:Add, Button, x5 y370 h40 gChangeTEVEPath, Change Save Folder
Gui, TEVEBuddy:Add, Edit, x155 y370 w300 h40 vTEVEPathText ReadOnly, %TEVEBuddyPath%
Gui, TEVEBuddy:Show, Hide Center, TeveF Buddy (Press CTRL + F1 to Show/Hide)
TEVEGUI = 0
Gui 5a:+LabelTEVEStatBuddy
Gui, TEVEStatBuddy:Add, Edit, vTEVEdata ReadOnly w600,
Gui, TEVEStatBuddy:Show, Hide Center, Retrieve content
;=============== GOH GUI ====================
Gui 6:+LabelGOHBuddy
Gui, GOHBuddy:Add, Text, x40 y5, Class Selection :
Gui, GOHBuddy:Add, Text, x205 y5, Characters Available :
Gui, GOHBuddy:Add, Text, x500 y5, Character Information :
Gui, GOHBuddy:Add, ListBox, x5 y20 w150 h300 vGOHclasschoice gGOHChoice ,
Gui, GOHBuddy:Add, ListBox, x160 y20 w200 h300 vgohclasslist gGOHCharChoice AltSubmit,
Gui, GOHBuddy:Add, ListBox, x365 y20 w400 h300 vgohclassinfo gGOHStatChoice AltSubmit,
Gui, GOHBuddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, GOHBuddy:Add, Button, x60 y320 w50 h40 gGUIGOHSkills, Skills
Gui, GOHBuddy:Add, Button, x115 y320 w50 h40 gGUIGOHPet, Pet
Gui, GOHBuddy:Add, Button, x275 y320 w130 h40 gGOHRefresh, Refresh
Gui, GOHBuddy:Add, Button, x410 y320 w130 h40 vGOHSortChoice gGOHSort, Sorting : %GOHSortVar%
Gui, GOHBuddy:Add, Button, x636 y320 w130 h40 gLoadGOH, Load
Gui, GOHBuddy:Add, Button, x5 y370 h40 gChangeGOHPath, Change Save Folder
Gui, GOHBuddy:Add, Edit, x155 y370 w300 h40 vGOHPathText ReadOnly, %GOHBuddyPath%
Gui, GOHBuddy:Add, Checkbox, x460 y370 vGOHC1 Checked%GOHC1% gCheckBoxOptions, -new
Gui, GOHBuddy:Add, Checkbox, x460 y385 vGOHC2 Checked%GOHC2% gCheckBoxOptions, -autoselect off
Gui, GOHBuddy:Add, Checkbox, x460 y400 vGOHC3 Checked%GOHC3% gCheckBoxOptions, -farcam on
Gui, GOHBuddy:Add, Checkbox, x560 y370 vGOHC4 Checked%GOHC4% gCheckBoxOptions, -questmessages off
Gui, GOHBuddy:Add, Checkbox, x560 y385 vGOHC5 Checked%GOHC5% gCheckBoxOptions, -clear
Gui, GOHBuddy:Add, Checkbox, x560 y400 vGOHC6 Checked%GOHC6% gCheckBoxOptions, Pet as 9 on load
Gui, GOHBuddy:Show, Hide Center, GoH Buddy (Press CTRL + F1 to Show/Hide)
GOHGUI = 0
Gui 6a:+LabelGOHStatBuddy
Gui, GOHStatBuddy:Add, Edit, vGOHdata ReadOnly w600,
Gui, GOHStatBuddy:Show, Hide Center, Retrieve content
Gui 6b:+LabelGOHSkillsBuddy
Gui, GOHSkillsBuddy:Add, Text, yp10, Q :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS1 Range0-10 ToolTip NoTicks, %GOHS1%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, W :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS2 Range0-10 ToolTip NoTicks, %GOHS2%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, E :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS3 Range0-10 ToolTip NoTicks, %GOHS3%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, R :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS4 Range0-10 ToolTip NoTicks, %GOHS4%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, A :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS5 Range0-10 ToolTip NoTicks, %GOHS5%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, S :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS6 Range0-10 ToolTip NoTicks, %GOHS6%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, D :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS7 Range0-10 ToolTip NoTicks, %GOHS7%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, F :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS8 Range0-10 ToolTip NoTicks, %GOHS8%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, Y :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS9 Range0-10 ToolTip NoTicks, %GOHS9%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, X :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS10 Range0-10 ToolTip NoTicks, %GOHS10%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, C :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS11 Range0-10 ToolTip NoTicks, %GOHS11%
Gui, GOHSkillsBuddy:Add, Text, xp-20 yp30, V :
Gui, GOHSkillsBuddy:Add, Slider, xp20 yp-3 vGOHS12 Range0-10 ToolTip NoTicks, %GOHS12%
Gui, GOHSkillsBuddy:Add, Button, y10 x150 w50 h40 gGOHSaveSkills, Save
Gui, GOHSkillsBuddy:Add, Button, y10 x220 w50 h40 gGOHDeleteSkillSet, Delete
Gui, GOHSkillsBuddy:Add, ListBox, y55 x150 h230 vGOHLoadSkills gGOHShowLoadSkill, %GOHLoadSkillList%
Gui, GOHSkillsBuddy:Add, Button, y285 x150 w50 h40 gGOHSkills, Put Skills
Gui, GOHSkillsBuddy:Add, Button, y285 x220 w50 h40 gGOHBack, Back
Gui, GOHSkillsBuddy:Show, Hide Center, Skills Selection
Gui 6c:+LabelGOHPetBuddy
Gui, GOHPetBuddy:Add, Text, y10 x10, Choose your binds for each slot
Gui, GOHPetBuddy:Add, Button, yp30 x10 w60 h40 vGOH7 gBindFunction, Set Bind Slot 7
Gui, GOHPetBuddy:Add, Button, xp65 w60 h40 vGOH8 gBindFunction, Set Bind Slot 8
Gui, GOHPetBuddy:Add, Button, yp45 x10 w60 h40 vGOH4 gBindFunction, Set Bind Slot 4
Gui, GOHPetBuddy:Add, Button, xp65 w60 h40 vGOH5 gBindFunction, Set Bind Slot 5
Gui, GOHPetBuddy:Add, Button, yp45 x10 w60 h40 vGOH1 gBindFunction, Set Bind Slot 1
Gui, GOHPetBuddy:Add, Button, xp65 w60 h40 vGOH2 gBindFunction, Set Bind Slot 2
Gui, GOHPetBuddy:Add, Text, yp45 x10, Enter your current pet bind (default 9)
Gui, GOHPetBuddy:Add, Button, yp30 x10 w50 h40 gGOHPetBind, Pet Bind
Gui, GOHPetBuddy:Add, Button, xp120 w50 h40 gGOHBack, Back
Gui, GOHPetBuddy:Add, Button, x145 y92 gGOHHelp, Help
Gui, GOHPetBuddy:Show, Hide Center, Skills Selection
;=============== TKOK GUI ====================
Gui 7:+LabelTKOKBuddy
Gui, TKOKBuddy:Add, Text, x40 y5, Class Selection :
Gui, TKOKBuddy:Add, Text, x205 y5, Characters Available :
Gui, TKOKBuddy:Add, Text, x500 y5, Character Information :
Gui, TKOKBuddy:Add, ListBox, x5 y20 w150 h300 vTKOKclasschoice gTKOKChoice ,
Gui, TKOKBuddy:Add, ListBox, x160 y20 w200 h300 vTKOKclasslist gTKOKCharChoice AltSubmit,
Gui, TKOKBuddy:Add, ListBox, x365 y20 w400 h300 vTKOKclassinfo gTKOKStatChoice AltSubmit,
Gui, TKOKBuddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, TKOKBuddy:Add, Button, x275 y320 w130 h40 gTKOKRefresh, Refresh
Gui, TKOKBuddy:Add, Button, x410 y320 w130 h40 vTKOKSortChoice gTKOKSort, Sorting : %TKOKSortVar%
Gui, TKOKBuddy:Add, Button, x636 y320 w130 h40 gLoadTKOK, Load
Gui, TKOKBuddy:Add, Button, x5 y370 h40 gChangeTKOKPath, Change Save Folder
Gui, TKOKBuddy:Add, Edit, x155 y370 w300 h40 vTKOKPathText ReadOnly, %TKOKBuddyPath%
Gui, TKOKBuddy:Add, Checkbox, x460 y370 vTKOKC1 Checked%TKOKC1% gCheckBoxOptions, -loadwith
Gui, TKOKBuddy:Show, Hide Center, TKOK Buddy (Press CTRL + F1 to Show/Hide)
TKOKGUI = 0
Gui 7a:+LabelTKOKStatBuddy
Gui, TKOKStatBuddy:Add, Edit, vTKOKdata ReadOnly w600,
Gui, TKOKStatBuddy:Show, Hide Center, Retrieve content
;=============== TW GUI ====================
Gui 7:+LabelTWBuddy
Gui, TWBuddy:Add, Text, x40 y5, Class Selection :
Gui, TWBuddy:Add, Text, x205 y5, Characters Available :
Gui, TWBuddy:Add, Text, x500 y5, Character Information :
Gui, TWBuddy:Add, ListBox, x5 y20 w150 h300 vTWclasschoice gTWChoice ,
Gui, TWBuddy:Add, ListBox, x160 y20 w200 h300 vTWclasslist gTWCharChoice AltSubmit,
Gui, TWBuddy:Add, ListBox, x365 y20 w400 h300 vTWclassinfo gTWStatChoice AltSubmit,
Gui, TWBuddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, TWBuddy:Add, Button, x275 y320 w130 h40 gTWRefresh, Refresh
Gui, TWBuddy:Add, Button, x410 y320 w130 h40 vTWSortChoice gTWSort, Sorting : %TWSortVar%
Gui, TWBuddy:Add, Button, x636 y320 w130 h40 gLoadTW, Load
Gui, TWBuddy:Add, Button, x5 y370 h40 gChangeTWPath, Change Save Folder
Gui, TWBuddy:Add, Edit, x155 y370 w300 h40 vTWPathText ReadOnly, %TWBuddyPath%
Gui, TWBuddy:Show, Hide Center, TW Buddy (Press CTRL + F1 to Show/Hide)
TWGUI = 0
Gui 7a:+LabelTWStatBuddy
Gui, TWStatBuddy:Add, Edit, vTWdata ReadOnly w600,
Gui, TWStatBuddy:Show, Hide Center, Retrieve content
;=============== HOK GUI ====================
Gui 8:+LabelHOKBuddy
Gui, HOKBuddy:Add, Text, x40 y5, Class Selection :
Gui, HOKBuddy:Add, Text, x205 y5, Characters Available :
Gui, HOKBuddy:Add, Text, x500 y5, Character Information :
Gui, HOKBuddy:Add, ListBox, x5 y20 w150 h300 vHOKclasschoice gHOKChoice ,
Gui, HOKBuddy:Add, ListBox, x160 y20 w200 h300 vHOKclasslist gHOKCharChoice AltSubmit,
Gui, HOKBuddy:Add, ListBox, x365 y20 w400 h300 vHOKclassinfo gHOKStatChoice AltSubmit,
Gui, HOKBuddy:Add, Button, x5 y320 w50 h40 gBack, Back
Gui, HOKBuddy:Add, Button, x275 y320 w130 h40 gHOKRefresh, Refresh
Gui, HOKBuddy:Add, Button, x410 y320 w130 h40 vHOKSortChoice gHOKSort, Sorting : %HOKSortVar%
Gui, HOKBuddy:Add, Button, x636 y320 w130 h40 gLoadHOK, Load
Gui, HOKBuddy:Add, Button, x5 y370 h40 gChangeHOKPath, Change Save Folder
Gui, HOKBuddy:Add, Edit, x155 y370 w300 h40 vHOKPathText ReadOnly, %HOKBuddyPath%
Gui, HOKBuddy:Show, Hide Center, HOK Buddy (Press CTRL + F1 to Show/Hide)
Gui, HOKBuddy:Add, Checkbox, x460 y370 vHOKC1 Checked%HOKC1% gCheckBoxOptions, -cam 3000
HOKGUI = 0
Gui 8a:+LabelHOKStatBuddy
Gui, HOKStatBuddy:Add, Edit, vHOKdata ReadOnly w600,
Gui, HOKStatBuddy:Show, Hide Center, Retrieve content
;=============== GUI COLOR PICKER ====================
DPI := getDPImultiplier()
FontScaler := 2/DPI
eight := Floor(8*FontScaler)
twelve := Floor(12*FontScaler)
cY = 610 ; Used to position the saved colors
cH = 30
cW = 55
cG = 5
cX = 22
; To load the saved variables
IniRead, vSlider, %A_ScriptDir%\%ININame%, Loader, vSlider, 100
IniRead, sColor, %A_ScriptDir%\%ININame%, Loader, sColor, 000000
IniRead, GUIColorX, %A_ScriptDir%\%ININame%, Loader, GUIColorX, 620
IniRead, GUIColorY, %A_ScriptDir%\%ININame%, Loader, GUIColorY, 443
; Create the Halo
Gui Halo: -DPIScale
Gui Halo: Color, AE29AD
Gui Halo: -caption -Border +ToolWindow +LastFound +AlwaysOnTop
WinSet, TransColor, AE29AD
Gui Halo:Add, Picture, w20 h-1, Color/Hoop.png
; Create the Color Picker Window and set colors
Gui CPBuddy:Font, cDDDDDD s%eight% q5
Gui CPBuddy:Add, Button, x20 y440 w80 h50 gBack, Back
Gui CPBuddy:+caption Border -DPIScale
Gui CPBuddy:Font, cDDDDDD s%twelve% q5
Gui CPBuddy:Color, 222222, DDDDDD
Gui CPBuddy:Add, Text, x180 y440, Saturation:
Gui CPBuddy:Add, Picture, x20 y20 w600 h-1 Border vColorPallet, Color\%vSlider%.png
Gui CPBuddy:Add, Text, x340 y440 w75 Center ReadOnly gCP_SatEdit vSatEdit, %vSlider%`%
Gui CPBuddy:Add, Slider, x175 y480 w240 Range0-100 AltSubmit Line5 page25 Thick17 NoTicks gCP_Slider vvSlider, %vSlider%
Gui CPBuddy:Add, TreeView, x502 y435 w120 h60 ReadOnly Background%sColor% vCP_Top
;=============== TRAY ICON ====================
Menu, Tray, UseErrorLevel
Menu, TrayMenu, Add, Gaia Loader, GUIGaia
Menu, TrayMenu, Add, HM Loader, GUIHM
Menu, TrayMenu, Add, TBR 1.38 Loader, GUITBR13
Menu, TrayMenu, Add, TBR 2.1 Loader, GUITBR21
Menu, TrayMenu, Add, TeveF Loader, GUITEVE
Menu, Tray, Nostandard
Menu, Tray, Add, Hide WC3 RPG Loader, ^F1
Menu, Tray, Default, Hide WC3 RPG Loader
Menu, Tray, Add
Menu, Tray, Add, Loaders, :TrayMenu
Menu, Tray, Add
Menu, Tray, Add, Launch Warcraft III, GameLaunch
Menu, Tray, Add
Menu, Tray, Add, Hide Warcraft III, GameShowHide
Menu, Tray, Add
Menu, Tray, Add, Reload Script, ReloadScript
Menu, Tray, Standard
Menu, Tray, Click, 1
Menu, Tray, Disable, Launch Warcraft III
;=============== STARTUP ====================
SetWorkingDir, %A_ScriptDir%
UpdateDone = 0
For i in GUIList
{
GuiName := GUIList[i]
Gui, %GuiName%Buddy:Color, %GUIColor%
}
Gui, MainBuddy:Show, Center, Loader %currentversion% (Press CTRL + F1 to Show/Hide)
If (CheckUpdates = 1)
{
GoSub, Update
}
UpdateDone = 1
If (WC3Path)
{
GuiControl, MainBuddy:, SetPathButton , Change Wc3 Path
Menu, Tray, Enable, Launch Warcraft III
}
If (TrayOption = 0)
{
Menu, Tray, Disable, Launch Warcraft III
GuiControl, MainBuddy:Disable, SetPathButton
}
GoSub, HotkeySetting
AOTChange(AOT)
return
;////////////////////////////////////////// UPDATER //////////////////////////////////////////////////////////////////
AutoUpdate:
{
Gui UpdateBuddy:+OwnDialogs
If (TrayIcon == "0")
{
MsgBox, 4, Optional Download, Do you want to a new shiny tray icon as well?
IfMsgBox, Yes
{
UrlDownloadToFile, %URLDownloadTrayIcon%, %A_ScriptDir%\%OutNameNoExt%.ico
}
}
If (Extension == "exe")
{
MsgBox, 4, Warning!, My .exe files are detected as Trojans by virustotal! (1/68, welp).`nDo you want to use the .ahk files instead? (0/68 from virustotal)`nYou can also easily look at the source code with Notepad on the ahk files (NotePad++ is even better :p)
IfMsgBox, Yes
{
If (AHKInstallPath)
{
Progress, , , Downloading AutoUpdater..., AutoUpdater.ahk Download
Sleep, 500
UrlDownloadToFile, %URLDownloadUpdaterAHK%, %URLCurrentUpdaterAHK%
Progress, 100 , ,Download Completed. Launching..., AutoUpdater.ahk Download Completed
Sleep, 500
Progress, Off
NewLoaderURL = %URLCurrentLoader%.ahk
DeleteOldEXE = %URLCurrentLoader%.exe
Run %URLCurrentUpdaterAHK% "%NewLoaderURL%" "%URLDownloadAHK%" "%DeleteOldEXE%"
ExitApp
}
Else
{
MsgBox, 4, Autohotkey Required, The ahk files requires Autohotkey to be installed.`nDo you want to download it?
IfMsgBox, Yes
{
Progress, , , Downloading AutoHotkey..., AutoHotkey Download
UrlDownloadToFile, http://www.autohotkey.com/download/AutoHotkeyInstall.exe, %A_Temp%\AutoHotkeyInstall.exe
Progress, 100 , ,Download Completed. Launching..., AutoHotkey Download Completed
Sleep, 200
MsgBox, 4096,, WC3 RPG Loader will now minimize during the installation of AutoHotkey.
Progress, Off
Gui, MainBuddy:Show , Minimize
Gui, UpdateBuddy:Show , Minimize
RunWait, %A_Temp%\AutoHotkeyInstall.exe
Gui, MainBuddy:Show , Restore
Gui, UpdateBuddy:Show , Restore
RegRead, AHKInstallPath, HKLM, SOFTWARE\AutoHotkey, InstallDir ; AHK Installation Path
If (!AHKInstallPath)
{
Msgbox, 4096, ERROR, I can't find AutoHotkey Installation Path`nPlease use the Manual Download
}
Else
{
Msgbox, 4096, Installation, AutoHotkey Installed, now running the Auto Updater
Progress, , , Downloading AutoUpdater..., AutoUpdater.ahk Download
Sleep, 500
UrlDownloadToFile, %URLDownloadUpdaterAHK%, %URLCurrentUpdaterAHK%
Progress, 100 , ,Download Completed. Launching..., AutoUpdater.ahk Download Completed
Sleep, 500
Progress, Off
NewLoaderURL = %URLCurrentLoader%.ahk
DeleteOldEXE = %URLCurrentLoader%.exe
Run %URLCurrentUpdaterAHK% "%NewLoaderURL%" "%URLDownloadAHK%" "%DeleteOldEXE%"
ExitApp
}
}
}
}
Else
{
MsgBox, 4, Optional Download, Do you want to download the .ahk file as well?
IfMsgBox, Yes
{
UrlDownloadToFile, %URLDownloadAHK%, %A_ScriptDir%\%OutNameNoExt%.ahk
}
Progress, , , Downloading AutoUpdater..., AutoUpdater.exe Download
Sleep, 500
UrlDownloadToFile, %URLDownloadUpdaterEXE%, %URLCurrentUpdaterEXE%
Progress, 100 , ,Download Completed. Launching..., AutoUpdater.exe Download Completed
Sleep, 500
Progress, Off
NewLoaderURL = %URLCurrentLoader%.exe
Run %URLCurrentUpdaterEXE% "%NewLoaderURL%" "%URLDownloadEXE%"
ExitApp
}
}
Else If (Extension == "ahk")
{
Progress, , , Downloading AutoUpdater..., AutoUpdater.ahk Download
Sleep, 500
UrlDownloadToFile, %URLDownloadUpdaterAHK%, %URLCurrentUpdaterAHK%
Progress, 100 , ,Download Completed. Launching..., AutoUpdater.ahk Download Completed
Sleep, 500
Progress, Off
NewLoaderURL = %URLCurrentLoader%.ahk
Run %URLCurrentUpdaterAHK% "%NewLoaderURL%" "%URLDownloadAHK%"
ExitApp
}
}
return
ManualDownload:
{
Run, https://github.com/wawawawawawawa/WC3_Loader/
}
return
Update:
{
Gui MainBuddy:+OwnDialogs
CheckInternetVar:= % IsInternetConnected()
if (CheckInternetVar == 0)
{
If (UpdateDone == 1)
{
msgbox, 262208,No Network,Internet is NOT connected !
}
}
else
{
url=https://raw.githubusercontent.com/wawawawawawawa/WC3_Loader/master/version.txt
version := StrReplace(URLDownloadToVar(url), "`n", "")
GuiControl, UpdateBuddy:, LoaderLastVer, %version%
If (version != currentversion)
{
CurrentGUI = Update
GuiControl, UpdateBuddy:Enable, GreyedButton
Gui, UpdateBuddy:Show, Center, Update Available
GuiHideAllBut(CurrentGUI)
}
Else
{
If (UpdateDone == 1)
{
CurrentGUI = Update
GuiControl, UpdateBuddy:Disable, GreyedButton
Gui, UpdateBuddy:Show, Center, Up To Date
GuiHideAllBut(CurrentGUI)
}
}
}
UpdateDone = 1
}
return
Changelog:
{
url=https://raw.githubusercontent.com/wawawawawawawa/WC3_Loader/master/changelog.txt
changelogtext := URLDownloadToVar(url)
MsgBox, 4096, Changelog, %changelogtext%
}
return
;////////////////////////////////////////// GAIA //////////////////////////////////////////////////////////////////
;=============== GAIA CODE ====================
GaiaRefresh:
{
; Empty Old Var
IniRead, GaiaBuddyPath, %A_ScriptDir%\%ININame% , Settings, GaiaPath
SetWorkingDir, %GaiaBuddyPath%
Gaiacurrentclass=
GaiaReplacedStr=
GaiaArr := ["Cleric", "Magician", "Ranger", "Squire", "Thief", "Mystic", "Assassin", "Bard", "Berserker", "Bishop", "Crusader", "Druid", "Hunter", "Monk", "Necromancer", "Sorcerer", "Hexblade", "Psion", "Valkyrie", "Vault"]
GaiaFile := {}
GaiaClass := {}
For i in GaiaArr
{
class := GaiaArr[i]
GuiControl, GaiaBuddy:, %class%choice, |%class%
GuiControl, GaiaBuddy:Choose, %class%choice, 1
}
If (GaiaBuddyPath)
{
GaiaFileList := {}
Loop, Files, *.txt
{
GaiaFileList[A_index] := SubStr(A_LoopFileName, 1, -4)
TheIndex := GaiaFileList[A_index]
for i in GaiaArr
{
if (InStr(TheIndex, GaiaArr[i]) != 0)
{
Gaianame:=TheIndex
GaiaFile.Push(Gaianame)
GaiaClass.Push(GaiaArr[i])
}
}
}
for j in GaiaArr
{
for i in GaiaClass
{
Gaiacurrent := GaiaFile[i]
if (GaiaClass[i] = GaiaArr[j])
{
classGaia := GaiaArr[j]
if (!Gaiacurrentclass)
{
Gaiacurrentclass = %Gaiacurrent%
}
else {
Gaiacurrentclass = %Gaiacurrent%|%Gaiacurrentclass%
}
}
}
if (Gaiacurrentclass)
{
GaiaReplacedStr := sortByNumberWithin(Gaiacurrentclass,"|")
GaiaReplacedStr := StrReplace(GaiaReplacedStr, "|" , "| ")
GaiaReplacedStr=| %GaiaReplacedStr%
GuiControl, GaiaBuddy:, %classGaia%choice, %GaiaReplacedStr%
GuiControl, GaiaBuddy:Choose, %classGaia%choice, 1
}
Gaiacurrentclass=
}
}
}
return
LoadGaia:
{
IniRead, GaiaBuddyPath, %A_ScriptDir%\%ININame% , Settings, GaiaPath
SetWorkingDir, %GaiaBuddyPath%
GaiaSaveName := SubStr(A_GuiControl, 1, -2)
GaiaSaveName = %GaiaSaveName%choice
GuiControlGet, GaiaCurrentFile ,, %GaiaSaveName%, Text
GaiaCurrentFile=%GaiaCurrentFile%
GaiaCurrentFile = %GaiaCurrentFile%.txt
GaiaCurrentPath = %GaiaBuddyPath%\%GaiaCurrentFile%
if FileExist(GaiaCurrentPath)
{
SetTitleMatchMode, 1
If WinExist("Warcraft III")
{
FileReadLine, Gaiacode, %GaiaCurrentFile%, 4
Gaiacode=%Gaiacode%
StringTrimLeft, Gaiacode, Gaiacode, 25
StringTrimRight, Gaiacode, Gaiacode, 7
FileReadLine, Gaialvl, %GaiaCurrentFile%, 5
Gaialvl=%Gaialvl%
StringTrimLeft, Gaialvl, Gaialvl, 39
StringTrimRight, Gaialvl, Gaialvl, 6
WinActivate, Warcraft III
Clipboard := "Loading : " . Gaialvl
ClipWait, 200
SendInput {Enter}^v{Enter}
Sleep 200
Clipboard := "-load " . Gaiacode
ClipWait,200
SendInput {Enter}^v{Enter}
}
else
{
MsgBox, 262208, No Warcraft III, You need to open Warcraft III before loading !
}
}
else
{
MsgBox, 262208, Invalid Save File, No Save Found !
}
}
return
LoadGaiaVault:
{
IniRead, GaiaBuddyPath, %A_ScriptDir%\%ININame% , Settings, GaiaPath
SetWorkingDir, %GaiaBuddyPath%
GaiaCurrentPath = %GaiaBuddyPath%\Vault.txt
if FileExist(GaiaCurrentPath)
{
SetTitleMatchMode, 1
If WinExist("Warcraft III")
{
WinActivate, Warcraft III
FileReadLine, Gaiacode, Vault.txt, 4
StringTrimLeft, Gaiacode, Gaiacode, 20
StringTrimRight, Gaiacode, Gaiacode, 7
Sleep 200
Clipboard := "Loading : Vault"
ClipWait, 200
SendInput {Enter}^v{Enter}
Sleep 200
Clipboard := Gaiacode
ClipWait,200
SendInput {Enter}^v{Enter}
}
else
{
MsgBox, 262208, No Warcraft III, You need to open Warcraft III before loading !
}
SetTitleMatchMode, 2
}
else
{
MsgBox, 262208, Invalid Save File, No Vault Found !
}
}
return
;////////////////////////////////////////// HM //////////////////////////////////////////////////////////////////
;=============== HM CODE ====================
HMSort:
{
GuiControlGet, HMCurrentSort,, HMSortChoice,
If (HMCurrentSort = "Sorting : Last Time Modified")
{
GuiControl, HMBuddy:, HMSortChoice, Sorting : Level
HMSortVar := "Level"
IniWrite, %HMSortVar%, %A_ScriptDir%\%ININame%, Settings, HMSort
GoSub, HMChoice
}
else if (HMCurrentSort = "Sorting : Level")
{
GuiControl, HMBuddy:, HMSortChoice, Sorting : Creation Time
HMSortVar := "Creation Time"
IniWrite, %HMSortVar%, %A_ScriptDir%\%ININame%, Settings, HMSort
GoSub, HMChoice
}
else
{
GuiControl, HMBuddy:, HMSortChoice, Sorting : Last Time Modified
HMSortVar := "Last Time Modified"
IniWrite, %HMSortVar%, %A_ScriptDir%\%ININame%, Settings, HMSort
GoSub, HMChoice
}
}
return
HMRefresh:
{
; Empty Old Var
IniRead, HMBuddyPath, %A_ScriptDir%\%ININame%, Settings, HMPath
SetWorkingDir, %HMBuddyPath%
GuiControl, HMBuddy:, hmclassinfo, |
GuiControl, HMBuddy:, hmclasslist, |
GuiControl, HMBuddy:, hmclasschoice, |
HMClass := []
HMClasses := []
HMCodes := []
HMStats := []
HMLvl := []
HMTime := []
HMCreatTime := []
If (HMBuddyPath)
{
Loop, Files, *.txt
{
HMCreat=%A_LoopFileTimeCreated%
HMCreatTime.Push(HMCreat)
FormatTime, HMCreatTimeFormat, %A_LoopFileTimeCreated%
HMLastModif=%A_LoopFileTimeModified%
HMTime.Push(HMLastModif)
FormatTime, HMTimeFormat, %A_LoopFileTimeModified%
HMstart = 0
Loop, 50
{
FileReadLine, HMfileline, %A_LoopFileName%, A_Index
If (A_Index = 4)
{
HMcurrCode = %HMfileline%
StringTrimLeft, HMcurrCode, HMcurrCode, 22
StringTrimRight, HMcurrCode, HMcurrCode, 3
HMCodes.Push(HMcurrCode)
}
if InStr(HMfileline, "Chat Message")
{
HMstart = 0
HMfull = | FileName: %A_LoopFileName% | CreationTime: %HMCreatTimeFormat% | LastModified: %HMTimeFormat% %HMfull% | Code: %HMcurrCode%
HMStats.Push(HMfull)
GuiControl, HMBuddy:, hmclasschoice, %HMClassOption%
GuiControl, HMBuddy:Choose, hmclasschoice, 1
HMfull=
Break
}
if (HMstart = 1)
{
HMcurrentline = %HMfileline%
StringTrimLeft, HMcurrentline, HMcurrentline, 15
StringTrimRight, HMcurrentline, HMcurrentline, 3
HMcurrentline := StrReplace(HMcurrentline, "|" , " ")
HMfull = %HMfull% | %HMcurrentline%
if InStr(HMcurrentline, "Char:")
{
HMcurrChar = %HMfileline%
StringTrimLeft, HMcurrChar, HMcurrChar, 21
StringTrimRight, HMcurrChar, HMcurrChar, 3
HMClass.Push(HMcurrChar)
if (HMClassOption)
{
if InStr(HMClassOption, HMcurrChar)
{
}
else
{
HMClassOption = %HMClassOption% | %HMcurrChar%
}
}
else
{
HMClassOption = | %HMcurrChar%
}
}
if InStr(HMcurrentline, "Lv:")
{
HMcurrLvl = %HMfileline%
StringTrimLeft, HMcurrLvl, HMcurrLvl, 19
StringTrimRight, HMcurrLvl, HMcurrLvl, 3
HMClasses.Push(HMcurrChar " Lvl " HMcurrLvl)
HMLvl.Push(HMcurrLvl)
}
}
if InStr(HMfileline, "Data Stats")
{
HMstart = 1
}
}
}
HMClassOption=
}