-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWOTV.FFBE.Multi.au3
92 lines (72 loc) · 2.58 KB
/
WOTV.FFBE.Multi.au3
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
#cs -----------------------------------------------------------------------------------
Script Version: 0.2.1
AutoIt Version: 3.3.14.5
Author: holoc
Platform: Windows 10 running Memu(Android 7.1, 64bit)
Memu System Settings
Engine
Performance: Preset settings - Top (CPU:2, RAM:2048MB)
Render mode: OpenGL
Root mode: ON
GPU memory optimization: OFF
Display
Resolution: Tablet [1280*720 (240dpi)]
Frame rate: 30 FPS
Anti-Flickering: ON
Window layout (found under Multiple Instance Manager window -> Layout button)
Window size - Customize - Width 960, Height 540
Script Function:
Basic AutoIt script for FFBE WOTV Multi-Events.
Script will be triggered once in a Multi-Event session.
When in waiting in the Multi-Event room...
Click 'Ready' button, then wait for host to Embark (unless you are the host, then you click the 'Embark' button)
#ce -----------------------------------------------------------------------------------
#include <WOTV.FFBE.Main.au3>
$timeout = 200
; Select the Android emulator window
WinActivate($hostWindowName)
Sleep($timeout)
; Set the Escape hotkey to terminate the script.
HotKeySet("{ESC}", "_Terminate")
; Create an endless loop, 1 will always be 1 therefore True.
; To end this loop, use the {ESC} key as stated above.
While 1
; Role: PARTICIPANT (person joining in the hosted room)
; Screen: Multi-Quest Embarkment Room
; Trigger Condition: Red color of the unpressed 'Disband / Leave Room' button
; Action: Click 'Ready' button
If PixelCheckColorBool(580, 536, 0x99262F) Then
SendInputTap(1080, 670)
EndIf
Sleep($timeout)
; Screen: Friend Requests
; Trigger Condition: Dark brown background bar of the Player's Name / Rank Level
; Action: ; Click on 'Cancel' button, then click on 'Return' button
If PixelCheckColorBool(400, 155, 0x342C29) Then
Sleep(250)
; 'Cancel' button
SendInputTap(500, 630)
Sleep(1000)
;TODO create a loop ; 'Return' button
SendInputTap(1060, 660)
EndIf
; Sleep($timeout)
; Screens: Experience/Gil, Acquired Items
; Trigger Condition: Medium Brown of Title Bar
; Action: ; Click on 'Next' / 'Return' button
If PixelCheckColorBool(780, 80, 0x362E26) Then
SendInputTap(1070, 680)
EndIf
Sleep($timeout)
; Screen: 'Meeting new people award' Popup
; Trigger Condition: Blue color of 'Blah' button
; Action: Click 'Blah' button
;TODO
; Screen: 'Date Change - A new day has begun' Popup
; Trigger Condition: Blue color of 'Return to Title Screen' button
; Action: Click 'Return to Title Screen' button
; If PixelCheckColorBool(450, 400, 0x140446) Then
; SendInputTap(620, 520)
; Sleep(1500)
; EndIf
WEnd