-
Notifications
You must be signed in to change notification settings - Fork 0
/
Freelancer.ai
51 lines (41 loc) · 1.62 KB
/
Freelancer.ai
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
function BuildingStrategy takes nothing returns nothing
call SetReplacements(1, 2, 3)
call SetBuildUnit(1, FOUNTAIN_OF_LIFE)
call SetBuildUnit(1, FREELANCER_TIER_1)
call SetBuildUnit(3, FREELANCER_CITIZEN_MALE)
call SetBuildUnit(3, FREELANCER_CITIZEN_FEMALE)
call SetBuildUnit(3, FREELANCER_CHILD)
call SetBuildUnit(3, FREELANCER_PET)
call SetBuildUnit(4, FREELANCER_HOUSING)
call SetBuildUnit(2, SHREDDER)
//call SetBuildUnit(1, FREELANCER_LABORATORY) // TODO Leads to a crash!
//call SetBuildUnit(1, FREELANCER_SHOP)
//call SetBuildUnit(1, FREELANCER_MERCENARY_CAMP)
call SetBuildUnit(1, FREELANCER_TIER_2)
call SetBuildUnit(1, FREELANCER_TIER_3)
call SetBuildUnit(1, FREELANCER_ADVANCED_TOWER)
call SetBuildUpgr(1, UPG_FREELANCER_MAGIC_SENTRY)
call BuildingStrategyStandardTier3Freelancer()
loop
call LoopActionFreelancerWoWReforged()
call Sleep(M1)
endloop
endfunction
function AttackWaves takes nothing returns nothing
call Sleep(M2)
loop
call InitAssaultGroup()
//call CampaignAttacker(0, 1, CREEP_DARK_WIZARD)
//call CampaignAttacker(0, 1, CREEP_UNBROKEN_DARK_WEAVER)
//call CampaignAttacker(0, 1, CREEP_DOOM_GUARD)
//call CampaignAttacker(0, 2, CREEP_HARPY)
//call CampaignAttacker(0, 2, CREEP_GREEN_DRAGON)
call AddStandardUnitsToAttackWave()
call Sleep(M2)
//call LaunchAttack() // Leads to a crash
endloop
endfunction
function main takes nothing returns nothing
call MainWoWReforged(AI_LABORATORY, function BuildingStrategy)
call AttackWaves()
endfunction