forked from adamqqqplay/dota2ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BotNameUtility.lua
201 lines (196 loc) · 3.16 KB
/
BotNameUtility.lua
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
local U = {}
local dota2team = {
[1] = {
['name'] = "Navi TI1";
['alias'] = "Na'Vi";
['players'] = {
'Artstyle.Darer',
'Puppey',
'Dendi',
'LightToHeaveN',
'XBOCT'
};
['sponsorship'] = '';
},
[2] = {
['name'] = "Ehome TI1";
['alias'] = "EH.GIGABYTE";
['players'] = {
'820',
'357',
'FCB',
'PLT',
'X!!'
};
['sponsorship'] = 'CN';
},
[3] = {
['name'] = "IG TI2";
['alias'] = "iG";
['players'] = {
'Zhou',
'Ferrari_430',
'YYF',
'ChuaN',
'Faith'
};
['sponsorship'] = '';
},
[4] = {
['name'] = "Navi TI2";
['alias'] = "Na'Vi";
['players'] = {
'XBOCT',
'Dendi',
'LightToHeaveN',
'Puppey',
'ARS-ART'
};
['sponsorship'] = '';
},
[5] = {
['name'] = "Alliance TI3";
['alias'] = "";
['players'] = {
'Lod[A]',
'[A]s4',
'[A]dmiralBulldog',
'[A]EGM',
'[A]kke'
};
['sponsorship'] = '';
},
[6] = {
['name'] = "Navi TI3";
['alias'] = "Na'Vi";
['players'] = {
'XBOCT',
'Dendi',
'Funn1k',
'Puppey',
'KuroKy'
};
['sponsorship'] = '';
},
[7] = {
['name'] = "Newbee TI4";
['alias'] = "Newbee";
['players'] = {
'Hao',
'Mu',
'xiao8',
'Banana',
'SanSheng'
};
['sponsorship'] = '';
},
[8] = {
['name'] = "VG TI4";
['alias'] = "VG";
['players'] = {
'Sylar',
'Super',
'rOtk',
'fy',
'Fenrir'
};
['sponsorship'] = '天喔';
},
[9] = {
['name'] = "Evil Geniuses TI5";
['alias'] = "EG";
['players'] = {
'Fear',
'SumaiL.Coffin',
'UNiVeRsE',
'Aui_2000',
'ppd'
};
['sponsorship'] = '';
},
[10] = {
['name'] = "CDEC Gaming TI5";
['alias'] = "CDEC";
['players'] = {
'Q',
'Xz',
'garder',
'Shiki',
'Agressif'
};
['sponsorship'] = 'DouYuTV';
},
[11] = {
['name'] = "Wings Gaming TI6";
['alias'] = "Wings";
['players'] = {
'shadow',
'跳刀跳刀丶.bLink',
'Faith_bian.Vicky',
'y`.innocence',
'iceice'
};
['sponsorship'] = '';
},
[12] = {
['name'] = "Digital Chaos TI6";
['alias'] = "DC";
['players'] = {
'Resolut1on',
'w33',
'Moo.hotaW',
'MiSeRy',
'Saksa'
};
['sponsorship'] = '';
},
[13] = {
['name'] = "Team Liquid TI7";
['alias'] = "Liquid";
['players'] = {
'MATUMBAMAN',
'Miracle-',
'MinD_ContRoL',
'GH',
'KuroKy'
};
['sponsorship'] = '';
},
[14] = {
['name'] = "Newbee TI7";
['alias'] = "Newbee";
['players'] = {
'Moogy',
'Sccc',
'kpii',
'Kaka',
'Faith'
};
['sponsorship'] = '';
},
}
local sponsorship = {"GG.bet", "gg.bet", "VPGAME", "LOOT.bet", "loot.bet", "", "Esports.bet", "G2A", "Dota2.net"};
function U.GetDota2Team()
local bot_names = {};
local rand = RandomInt(1, #dota2team);
local srand = RandomInt(1, #sponsorship);
if GetTeam() == TEAM_RADIANT then
while rand%2 ~= 0 do
rand = RandomInt(1, #dota2team);
end
else
while rand%2 ~= 1 do
rand = RandomInt(1, #dota2team);
end
end
local team = dota2team[rand];
for _,player in pairs(team.players) do
if team.sponsorship == "" then
table.insert(bot_names, team.alias.."."..player);
else
table.insert(bot_names, team.alias.."."..player.."."..team.sponsorship);
end
end
return bot_names;
end
return U