-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathWarlock Bot.ahk
4570 lines (4202 loc) · 177 KB
/
Warlock Bot.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 ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn All, Off ; #Warn eables warnings to assist with detecting common errors, while "all, off" makes them all disabled
#HotkeyInterval 1000 ; This is the default value (milliseconds).
#MaxHotkeysPerInterval 200
#MaxThreadsPerHotkey 1
#SingleInstance
#WinActivateForce ; need to test it
; #NoTrayIcon
DetectHiddenWindows, Off
SendMode Input
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetBatchLines, -1
SetWinDelay, -1
SetControlDelay, -1
CoordMode, Mouse, Screen
#Include Gdip_all_2.ahk
If !pToken := Gdip_Startup()
{
MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
ExitApp
}
global version := "0.9.6.1 - beta"
IniWrite, %version%, Data/basic_settings.ini, authentication data, version
GOTO_STARTBOT := 0
GOTO_INIT := 0
; created by Mate @tibiapf.com
; official website: www.wrlbot.tk
; project thread: https://tibiapf.com/showthread.php?71-all-versions-Warlock-Bot
; see also: https://tibiapf.com/showthread.php?35-all-versions-Hunter-Bot
; github site: https://github.com/Brazyliszek/Warlock-bot
;################## todos ##################
;dodac funkcje ifwinexist(1 or 2){ settimers off, guicontrol runemaking1 or 2 itp off, check gui itd)
;info, ze win nie jest aktywne, a dziala screen checker powinno miec wysoki priorytet
;dodac timer if mainbot win active := gui redraw
;zoptymalizowac fishing
; optymalizacja dll i sleepów
; zmienic hide_client_1 na hide client 1
; zoptymalizowac scp, niepotrzebnie non stop zbiera to samo hwnd, niepotrzebnie caly czas robi bitmapy. Mozna po prostu dodac jakas zmienna iterujaca++ przy kazdej zmianie bmp lub hwnd do controla i on by tylko to zczytywal i w razie w robil jakis gosub get bmp/hwnd
; add character moved as alarm type
; MAIN RULES USING THIS SCRIPT AND FEW TIPS:
; 1) Bot depends on time instead of mana amount to create runes
; 2) Your main backpack must be different than backpacks in which will you store blank and conjured runes (if you're using hand-mode)
; 3) Your hand slot must be empty, otherwise object you had in hand may be moved to backpack and you can lose it in case of death (if you're using hand-mode)
; 4) You must take screenshot of a free slot using our tool to take ingame images (if you're using hand-mode)
; 5) ImageSearch searches for images from topleft to bottomright side of desired area. Keep that in mind.
; 6) If constantly bot returns "couldn't find free slot on inventory" try to take another image, dont really need to be fully in center.
; latest ver. changelog
; 0.9.6.1
; repaired window managment (flash, fishing, main gui)
; repaired 'screen change' alarm after hiding minimized client window
; removed serious bug causing mouse movment block
;
; 0.9.6
; removed support for x32 systems
; added tooltips on each control
; added possibility to hide/show game window
; improved tray menu items
; implemented screen checker platform (scp_wrlbot.exe), that is providing pseudo-multitasking
; added separated timers for all bot functions for both clients
; improved pause function
; added flash client as alarm type
; added image search by hwnd
; added mouse control by ext. DLL
; added fishing feature
; added default buttons for inital windows
;
;
; 0.9.5.1 & 2
; fixed anty_logout() on medivia
; added auto 'sendmode = event' if medivia
;
; 0.9.5
; reorganized file managment
; added online bot version confirmation
; added way more efficient double alarm effect
; repaired bug if window title has changed after initialization
; changed spell cast method to send hotkey input instead of string
; added configuration of such things as: food/anty idle time, anty log direction, distance to walk in case of alarm, hotkey to eat food, if you want notification to be shown or not
; added auto-shutdown on specific hour
; added alarm if gm on battle, if lack of soul points
; repaired bug with screen check false alarm while minimizing or maximizing game window
;
; 0.9.4
; repaired bug with spellcaster if no blank
; minor changes to runemake() algorithm
; added ver 32 and 64 bit
;
; 0.9.3
; repaired bug with crash if last used client directory has changed
; now you can change in ini files values of randomization (1-15~), food and antylog time (ms), to show or not notifications (bool), and blank rune spell (string)
; changed action order in case of alarm execution (now is: logout>walk>sound>shutdown)
; repaired bug with shutdown/walk alarm type, now you can do both in the same time (in specified oreder)
; repaired bug with food/anty log delay (it should eat once every 150sec not every each cicle)
; minor changes to pause(), still not tested
;
; 0.9.2
; solved problems with not loading previously saved settings
; removed tests hotkeys f1 and f2 from public bot version
; changed auth gui to make password and account name unchangable
;
; 0.9.1
; added inital msgbox, informing about version and where to report bugs
; ######################################################### VARIABLES ##############################################################################
global refresh_time := 200 ; screen checker frequency
global MainBotWindow
global fishing_time := 1500
global fishing1_stack := []
global fishing1_spot := []
global fishing2_stack := []
global fishing2_spot := []
global transparent_tibia1 := 0
global transparent_tibia2 := 0
global WalkMethod_IfFood
global WalkMethod_IfBlank
global WalkMethod_IfPlayer
global WalkMethod_IfSoul
global client_screen_checker
global img_filename
global sc_temp_img_dir1 = "Data\Images\select_area1.png"
global sc_temp_img_dir2 = "Data\Images\select_area2.png"
global execution_allowed := 1
global rune_spellkey1
global spelltime1
global rune_spellkey2
global spelltime2
global blank_spellname
global hand_slot_pos_x
global hand_slot_pos_y
global house_pos_x ; to dele soon
global house_pos_y ; to dele soon
global house_pos_x1
global house_pos_y1
global house_pos_x2
global house_pos_y2
global title_tibia1
global title_tibia2
global pid_tibia1
global pid_tibia2
global Bot_protection = 0
global current_time1 := 0 ; prev. was a_tickcount, not sure if will work
global deviation1 := 0
global planned_time1
global current_time2 := 0 ; prev. was a_tickcount, not sure if will work
global deviation2 := 0
global planned_time2
global randomization := 5 ; level of randomness in functions
global steps_to_walk ; how many sqm bot has to go incase of alarm
global show_notifications ; if you want notification to be displayed set 1, else 0
global food_time ; bot doesnt eat each cicle but rather checks if last eating wasn't earlier than current time - food_time (ms)
global anty_log_time ; same as above, but relate of anty_log function
global eat_using_hotkey
global eat_hotkey
global check_x1
global check_y1
global check_x2
global check_y2
global hwnd1
global hwnd2
global area_start_x1
global area_start_y1
global area_start_x2
global area_start_y2
global bmparea_check1
global bmparea_check2
global rm1 := 0
global al1 := 0
global fe1 := 0
global fi1 := 0
global a1 := 0
global paused := 0
global rm2 := 0
global al2 := 0
global fe2 := 0
global fi2 := 0
global a2 := 0
coord_var = 0
tab_window_size_x = 465
tab_window_size_y = 260
pic_window_size_x = % tab_window_size_x+40
pic_window_size_y = % tab_window_size_y+40
global BOTnameTR := "Warlock"
global BOTName := "Warlock Bot"
global Fishing_gui1_title := "Fishing setup - client 1"
global Fishing_gui2_title := "Fishing setup - client 2"
If WinExist("WarlockBot"){
MsgBox, 16, Error, There is other Warlock bot already running. Application will close now. ; prevent from running bot multiple times. may interact in unexpected way, prevention move
ExitApp
}
checkfiles:
IncludeImages := "area_check1.bmp|area_check2.bmp|background.png|backpack1.bmp|backpack2.bmp|blank_rune.bmp|conjured_rune1.bmp|conjured_rune2.bmp|food1.bmp|food2.bmp|free_slot.bmp|picbp.bmp|select_area1.png|select_area2.png|tabledone.png|table_main_f.png|icon.ico|msinfo32.ico|warlockbot_startwin.png|pp_donate.bmp|soul0.bmp|soul1.bmp|soul2.bmp|soul3.bmp|soul4.bmp|soul5.bmp|fishing_rod_bp.bmp|fishing_rod.bmp|fish.bmp"
Loop, Parse, IncludeImages, |
{
If (!FileExist("Data\Images\" A_LoopField))
{
MsgBox, 262193, Something is wrong..., There is lack in files. Couldn't find some images. Do you want to restore them?
IfMsgBox Ok
goto Installfiles
else
ExitApp
}
}
IncludeFiles := "alarm_food.mp3|alarm_screen.mp3|alarm_blank.mp3|alarm_soul.mp3"
Loop, Parse, IncludeFiles, |
{
If (!FileExist("Data\Sounds\" A_LoopField))
{
MsgBox, 262193, Something is wrong..., There is lack in files. Couldn't find some sounds. Do you want to restore them?
IfMsgBox Ok
goto Installfiles
else
ExitApp
}
}
IncludeFiles := "basic_settings.ini|mousehook64.dll|scp_wrlbot.exe"
Loop, Parse, IncludeFiles, |
{
If (!FileExist("Data\" A_LoopField))
{
MsgBox, 262193, Something is wrong..., There is lack in files. Couldn't find some files. Do you want to restore them?
IfMsgBox Ok
goto Installfiles
else
ExitApp
}
}
if GOTO_STARTBOT
goto, start_bot ; <<----------------------------------------------------------------------------------- temprarly, for tests purpose
if GOTO_INIT
goto, start_initialization
MsgBox, 262208, Important, Hi! `nPlease keep in mind this is version %version%`, which means it still has some bugs and not all function may work properly. Please report all bugs, false alerts, crashes on forum tibiapf.com with every important details in valid thread or directly on official webiste wrlbot.tk. `n`nThanks for using my software`, hope you like it. `nMate/Brazyliszek
; ######################################################### AUTHENTICATION #########################################################################
pass_authentication:
Gui, New, +Caption
IniRead, last_used_login, Data/basic_settings.ini, authentication data, last_used_login
IniRead, last_used_pass, Data/basic_settings.ini, authentication data, last_used_pass
IniRead, version, Data/basic_settings.ini, authentication data, version
last_used_login := "demo"
last_used_pass := "demo"
Gui, Add,edit,x5 y26 w80 h17 vuser, %last_used_login%
Gui, Add,edit,x5 y60 w80 h17 password vpass, %last_used_pass%
Gui, Add,button,x5 y80 h20 w55 gLogin center +BackgroundTrans Default , Login
Gui, Add,button,x65 y80 h20 w20 gHelp_button center, ?
Gui, Add, Pic, x0 y0 0x4000000, %A_WorkingDir%\Data\Images\warlockbot_startwin.png
Gui, font, bold s8
Gui, Add, Text, x95 y130 w300 vauth_text_box cWhite +BackgroundTrans, Enter your license account data.
Gui, Show, w287 h149,Authentication
GuiControl, Disable, pass
GuiControl, Disable, user
start_value := 1
return
Help_button:
MsgBox, 0, Help, Version: %version%`nStandard password for beta version is demo/demo. If any other problems occured contact me using data below.`n`nSupport: via privmassage on forum tibiapf.com @Mate`nThrough contact page on official site: http://wrlbot.tk/contact`n`n`ngithub site: https://github.com/Brazyliszek/Warlock-bot`nproject thread: https://tibiapf.com/showthread.php?71-all-versions-Warlock-Bot`nsee also: https://tibiapf.com/showthread.php?35-all-versions-Hunter-Bot
return
Login:
if start_value = 2
goto check_version
Gui, Font, c00ABFF
Guicontrol, move, auth_text_box, x200 y130
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, connecting...
If (start_value = 1){
start_value := 0
user_name := "demo"
user_pass := "demo"
sleep 500
GuiControlGet, user,, user
GuiControlGet, pass,, pass
IniWrite, %user%, Data/basic_settings.ini, authentication data, last_used_login
IniWrite, %pass%, Data/basic_settings.ini, authentication data, last_used_pass
If (user != user_name) or (pass != user_pass){
Guicontrol, move, auth_text_box, x100 y130
Gui, Font, cRed
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Wrong login name or password.
start_value := 1
return
}
else{
Guicontrol, move, auth_text_box, x170 y130
Gui, Font, c00FF11
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Account confirmed!
sleep, 1000
goto, check_version
}
}
else{
sleep 1000
Guicontrol, move, auth_text_box, x95 y130
Gui, Font, cRed
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Check your internet connection.
start_value := 1
return
}
start_value := 1
return
check_version:
start_value := 2
Gui, Font, c00ABFF
Guicontrol, move, auth_text_box, x170 y130
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Version checking...
sleep 800
If (ConnectedToInternet() and start_value = 2){
ComObjError(false)
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "http://wrlbot.000webhostapp.com/version.txt", true)
whr.Send()
whr.WaitForResponse()
version_current := whr.ResponseText
if ((StrLen(version_current) < 5) or (StrLen(version_current) > 15) or (version_current == "")){
Guicontrol, move, auth_text_box, x15 y130
Gui, Font, cRed
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, There was problem with obtaining version info.
sleep, 2500
Gui, Destroy
start_value := 2
goto, start_initialization
return
}
IniRead, version, Data/basic_settings.ini, authentication data, version
If (version != version_current){
Guicontrol, move, auth_text_box, x50 y130 w300
Gui, Font, cRed
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Warlock bot outdated. Please update it.
sleep, 500
Msgbox,,Warlock bot,You are using old version. There is a newer one available to download. Update your bot if you want to have bugs repaired and new features built in it.
sleep, 1000
Gui, Destroy
start_value := 2
goto, start_initialization
return
}
else{
Guicontrol, move, auth_text_box, x150 y130
Gui, Font, c00FF11
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Bot version confirmed!
sleep, 1500
Gui, Destroy
start_value := 2
goto, start_initialization
return
}
}
else{
Guicontrol, move, auth_text_box, x98 y130
Gui, Font, cRed
GuiControl, font, auth_text_box
GuiControl, text, auth_text_box, Check your internet connection.
Gui, Destroy
goto, start_initialization
start_value := 2
return
}
start_value := 2
return
; ######################################################### INITIALIZATION AND GUI ################################################################
start_initialization:
sleep, 500 ; auth gui destroy somehow minimized initial window if it was open too fast
Gui, New, +Caption
IniRead, last_used_client_dir, Data/basic_settings.ini, initialization data, last_used_client_dir
IniRead, last_used_mc_count, Data/basic_settings.ini, initialization data, last_used_mc_count
IniRead, Bot_protection, Data/basic_settings.ini, initialization data, Bot_protection
Gui, Add, Text, x5 y15 +BackgroundTrans, Client location:
Gui, Add, Text, x5 y40 +BackgroundTrans, How many mc?
Gui, Add, edit, x85 y15 w140 h17 vedit_client_dir +ReadOnly, %last_used_client_dir%
Gui, Add, DropDownList, x85 y35 w30 Choose%last_used_mc_count% vmc_count, 1|2
Gui, Add, button, x233 y15 h18 gselect_file,Browse
Gui, Add, button, x187 y128 h20 w50 gCheck_initial_settings Default ,Start
Gui, Add, button, x237 y128 h20 w50 gHelp_initial_button, Help
Gui, Add, Text, x5 y65 +BackgroundTrans, On some servers with good bot protecion functions like`nmove() or use() might not work properly. If you experienced`nsuch issues click on this checkbox to enable mouse`nsimulation on lower level.
Gui, Add, Checkbox, x5 y128 gBot_protection vBot_protection checked%Bot_protection%,SendMode = Event
Gui, Show, w287 h149, Initial setup
return
select_file:
FileSelectFile, client_dir, 3, , Select tibia client, executable files (*.exe)
if client_dir =
return
else
GuiControl,,edit_client_dir,%client_dir%
return
Help_initial_button:
MsgBox, 0, Help, First you have to do is to enter valid game client location. Is neccesery for bot to obtain its unique process id.`nSecondly you got to choose on how many clients will you operate. You can use Warlock Bot on up to two clients.`nAnd the last thing - select SendMode Event - only if bot returns errors like "There was problem with function use()" or for example bot has problems with eating food or moving items in inventory. It means that server owners made their client bot unfriendly. It will slow the bot a little bit and make mouse movements visible.
return
Check_initial_settings:
GuiControlGet, edit_client_dir,,edit_client_dir
GuiControlGet, mc_count,,mc_count
GuiControlGet, Bot_protection,,Bot_protection
IniWrite, %edit_client_dir%, Data/basic_settings.ini, initialization data, last_used_client_dir
IniWrite, %mc_count%, Data/basic_settings.ini, initialization data, last_used_mc_count
IniWrite, %Bot_protection%, Data/basic_settings.ini, initialization data, Bot_protection
IfNotInString, edit_client_dir, exe
{
TrayTip, %BOTName%, You should enter valid tibia clients file path (*.exe).
SetTimer, RemoveTrayTip, 3500
return
}
IfInString, edit_client_dir, medivia
{
GuiControlGet, Bot_protection,,Bot_protection
if (Bot_protection = 0 and temp_var_bp != 1){
MsgBox, 64, Highly edited otclient detected!, It is recommended to have 'SendMode = Event' enabled.
GuiControl,,Bot_protection,1
temp_var_bp := 1
return
}
}
IfNotExist, %edit_client_dir%
{
TrayTip, %BOTName%, Couldn't find client in given directory.
SetTimer, RemoveTrayTip, 3500
return
}
If (mc_count = "" ){
TrayTip, %BOTName%, You should enter tibia multiclient count to run.
SetTimer, RemoveTrayTip, 3500
return
}
else{
Gui, Destroy
goto, run_clients
sleep, 500
}
return
run_clients:
SplitPath, edit_client_dir, client_name, client_only_dir
run, %client_name%, %client_only_dir%, min, pid_tibia1 ; Use ahk_pid to identify a window belonging to a specific process. The process identifier (PID) is typically retrieved by WinGet, Run or Process.
title_tibia1 := "Game client 1 - identyfied by " pid_tibia1
WinActivate, ahk_pid %pid_tibia1%
WinWait, ahk_pid %pid_tibia1%
WinSetTitle, ahk_pid %pid_tibia1%,, %title_tibia1%
sleep, 500
WinGet, hwnd1, ID, %title_tibia1%
Dwm_SetWindowAttributeTransistionDisable(hwnd1, 1) ; to disable windows animation while minimizing/maximizing
; WinMinimize, %title_tibia1%
sleep, 500
if (mc_count = 2){
run, %client_name%, %client_only_dir%, min, pid_tibia2
title_tibia2 := "Game client 2 - identyfied by " pid_tibia2
WinActivate, ahk_pid %pid_tibia2%
WinWait, ahk_pid %pid_tibia2%
WinSetTitle, ahk_pid %pid_tibia2%,, %title_tibia2%
sleep, 50
WinGet, hwnd2, ID, %title_tibia2%
Dwm_SetWindowAttributeTransistionDisable(hwnd2, 1)
; WinMinimize, %title_tibia2%
sleep, 500
}
sleep 500
if (mc_count = 1 and WinExist(title_tibia1)) or (mc_count = 2 and WinExist(title_tibia1) and WinExist(title_tibia2)){
goto, start_bot
}
else{
msgbox,,Error 1098,Tibia clients couldn't be open. The most common reason is that the client doesn't have built in mc. Bot will close now.
ExitApp
}
return
start_bot:
;Gui, New
Gui, +HwndMainBotWindow
Gui, Add, Tab3, vTab2 x32 y55 w280 h216, Client 1|Client 2
Gui, Tab, 1
Gui, Add, GroupBox, x42 y85 w138 h70, Runemaker
Gui, Add, Text, x50 y106 w70 h20 , Hotkey to use:
Gui, Add, Hotkey, x128 y102 w40 h20 Center vRune_spellkey1, %rune_spellkey1%
Gui, Add, Text, x50 y127 w70 h20 , Conjuring time:
Gui, Add, Edit, x128 y124 w40 h20 Limit4 Number r1 gCheck_spelltime1 vSpelltime1, %spelltime1%
Gui, Add, GroupBox, x42 y160 w138 h48, Fishing
Gui, Add, Button, x52 y178 w120 h20 gFishing_setup1 vFishing_setup1, setup for client 1
Gui, Add, GroupBox, x190 y85 w110 h123, Screen checker
Gui, Add, Picture, x203 y105 gArea_screen_checker1 vImage_screen_checker1, %sc_temp_img_dir1%
Gui, Add, CheckBox, x204 y184 w80 h20 gEnabled_screen_checker1 vEnabled_screen_checker1, enabled
Gui, Add, GroupBox, x42 y213 w257 h47 , Throw conjured runes?
Gui, Add, Button, x52 y232 w50 h20 ggetpos_house_1 vgetpos_house_1, get pos
Gui, Add, Edit, x110 y232 w40 h20 +Disabled +center vhouse_pos_x1, %house_pos_x1%
Gui, Add, Edit, x151 y232 w40 h20 +Disabled +center vhouse_pos_y1, %house_pos_y1%
Gui, Add, CheckBox, x200 y232 w90 h20 vdeposit_runes_1, throw runes
Rune_spellkey1_TT := "Set key you want to be pressed while runemake"
Spelltime1_TT := "How much time it take to conjure one rune"
Fishing_setup1_TT := "Configure your fishing setup"
Image_screen_checker1_TT := "Click the box to set part of screen to be checked for change,`nfor example: battle list, hp bar, minimap, vip list"
Enabled_screen_checker1_TT := "Enable screen checker function for game client 1"
getpos_house_1_TT := "Obtain position on screen where to throw conjured runes - house, ground etc."
house_pos_x1_TT := "Obtain position on screen where to throw conjured runes - house, ground etc."
house_pos_y1_TT := "Obtain position on screen where to throw conjured runes - house, ground etc."
deposit_runes_1_TT := "Throw conjured runes on this exact position"
Gui, Tab, 2
Gui, Add, GroupBox, x42 y85 w138 h70, Runemaker
Gui, Add, Text, x50 y106 w70 h20 , Hotkey to use:
Gui, Add, Hotkey, x128 y102 w40 h20 Center vRune_spellkey2, %rune_spellkey2%
Gui, Add, Text, x50 y127 w70 h20 , Conjuring time:
Gui, Add, Edit, x128 y124 w40 h20 Limit4 Number r1 gCheck_spelltime2 vSpelltime2, %spelltime2%
Gui, Add, GroupBox, x42 y160 w138 h48 +Disabled, Fishing
Gui, Add, Button, x52 y178 w120 h20 vFishing_setup2 gFishing_setup2 vFishing_setup2, setup for client 2
Gui, Add, GroupBox, x190 y85 w110 h123, Screen checker
Gui, Add, Picture, x203 y105 gArea_screen_checker2 vImage_screen_checker2, %sc_temp_img_dir2%
Gui, Add, CheckBox, x204 y184 w80 h20 gEnabled_screen_checker2 vEnabled_screen_checker2 , enabled
Gui, Add, GroupBox, x42 y213 w257 h47 , Throw conjured runes?
Gui, Add, Button, x52 y232 w50 h20 vgetpos_house_2 ggetpos_house_2 vgetpos_house_2, get pos
Gui, Add, Edit, x110 y232 w40 h20 +Disabled +center vhouse_pos_x2, %house_pos_x2%
Gui, Add, Edit, x151 y232 w40 h20 +Disabled +center vhouse_pos_y2, %house_pos_y2%
Gui, Add, CheckBox, x200 y232 w90 h20 vdeposit_runes_2, throw runes
Rune_spellkey2_TT := "Set key you want to be pressed while runemake"
Spelltime2_TT := "How much time it take to conjure one rune"
Fishing_setup2_TT := "Configure your fishing setup"
Image_screen_checker2_TT := "Click the box to set part of screen to be checked for change,`nfor example: battle list, hp bar, minimap, vip list"
Enabled_screen_checker2_TT := "Enable screen checker function for game client 2"
getpos_house_2_TT := "Obtain position on screen where to throw conjured runes - house, ground etc."
house_pos_x2_TT := "Obtain position on screen where to throw conjured runes - house, ground etc."
house_pos_y2_TT := "Obtain position on screen where to throw conjured runes - house, ground etc."
deposit_runes_2_TT := "Throw conjured runes on this exact position"
Gui, Add, Tab2, +Theme vTab1 gTab1 x20 y20 w%tab_window_size_x% h%tab_window_size_y%,Main|Alarms|Settings|Advanced
; Gui, Add, Text, x130 y55 w190 h20 ; to white gray bar right to tab control
Gui, Color, White
Gui, Tab, 1
Gui, Add, Pic, x322 y65, Data/Images/table_main_f.png
Gui, Add, GroupBox, x322 y50 w150 h165, Main functions
Gui, Font, bold cGray
Gui, Add, Text, x352 y71, client:
Gui, Add, Text, x410 y71, 1
Gui, Add, Text, x449 y71, 2
Gui, Font
Gui, Add, Text, x333 y94 w58 -Right , runemaking
Gui, Add, Text, x333 y119 w58 -Right , anty logout
Gui, Add, Text, x333 y144 w58 -Right , food eater
Gui, Add, Text, x333 y169 w58 -Right , fishing
Gui, Add, Text, x333 y194 w58 -Right , alarms
Gui, Add, CheckBox, x407 y91 w20 h20 vEnabled_runemaking1 gEnabled_runemaking1
Gui, Add, CheckBox, x407 y116 w20 h20 vEnabled_anty_logout1 gEnabled_anty_logout1
Gui, Add, CheckBox, x407 y141 w20 h20 vEnabled_food_eater1 gEnabled_food_eater1
Gui, Add, CheckBox, x407 y165 w20 h20 gFishing_enabled1 vFishing_enabled1,
Gui, Add, CheckBox, x407 y191 w20 h20 vAlarms_enabled1
Gui, Add, CheckBox, x446 y91 w20 h20 vEnabled_runemaking2 gEnabled_runemaking2
Gui, Add, CheckBox, x446 y116 w20 h20 vEnabled_anty_logout2 gEnabled_anty_logout2
Gui, Add, CheckBox, x446 y141 w20 h20 vEnabled_food_eater2 gEnabled_food_eater2
Gui, Add, CheckBox, x446 y165 w20 h20 gFishing_enabled2 vFishing_enabled2,
Gui, Add, CheckBox, x446 y191 w20 h20 vAlarms_enabled2
Gui, Add, GroupBox, x322 y219 w150 h49, Show/hide
Gui, Add, Button, x335 y238 w60 h20 vToggle_hide1 gToggle_hide1, client 1
Gui, Add, Button, x400 y238 w60 h20 vToggle_hide2 gToggle_hide2, client 2
Enabled_runemaking1_TT := "Make sure you configured all the neccesary shit`n - hand slot position, spell time, took proper images etc"
Enabled_anty_logout1_TT := "It will change your character direction as specified in advanced settings"
Enabled_food_eater1_TT := "It will eat food you took image of in settings`n or set hotkey in advanced settings for tibia 7.8 and newer"
Fishing_enabled1_TT := "Enable the fisher, wish you succesful fishing"
Alarms_enabled1_TT := "Alarms need to be enabled in order to be alarmed"
Toggle_hide1_TT := "Use this button to minimize or activate your game client"
Enabled_runemaking2_TT := "Make sure you configured all the neccesary shit`n - hand slot position, spell time, took proper images etc"
Enabled_anty_logout2_TT := "It will change your character direction as specified in advanced settings"
Enabled_food_eater2_TT := "It will eat food you took image of in settings`n or set hotkey in advanced settings for tibia 7.8 and newer"
Fishing_enabled2_TT := "Enable the fisher, wish you succesful fishing"
Alarms_enabled2_TT := "Alarms need to be enabled in order to be alarmed"
Toggle_hide2_TT := "Use this button to minimize or activate your game client"
Gui, Tab, 2
Gui, Add, Pic, x33 y57, Data/Images/tabledone.png
Gui, Add, GroupBox, x32 y50 w439 h217 , Alarms setup
Gui, Add, Text, x38 y106 w80 h20 +Right vifnofood +0x0100, if no food
Gui, Add, Text, x38 y139 w80 h20 +Right vifnoblank +0x0100, if no blank runes
Gui, Add, Text, x38 y174 w80 h20 +Right vifscreen +0x0100, if screen change
Gui, Add, Text, x38 y207 w80 h20 +Right vifnosoul +0x0100, if no soul ; 8<<<
Gui, Add, Text, x38 y240 w80 h20 +Right vifmoved +0x0100, if char moved ; 8<<<
Gui, Add, Text, x129 y62 w40 h30 +Center valarmPause +0x0100, pause`nbot
Gui, Add, Text, x176 y69 w40 h20 +Center valarmLogout +0x0100, logout
Gui, Add, Text, x223 y62 w40 h30 +Center valamrSound +0x0100, play sound
Gui, Add, Text, x268 y62 w46 h30 +Center valarmShutdown +0x0100, shut pc`ndown
Gui, Add, Text, x324 y69 w40 h20 +Center valarmWalk +0x0100, walk
Gui, Add, Text, x380 y62 w40 h30 +Center valarmSpell +0x0100, cast`nspell
Gui, Add, Text, x427 y62 w40 h30 +Center valarmFlash +0x0100, flash`nclient
ifnofood_TT := "Alarm executed when bot couldn't find food"
ifnoblank_TT := "Alarm executed when bot couldn't find blank rune`nwhile using hand-mode setting"
ifscreen_TT := "Decide how the bot should act`nwhen part of screen has changed"
ifnosoul_TT := "Bot will check each runemake cicle if`nyou still have soul points"
ifmoved_TT := "Function currently disabled.`nWill be released in upcoming updates."
alarmPause_TT := "It will result in pause all bot functions`nas rune making, food eating and anty-`nlogout for the specified client"
alarmLogout_TT := "Instant character logout (you can set 'double alarm effect'`nin settings in order to all characters to logout)"
alamrSound_TT := "Short sound alarm repeated loudly few times"
alarmShutdown_TT := "Force your PC to shut down"
alarmWalk_TT := "It will make you character walk few sqms in desired direction.`nAmount of steps configurable in advanced settings.`nYou can also set 'double alarm effect' in order to make both`n of your characters move simultaneously"
alarmSpell_TT := "Good function to use if you are out of blank runes or souls. Configurable in settings. "
alarmFlash_TT := "It will instantly activate the client"
Gui, Add, CheckBox, x141 y103 w20 h20 vPauseRunemaking_IfFood gPauseRunemaking_IfFood,
Gui, Add, CheckBox, x189 y103 w20 h20 vLogout_IfFood gLogout_IfFood,
Gui, Add, CheckBox, x236 y103 w20 h20 vPlaySound_IfFood gPlaySound_IfFood,
Gui, Add, CheckBox, x285 y103 w20 h20 vShutDown_IfFood gShutDown_IfFood,
Gui, Add, CheckBox, x394 y103 w20 h20 vCastSpell_IfFood,
Gui, Add, CheckBox, x440 y103 w20 h20 vFlash_IfFood,
GuiControl, Disable, CastSpell_IfFood
Gui, Add, CheckBox, x141 y136 w20 h20 vPauseRunemaking_IfBlank gPauseRunemaking_IfBlank,
Gui, Add, CheckBox, x189 y136 w20 h20 vLogout_IfBlank gLogout_IfBlank,
Gui, Add, CheckBox, x236 y136 w20 h20 vPlaySound_IfBlank gPlaySound_IfBlank,
Gui, Add, CheckBox, x285 y136 w20 h20 vShutDown_IfBlank gShutDown_IfBlank,
Gui, Add, CheckBox, x394 y136 w20 h20 vCastSpell_IfBlank gCastSpell_IfBlank,
Gui, Add, CheckBox, x440 y136 w20 h20 vFlash_IfBlank,
Gui, Add, CheckBox, x141 y170 w20 h20 vPauseRunemaking_IfPlayer gPauseRunemaking_IfPlayer,
Gui, Add, CheckBox, x189 y170 w20 h20 vLogout_IfPlayer gLogout_IfPlayer,
Gui, Add, CheckBox, x236 y170 w20 h20 vPlaySound_IfPlayer gPlaySound_IfPlayer,
Gui, Add, CheckBox, x285 y170 w20 h20 vShutDown_IfPlayer gShutDown_IfPlayer,
Gui, Add, CheckBox, x394 y170 w20 h20 vCastSpell_IfPlayer,
Gui, Add, CheckBox, x440 y170 w20 h20 vFlash_IfPlayer,
GuiControl, Disable, CastSpell_IfPlayer
Gui, Add, CheckBox, x141 y203 w20 h20 vPauseRunemaking_IfSoul gPauseRunemaking_IfSoul,
Gui, Add, CheckBox, x189 y203 w20 h20 vLogout_IfSoul gLogout_IfSoul,
Gui, Add, CheckBox, x236 y203 w20 h20 vPlaySound_IfSoul gPlaySound_IfSoul,
Gui, Add, CheckBox, x285 y203 w20 h20 vShutDown_IfSoul gShutDown_IfSoul,
Gui, Add, CheckBox, x394 y203 w20 h20 vCastSpell_IfSoul gCastSpell_IfSoul,
Gui, Add, CheckBox, x440 y203 w20 h20 vFlash_IfSoul,
Gui, Add, CheckBox, x141 y238 w20 h20 +Disabled vPauseRunemaking_IfCharMoved ;gPauseRunemaking_IfCharMoved,
Gui, Add, CheckBox, x189 y238 w20 h20 +Disabled vLogout_IfCharMoved ;gLogout_IfCharMoved,
Gui, Add, CheckBox, x236 y238 w20 h20 +Disabled vPlaySound_IfCharMoved ;gPlaySound_IfCharMoved,
Gui, Add, CheckBox, x285 y238 w20 h20 +Disabled vShutDown_IfCharMoved ;gShutDown_IfCharMoved,
Gui, Add, CheckBox, x394 y238 w20 h20 +Disabled vCastSpell_IfCharMoved ;gCastSpell_IfCharMoved,
Gui, Add, CheckBox, x440 y238 w20 h20 +Disabled vFlash_IfCharMoved,
Gui, Add, DropDownList, x320 y103 w50 h20 r5 vWalkMethod_IfFood gWalkMethod_IfFood Choose%WalkMethod_IfFood% , off|north|east|south|west ; -14<<<<<<<
Gui, Add, DropDownList, x320 y136 w50 h20 r5 vWalkMethod_IfBlank gWalkMethod_IfBlank Choose%WalkMethod_IfBlank% , off|north|east|south|west
Gui, Add, DropDownList, x320 y170 w50 h20 r5 vWalkMethod_IfPlayer gWalkMethod_IfPlayer Choose%WalkMethod_IfPlayer% , off|north|east|south|west
Gui, Add, DropDownList, x320 y203 w50 h20 r5 vWalkMethod_IfSoul Choose%WalkMethod_IfSoul% Choose%WalkMethod_IfSoul% , off|north|east|south|west
Gui, Add, DropDownList, x320 y238 w50 h20 r5 +Disabled vWalkMethod_IfCharMoved Choose1 , off|north|east|south|west
Gui, Tab, 3
Gui, Add, GroupBox, x32 y50 w199 h215 , Store your images
Gui, Add, Pic, x43 y77, Data/Images/picbp.bmp
Gui, Add, Pic, x56 y98 gTake_image_conjured_rune1 vconjured_rune1, Data/Images/conjured_rune1.bmp
Gui, Add, Pic, x167 y98 gTake_image_conjured_rune2 vconjured_rune2, Data/Images/conjured_rune2.bmp
Gui, Add, Pic, x56 y135 gTake_image_backpack1 vbackpack1, Data/Images/backpack1.bmp
Gui, Add, Pic, x167 y135 gTake_image_backpack2 vbackpack2, Data/Images/backpack2.bmp
Gui, Add, Pic, x139 y181 gTake_image_food1 vfood1, Data/Images/food1.bmp
Gui, Add, Pic, x176 y181 gTake_image_food2 vfood2, Data/Images/food2.bmp
Gui, Add, Pic, x93 y209 gTake_image_blank_rune vblank_rune, Data/Images/blank_rune.bmp
Gui, Add, Pic, x164 y206 gTake_image_free_slot vfree_slot, Data/Images/free_slot.bmp
conjured_rune1_TT := "Take picture of rune you will conjure on client 1"
conjured_rune2_TT := "Take picture of rune you will conjure on client 2"
backpack1_TT := "Take picture of new backpack on client 1`n(necessary if you are using 'open new backpack')"
backpack2_TT := "Take picture of new backpack on client 2`n(necessary if you are using 'open new backpack')"
food1_TT := "Take piture of food"
food2_TT := "Take piture of food"
blank_rune_TT := "Take piture of blank rune`n(necessary if you are using 'hand mode')"
free_slot_TT := "Take piture of free slot`n(necessary if you are using 'hand mode')"
Gui, Add, GroupBox, x240 y50 w232 h110 , Runemaker configuration
Gui, Add, Edit, x251 y68 w34 h20 +Disabled +center vhand_slot_pos_x, %hand_slot_pos_x%
Gui, Add, Edit, x289 y68 w34 h20 +Disabled +center vhand_slot_pos_y , %hand_slot_pos_y%
Gui, Add, Button, x332 y68 h20 vGetpos_hand_slot gGetpos_hand_slot, get hand slot position
Gui, Add, CheckBox, x254 y94 w130 h20 vHand_mode, move blanks to hand
Gui, Add, CheckBox, x254 y114 w130 h20 vOpenNewBackpack, open new backpacks
Gui, Add, CheckBox, x254 y134 w130 h20 vCreate_blank, create blank runes
Gui, Add, GroupBox, x240 y170 w232 h95, Alarms configuration
Gui, Add, Edit, x251 y188 w60 h20 center vSpell_to_cast_name, %Spell_to_cast_name%
Gui, Add, Text, x320 y191 w140 h20 , spell to cast in case of alarm
Gui, Add, Text, x251 y211 w60 h20 , say this spell
Gui, Add, Edit, x314 y208 w20 h20 center number limit2 vSpell_to_cast_count gCheck_spell_to_cast_count, %Check_spell_to_cast_count%
Gui, Add, Text, x340 y211 w130 h20, times each runemake cicle.
Gui, Add, Checkbox, x254 y236 h20 vDouble_alarm_screen_checker, Double alarm effect
hand_slot_pos_x_TT := "Obtained hand slot position"
hand_slot_pos_y_TT := "Obtained hand slot position"
Getpos_hand_slot_TT := "Click and move your mouse to center of left or right hand slot"
Hand_mode_TT := "Use it if you need move blank rune to hand in order to create rune.`n(hand slot position, image of blank rune and free slot MUST be configured!)"
OpenNewBackpack_TT := "Make sure you have took picture for new backpack"
Create_blank_TT := "If its possible to cast 'adori blank' on your OT"
Spell_to_cast_name_TT := "Type here the incantation of spell you want to cast,`nunder certain alarm condition"
Spell_to_cast_count_TT := "The count of times spell should be casted each runemake cycle"
Double_alarm_screen_checker_TT := "It will enable you to execute alarm simultaneously on both clients.`nWorks only for 'walk', 'logout' and 'pause' "
Gui, Tab, 4
Gui, Add, GroupBox, x32 y49 w210 h219 , Advanced settings
Gui Add, Text, x46 y69 w107 h23 +0x200, blank rune spell name:
Gui Add, Text, x46 y93 w130 h23 +0x200, use hotkey to eat food?
Gui Add, Text, x46 y117 w97 h23 +0x200, eat food once every
Gui Add, Text, x46 y141 w110 h23 +0x200, antylogout dance every
Gui Add, Text, x46 y165 w102 h23 +0x200, antylogout directions
Gui Add, Text, x46 y189 w92 h23 +0x200, show notifications
Gui Add, Text, x46 y213 w156 h23 +0x200, steps to walk in case of alarm
Gui Add, Text, x46 y237 w136 h23 +0x200, shut down your pc at:
Gui Add, Edit, x158 y69 w68 h21 Center vBlank_spellname gCheck_blank_spellname, %blank_spellname%
Gui Add, Hotkey, x162 y93 w40 h21 Center vEat_hotkey, %eat_hotkey%
Gui Add, CheckBox, x210 y93 w22 h23 Center veat_using_hotkey geat_using_hotkey,
Gui Add, Edit, x144 y117 w35 h21 Center vFood_time gCheck_food_time, %food_time%
Gui Add, Text, x185 y117 w25 h23 +0x200, sec
Gui Add, Edit, x159 y141 w35 h21 Center vAnty_log_time gCheck_anty_log_time, %anty_log_time%
Gui Add, Text, x198 y141 w25 h23 +0x200, sec
Gui Add, DropDownList, x150 y165 w36 Center vAnty_log_dir1 gCheck_dir1, n|e|s|w
Gui Add, DropDownList, x190 y165 w36 Center vAnty_log_dir2 gCheck_dir2, n|e|s|w
Gui Add, DropDownList, x137 y189 w90 Center vShow_notifications, always|only important|never
Gui Add, DropDownList, x193 y213 w34 Center vSteps_to_walk, 1|2|3|4|5|6|7|8
Gui, Add, DateTime, x152 y237 w55 vAuto_shutdown_time Choose 1, HH:mm
Gui Add, CheckBox, x214 y237 w23 vAuto_shutdown_enabled gAuto_shutdown_enabled h23,
Blank_spellname_TT := "Usually 'adori blank'..."
Eat_hotkey_TT := "If you are playing on tibia 7.8 and newer`nit might suit you to set food on hotkey"
eat_using_hotkey_TT := "If you are playing on tibia 7.8 and newer`nit might suit you to set food on hotkey"
Food_time_TT := "Decide how ofter character should eat food"
Anty_log_time_TT := "Decide how often character should do anty-logout"
Anty_log_dir1_TT := "Choose character direction of anty-logout"
Anty_log_dir2_TT := "Choose character direction of anty-logout"
Show_notifications_TT := "It is recommended to set 'only-importnant' notifications"
Steps_to_walk_TT := "Decide how many sqm character should move in case of emergency"
Auto_shutdown_time_TT := "Determine if you want bot to force shutdown your pc at specific time"
Auto_shutdown_enabled_TT := "Enable auto-shutdown your pc"
Gui, Add, GroupBox, x253 y49 w217 h219 , Credits and contacts
Gui Add, Text, x261 y71 w200 h53, Official project forum - you can report your bugs or share your opinion about the bot here:
Gui Add, Link, x290 y97 w150 h23 vTibiaPf, <a href="https://tibiapf.com/showthread.php?71-all-versions-Warlock-Bot">tibiapf.com - warlockbot</a>
Gui Add, Text, x261 y117 w140 h23 +0x200, Warlock bot's official website:
Gui Add, Link, x321 y137 w80 h23 vWrlbottk, <a href="http://wrlbot.tk">www.wrlbot.tk</a>
Gui Add, Text, x261 y160 w198 h63,If you like it you can support me with a few bucks through PayPal donation. I would be really grateful!
Gui, Add, Pic, x313 y205 vPayPal gPayPal, Data/Images/pp_donate.bmp
Gui Add, Text, x261 y240 w198 h23, Software created by Brazyliszek/Mate
TibiaPf_TT := "Open link"
Wrlbottk_TT := "Open link"
PayPal_TT := "Open link"
Gui,Tab
Gui,Add, Pic, x0 y0 w%pic_window_size_x% h%pic_window_size_y% 0x4000000, %A_WorkingDir%\Data\Images\background.png
Gui,Show, w%pic_window_size_x% h%pic_window_size_y%, %BOTName%
IniRead, randomization, Data/basic_settings.ini, conf values, randomization
IniRead, rune_spellkey1, Data/basic_settings.ini, bot variables, rune_spellkey1
IniRead, rune_spellkey2, Data/basic_settings.ini, bot variables, rune_spellkey2
IniRead, Spelltime1, Data/basic_settings.ini, bot variables, Spelltime1
IniRead, Spelltime2, Data/basic_settings.ini, bot variables, Spelltime2
IniRead, deposit_runes_1, Data/basic_settings.ini, bot variables, deposit_runes_1
IniRead, house_pos_x1, Data/basic_settings.ini, bot variables, house_pos_x1
IniRead, house_pos_y1, Data/basic_settings.ini, bot variables, house_pos_y1
IniRead, deposit_runes_2, Data/basic_settings.ini, bot variables, deposit_runes_2
IniRead, house_pos_x2, Data/basic_settings.ini, bot variables, house_pos_x2
IniRead, house_pos_y2, Data/basic_settings.ini, bot variables, house_pos_y2
IniRead, PauseRunemaking_IfCharMoved, Data/basic_settings.ini, bot variables, PauseRunemaking_IfCharMoved
IniRead, PauseRunemaking_IfFood, Data/basic_settings.ini, bot variables, PauseRunemaking_IfFood
IniRead, PauseRunemaking_IfBlank, Data/basic_settings.ini, bot variables, PauseRunemaking_IfBlank
IniRead, PauseRunemaking_IfPlayer, Data/basic_settings.ini, bot variables, PauseRunemaking_IfPlayer
IniRead, PauseRunemaking_IfSoul, Data/basic_settings.ini, bot variables, PauseRunemaking_IfSoul
IniRead, Logout_IfCharMoved, Data/basic_settings.ini, bot variables, Logout_IfCharMoved
IniRead, Logout_IfFood, Data/basic_settings.ini, bot variables, Logout_IfFood
IniRead, Logout_IfBlank, Data/basic_settings.ini, bot variables, Logout_IfBlank
IniRead, Logout_IfPlayer, Data/basic_settings.ini, bot variables, Logout_IfPlayer
IniRead, Logout_IfSoul, Data/basic_settings.ini, bot variables, Logout_IfSoul
IniRead, PlaySound_IfCharMoved, Data/basic_settings.ini, bot variables, PlaySound_IfCharMoved
IniRead, PlaySound_IfFood, Data/basic_settings.ini, bot variables, PlaySound_IfFood
IniRead, PlaySound_IfBlank, Data/basic_settings.ini, bot variables, PlaySound_IfBlank
IniRead, PlaySound_IfPlayer, Data/basic_settings.ini, bot variables, PlaySound_IfPlayer
IniRead, PlaySound_IfSoul, Data/basic_settings.ini, bot variables, PlaySound_IfSoul
IniRead, ShutDown_IfCharMoved, Data/basic_settings.ini, bot variables, ShutDown_IfCharMoved
IniRead, ShutDown_IfFood, Data/basic_settings.ini, bot variables, ShutDown_IfFood
IniRead, ShutDown_IfBlank, Data/basic_settings.ini, bot variables, ShutDown_IfBlank
IniRead, ShutDown_IfPlayer, Data/basic_settings.ini, bot variables, ShutDown_IfPlayer
IniRead, ShutDown_IfSoul, Data/basic_settings.ini, bot variables, ShutDown_IfSoul
IniRead, WalkMethod_IfFood, Data/basic_settings.ini, bot variables, WalkMethod_IfFood
IniRead, WalkMethod_IfBlank, Data/basic_settings.ini, bot variables, WalkMethod_IfBlank
IniRead, WalkMethod_IfPlayer, Data/basic_settings.ini, bot variables, WalkMethod_IfPlayer
IniRead, WalkMethod_IfSoul, Data/basic_settings.ini, bot variables, WalkMethod_IfSoul
IniRead, WalkMethod_IfCharMoved, Data/basic_settings.ini, bot variables, WalkMethod_IfCharMoved
IniRead, CastSpell_IfBlank, Data/basic_settings.ini, bot variables, CastSpell_IfBlank
IniRead, CastSpell_IfSoul, Data/basic_settings.ini, bot variables, CastSpell_IfSoul
IniRead, Flash_IfCharMoved, Data/basic_settings.ini, bot variables, Flash_IfCharMoved
IniRead, Flash_IfFood, Data/basic_settings.ini, bot variables, Flash_IfFood
IniRead, Flash_IfBlank, Data/basic_settings.ini, bot variables, Flash_IfBlank
IniRead, Flash_IfPlayer, Data/basic_settings.ini, bot variables, Flash_IfPlayer
IniRead, Flash_IfSoul, Data/basic_settings.ini, bot variables, Flash_IfSoul
IniRead, OpenNewBackpack, Data/basic_settings.ini, bot variables, OpenNewBackpack
IniRead, Create_blank, Data/basic_settings.ini, bot variables, Create_blank
IniRead, Hand_mode, Data/basic_settings.ini, bot variables, Hand_mode
IniRead, hand_slot_pos_x, Data/basic_settings.ini, bot variables, hand_slot_pos_x
IniRead, hand_slot_pos_y, Data/basic_settings.ini, bot variables, hand_slot_pos_y
IniRead, Spell_to_cast_name, Data/basic_settings.ini, bot variables, Spell_to_cast_name
IniRead, Spell_to_cast_count, Data/basic_settings.ini, bot variables, Spell_to_cast_count
IniRead, Double_alarm_screen_checker, Data/basic_settings.ini, bot variables, Double_alarm_screen_checker
IniRead, Blank_spellname, Data/basic_settings.ini, bot variables, Blank_spellname
IniRead, Eat_hotkey, Data/basic_settings.ini, bot variables, Eat_hotkey
IniRead, eat_using_hotkey, Data/basic_settings.ini, bot variables, eat_using_hotkey
IniRead, Food_time, Data/basic_settings.ini, bot variables, Food_time
IniRead, Anty_log_time, Data/basic_settings.ini, bot variables, Anty_log_time
IniRead, Anty_log_dir1, Data/basic_settings.ini, bot variables, Anty_log_dir1
IniRead, Anty_log_dir2, Data/basic_settings.ini, bot variables, Anty_log_dir2
IniRead, Show_notifications, Data/basic_settings.ini, bot variables, Show_notifications
IniRead, Steps_to_walk, Data/basic_settings.ini, bot variables, Steps_to_walk
IniRead, Auto_shutdown_time, Data/basic_settings.ini, bot variables, Auto_shutdown_time
GuiControl,, rune_spellkey1, %rune_spellkey1%
GuiControl,, rune_spellkey2, %rune_spellkey2%
GuiControl,, Spelltime1, %Spelltime1%
GuiControl,, Spelltime2, %Spelltime2%
GuiControl,, deposit_runes_1, %deposit_runes_1%
GuiControl,, house_pos_x1, %house_pos_x1%
GuiControl,, house_pos_y1, %house_pos_y1%
GuiControl,, deposit_runes_2, %deposit_runes_2%
GuiControl,, house_pos_x2, %house_pos_x2%
GuiControl,, house_pos_y2, %house_pos_y2%
GuiControl,, PauseRunemaking_IfCharMoved, %PauseRunemaking_IfCharMoved%
GuiControl,, PauseRunemaking_IfFood, %PauseRunemaking_IfFood%
GuiControl,, PauseRunemaking_IfBlank, %PauseRunemaking_IfBlank%
GuiControl,, PauseRunemaking_IfPlayer, %PauseRunemaking_IfPlayer%
GuiControl,, PauseRunemaking_IfSoul, %PauseRunemaking_IfSoul%
GuiControl,, Logout_IfCharMoved, %Logout_IfCharMoved%
GuiControl,, Logout_IfFood, %Logout_IfFood%
GuiControl,, Logout_IfBlank, %Logout_IfBlank%
GuiControl,, Logout_IfPlayer, %Logout_IfPlayer%
GuiControl,, Logout_IfSoul, %Logout_IfSoul%
GuiControl,, PlaySound_IfCharMoved, %PlaySound_IfCharMoved%
GuiControl,, PlaySound_IfFood, %PlaySound_IfFood%
GuiControl,, PlaySound_IfBlank, %PlaySound_IfBlank%
GuiControl,, PlaySound_IfPlayer, %PlaySound_IfPlayer%
GuiControl,, PlaySound_IfSoul, %PlaySound_IfSoul%
GuiControl,, ShutDown_IfCharMoved, %ShutDown_IfCharMoved%
GuiControl,, ShutDown_IfFood, %ShutDown_IfFood%
GuiControl,, ShutDown_IfBlank, %ShutDown_IfBlank%
GuiControl,, ShutDown_IfPlayer, %ShutDown_IfPlayer%
GuiControl,, ShutDown_IfSoul, %ShutDown_IfSoul%
GuiControl,Choose, WalkMethod_IfFood, %WalkMethod_IfFood%
GuiControl,Choose, WalkMethod_IfBlank, %WalkMethod_IfBlank%
GuiControl,Choose, WalkMethod_IfPlayer, %WalkMethod_IfPlayer%
GuiControl,Choose, WalkMethod_IfSoul, %WalkMethod_IfSoul%
GuiControl,Choose, WalkMethod_IfCharMoved, %WalkMethod_IfCharMoved%
GuiControl,, CastSpell_IfBlank, %CastSpell_IfBlank%
GuiControl,, CastSpell_IfSoul, %CastSpell_IfSoul%
GuiControl,, Flash_IfCharMoved, %Flash_IfCharMoved%
GuiControl,, Flash_IfFood, %Flash_IfFood%
GuiControl,, Flash_IfBlank, %Flash_IfBlank%
GuiControl,, Flash_IfPlayer, %Flash_IfPlayer%
GuiControl,, Flash_IfSoul, %Flash_IfSoul%
GuiControl,, OpenNewBackpack, %OpenNewBackpack%
GuiControl,, Create_blank, %Create_blank%
GuiControl,, Hand_mode, %Hand_mode%
GuiControl,, hand_slot_pos_x, %hand_slot_pos_x%
GuiControl,, hand_slot_pos_y, %hand_slot_pos_y%
GuiControl,, Spell_to_cast_name, %Spell_to_cast_name%
GuiControl,, Spell_to_cast_count, %Spell_to_cast_count%
GuiControl,, Double_alarm_screen_checker, %Double_alarm_screen_checker%
GuiControl,, Blank_spellname, %Blank_spellname%
GuiControl,, Eat_hotkey, %Eat_hotkey%
GuiControl,, eat_using_hotkey, %eat_using_hotkey%
GuiControl,, Food_time, %Food_time%
GuiControl,, Anty_log_time, %Anty_log_time%
GuiControl,Choose, Anty_log_dir1, %Anty_log_dir1%
GuiControl,Choose, Anty_log_dir2, %Anty_log_dir2%
GuiControl,Choose, Show_notifications, %Show_notifications%
GuiControl,Choose, Steps_to_walk, %Steps_to_walk%
GuiControl,, Auto_shutdown_time, %Auto_shutdown_time%
if (mc_count = 1){ ; disabling few functions in case if only one client was turned on
GuiControl, Disable, rune_spellkey2
GuiControl, Disable, Spelltime2
GuiControl, Disable, Image_screen_checker2,
GuiControl, Disable, Enabled_screen_checker2
GuiControl, Disable, Fishing_setup2,
GuiControl, Disable, getpos_house_2,
GuiControl, Disable, deposit_runes_2
GuiControl, Disable, Enabled_runemaking2
GuiControl, Disable, Enabled_anty_logout2
GuiControl, Disable, Enabled_food_eater2
GuiControl, Disable, Fishing_enabled2
GuiControl, Disable, Alarms_enabled2
GuiControl, Disable, Double_alarm_screen_checker
GuiControl, Disable, Toggle_hide2
GuiControl,, Double_alarm_screen_checker, 0
GuiControl,, NotNeeded_pid2, 0000
}
;sleep, 100
gosub, CP_GUI
gosub, MENU_CREATE
Gui, Fishing_gui1: New
Gui, Fishing_gui1: +hwndFishing_gui1 +AlwaysOnTop +Caption +ToolWindow
Gui, Fishing_gui1: Add, Button, x6 y10 w68 h35 gFishing_getSpots1 vFishing_button_text1 , get fishing spots
Gui, Fishing_gui1: Add, Button, x77 y10 w68 h35 gFishing_reset1, reset
Gui, Fishing_gui1: Add, CheckBox, x12 y50 w140 h20 vFishing_noFood_enabled1, fish only if no food
Gui, Fishing_gui1: Add, CheckBox, x12 y70 w120 h30 vFishing_noSlot_enabled1, fish only if found empty slot in bp
Gui, Fishing_gui1: Add, Pic, x8 y104, Data/Images/fishing_rod_bp.bmp
Gui, Fishing_gui1: Add, Pic, x95 y125 gTake_image_fishing_rod1 vfishing_rod1, Data/Images/fishing_rod.bmp
Gui, Fishing_gui1: Add, Pic, x104 y172 gTake_image_fish1 vfish1, Data/Images/fish.bmp
Gui, Fishing_gui1: Add, Button, x28 y217 w90 h20 gFishing_done1 default , done
Gui, Fishing_selectTopLeft1: New
Gui, Fishing_selectTopLeft1: +hwndFishing_selectTopLeft1
Gui, Fishing_selectTopLeft1: -SysMenu +ToolWindow -Caption +Border +AlwaysOnTop +OwnerFishing_gui1
Gui, Fishing_selectTopLeft1: Font,norm bold s10
Gui, Fishing_selectTopLeft1: Add,Text,,Select top left corner of game window
Gui, Fishing_selectTopLeft1: Font
Gui, Fishing_selectTopLeft1: Add,Text,, Move your mouse to TOP LEFT corner of game window`nand click left mouse button. Or click escape to cancel.
Gui, Fishing_selectBottomRight1: New
Gui, Fishing_selectBottomRight1: +hwndFishing_selectBottomRight1
Gui, Fishing_selectBottomRight1: -SysMenu +ToolWindow -Caption +Border +AlwaysOnTop +OwnerFishing_gui1
Gui, Fishing_selectBottomRight1: Font,norm bold s10
Gui, Fishing_selectBottomRight1: Add,Text,,Select bottom right corner of game window
Gui, Fishing_selectBottomRight1: Font
Gui, Fishing_selectBottomRight1: Add,Text,, Move your mouse to BOTTOM RIGHT corner of game window`nand click left mouse button. Or click escape to cancel.
Gui, Fishing_gui2: New
Gui, Fishing_gui2: +hwndFishing_gui2 +AlwaysOnTop +Caption +ToolWindow
Gui, Fishing_gui2: Add, Button, x6 y10 w68 h35 gFishing_getSpots2 vFishing_button_text2 , get fishing spots
Gui, Fishing_gui2: Add, Button, x77 y10 w68 h35 gFishing_reset2, reset