-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.template.py
More file actions
149 lines (129 loc) · 4.46 KB
/
settings.template.py
File metadata and controls
149 lines (129 loc) · 4.46 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
from emross.alliance import AllyTech as AT, Donator
from emross import mobs
from emross import pvp
from emross.item import inventory
from emross.military.camp import Soldier
from emross.military.trainer import Cavalry, Trainer
from emross.research.enhance import AutoEnhance
from emross.research.studious import Study
from emross.research.tech import Tech
from emross.scenario.scene import Scenario
from emross.scenario.walker import ScenarioWalker
from emross.structures.buildings import Building
from emross.structures.construction import Construct
from emross.trade.auto import AutoTrade
from emross.utility.player import Player
user_agent = 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Mobile/8H7'
game_server = 'YOURSERVER.emrosswar.com'
api_key = ''
pushid = ''
"""Id = 12553, name = crow tree
--Id = 21111, name = localhost
Id = 21261, name = 127001
Id = 21469, name = Meadery
Id = 21824, name = Sparta
Id = 22008, name = Reboot"""
ignore_cities = [22008]
"""
Fill the castle food only to the specified minimum level.
If this is unspecified, the storage will be filled to max capacity.
"""
#minimum_food = 100000
TOO_OFTEN_WARNING = '''You visit too often!'''
exclude_heroes = []
mobs.units = [
mobs.Unit('Horror', mobs.DevilArmy.SIX_STAR, attack=15, defense=8, critical=180),
mobs.Unit('Nitemare', mobs.DevilArmy.SIX_STAR, attack=40, defense=12, critical=317.5),
mobs.Unit('Inferno', mobs.DevilArmy.EIGHT_STAR, attack=120, defense=40, critical=120),
]
"""
What types of Devil Army should we scout on the world map?
"""
scout_devil_army_types = [mobs.DevilArmy.FIVE_STAR, mobs.DevilArmy.SIX_STAR]
"""
It will start attacking from the first in the list, moving through the list
if there are not enough troops in the current city to build an army
"""
soldier_threshold = [
(DevilArmy.SIX_STAR, {
Soldier.OVERLORD: 600,
Soldier.BERSERKER: 800
}),
(DevilArmy.FIVE_STAR, {
Soldier.OVERLORD: 400,
Soldier.BERSERKER: 600
})
]
plugin_api = {
'auth': 'username:password',
'url': 'http://emross.cryformercy.com/client/plugins/api/',
'pushover': {
'token': 'YOUR_APP_TOKEN',
'user': 'YOUR_USER_TOKEN'
}
}
trade_options = (AutoTrade, (AutoTrade.SELLER, [inventory.ALLIANCE_TOKEN]),
{'price':5000000, 'vary':50000, 'limit':3, 'city_index':-1}
)
#trade_options = (AutoTrade, (AutoTrade.BUYER, 900), {'team':True})
build_path = (
(
(Donator, ([AT.VETERAN, AT.VALOR, AT.TENACITY, AT.INCENTIVE, AT.TOUGHNESS,
AT.INSPIRATION, AT.BATTLECRY, AT.MILICADEMY, AT.BLOODFLAG, AT.LOGISTICS],),
{'pvp_donate':False, 'force_hall_donation':False}
),
(pvp.Durability, (100,), {'stop_below': 4}),
(Trainer, ([Cavalry(Soldier.SPY, 50)],) ),
(Trainer, (
[
Cavalry(Soldier.LONUFAL, 3000),
Cavalry(Soldier.MASTER, 3000),
Cavalry(Soldier.KAHKLEH, 5000)
],),
{'city_names': ['my_main_city', 'my_other_city']}
)
),
(
(AutoEnhance, ([(95, 10000000), (75, 6000000), (40, 2000000), (5, 20000)],), {
'minimum_enhance': 2
}),
trade_options,
),
(
(ScenarioWalker, (Scenario.GLOOMY_CANYON, [
{
'hero': 4,
'troops': [(Soldier.LONUFAL, 1400), (Soldier.KAHKLEH, 1644)],
'path': [1, 5, 4, 11, 13]
},
{
'hero': 222,
'troops': [(Soldier.LONUFAL, 1400), (Soldier.KAHKLEH, 1182)],
'path': [2, 3, 5, 8, 9]
},
]), {'times':[(1,45), (14,50), (22,30)]}),
),
(
(Construct, (Building.HOUSE, 1)),
(Construct, (Building.UNIVERSITY, 1))
),
(
(Construct, (Building.FARM, 5)),
(Construct, (Building.SAWMILL, 5)),
(Construct, (Building.FACILITY_CENTER, 6)),
(Study, (Tech.FORGING, 3))
),
(
(Construct, (Building.FARM, 20)),
(Construct, (Building.HOUSE, 21)),
(Study, (Tech.FORGING, 20))
),
(
(Study, (Tech.ATTACK_FORMATION, 20), {'university': 20}),
(Study, (Tech.DEFENSE_FORMATION, 20, 22))
)
)
multi_bot = []
multi_bot.append(Player(server='s1.emrosswar.com',key='key1...'))
multi_bot.append(Player(server='s2.emrosswar.com',key='key2...',pushid='abc'))
multi_bot.append(Player(server='s3.emrosswar.com',key='key3...',user_agent='my custom agent'))