-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1-Underworld-strategy.au3
More file actions
57 lines (49 loc) · 1.31 KB
/
Copy path1-Underworld-strategy.au3
File metadata and controls
57 lines (49 loc) · 1.31 KB
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
Func Underworld()
SkipCinematic()
Local $team = GetTeamColour()
PrintMapStart("Underworld", $team)
Local $mapStartFame = GetHeroTitleSafe()
Sleep(50000)
Upkeep()
If $team == $iamblue Then
Out("Moving blue to starting spot")
If Not StrongMoveTo(-365.7,-3251.2) Then
Out("ERROR: Failed to go to blue starting spot")
EndIf
ElseIf $team == $iamred Then
Out("Moving red to starting spot")
If Not StrongMoveTo(740,-3234.1) Then
Out("ERROR: Failed to go to red starting spot")
EndIf
EndIf
While GetMapLoading() == $instancetype_explorable And GetMapID() == $uw
If CheckIsTeamWiped() Then ExitLoop
TargetNearestEnemy()
;Local $agent = GetTarget()
;Local $distance = GetDistance($agent, -2)
Local $agent = GetBestTarget()
Local $distance = GetDistance($agent, -2)
;Out($distance)
If $mapStartFame == GetHeroTitleSafe() Then
If $distance > 1250 And $distance < 8000 Then
If GetIsLiving() Then
Attack($agent)
Sleep(1500)
EndIf
ElseIf $distance <= 1250 Then
KillEnemy()
ElseIf GetNearestEnemyToAgent() = 0 Then
If GetIsLiving() Then
Sleep(1000)
Move(67, -3341)
EndIf
EndIf
EndIf
If $mapStartFame < GetHeroTitleSafe() Then
Out("Won in UW")
ExitLoop
EndIf
WEnd
UpdateMapStats($mapStartFame, $uw, $team)
WaitForNextMap($uw)
EndFunc ;==>uw