forked from tanjeffreyz/auto-maple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
65 lines (46 loc) · 1.68 KB
/
config.py
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
"""A collection of variables shared across multiple modules."""
#################################
# CONSTANTS #
#################################
# Represents the dimensions of the monitor to screenshot
MONITOR = {'top': 0, 'left': 0, 'width': 1366, 'height': 768}
#################################
# Global Variables #
#################################
# The player's position relative to the minimap
player_pos = (0, 0)
# Describes whether the bot is currently running or not
enabled = False
# Describes whether the bot has been successfully initialized
ready = False
# Describes whether the video capture has calibrated the minimap
calibrated = False
# Describes whether the keyboard listener is currently running
listening = True
# The ratio of the minimap's width divided by its height (used for conversions)
mm_ratio = 1
# Describes whether a rune has appeared in the game
rune_active = False
# The position of the rune relative to the minimap
rune_pos = (0, 0)
# The location of the Point object that is closest to the rune
rune_index = 0
# Describes whether an Elite Boss has been detected
elite_active = False
# Stores all the Points and labels in the current user-defined routine
sequence = []
# Represents the index that the bot is currently at
seq_index = 0
# Represents the current shortest path that the bot is taking
path = []
# Stores the name of the current routine file
routine = None
# Stores the Layout object associated with the current routine
layout = None
#################################
# Routine Settings #
#################################
move_tolerance = 0.075
adjust_tolerance = 0.01
use_haku = True
buff_cooldown = 220