-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.py
35 lines (29 loc) · 1.01 KB
/
script.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
from Terminal.Modules.OpenLog import DebugPrint
import Terminal.hackbar
#import GuiEditor
#import dump_functions
from Terminal.Modules.Actions import ActionLoader, ActionBot
#actionLoader = ActionLoader.ActionLoader()
#result = actionLoader.LoadActionsFromFile('GoToFirstCity.action')
"""
raw_actions = {'actions':[
{'name': 'Go to first city',
'function': 'MoveToPosition',
'function_args': [(59000, 68900), 'metin2_first_city'],
'requirements': {'IS_ON_POSITION': [59000, 68900],
'IS_IN_MAP': ['metin2_first_city']}
},
{'name': 'Go to circle',
'function': 'MoveToPosition',
'function_args': [(63969, 64751), 'metin2_first_city'],
'requirements': {'IS_ON_POSITION': [63969, 64751],
'IS_IN_MAP': ['metin2_first_city']}
}
]
}
actionLoader = ActionLoader.ActionLoader()
cleared_action = actionLoader.ValidateRawActions(raw_actions)
DebugPrint(str(cleared_action))
for action in cleared_action:
ActionBot.instance.AddNewAction(action)
"""