Commit bde9e4d9 authored by Neoony's avatar Neoony
Browse files

-Small changes due to new Lobby hosting

parent b4fbca96
......@@ -571,6 +571,21 @@ function RefreshSQL() {
// {
// message.channel.send('My Message')
// });
if (namex[i] == 'Empires Lobby' && addrx[i] == '95.179.141.77:27015') {
LobbyUp = 1;
messageQuickPlay = '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**';
playersinlobby = playersx[i];
if (playersx[i] == 0) {
messageServerOn = '```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```' + '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
messageComePlayNotifLobby = '```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```' + '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
QuickPlayLink = ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
}
if (playersx[i] > 0) {
messageServerOn = '**```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```**' + ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
messageComePlayNotifLobby = '**```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```**' + ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
QuickPlayLink = ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
}
}
if (namex[i] == 'Empires Lobby' && addrx[i] == '185.165.242.40:27015') {
LobbyUp = 1;
messageQuickPlay = '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**';
......@@ -586,7 +601,22 @@ function RefreshSQL() {
QuickPlayLink = ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
}
}
if (namex[i] == 'Empires Backup Lobby' && addrx[i] == '80.112.155.100:27015' && LobbyUp == 0) {
if (namex[i] == 'Empires Backup Lobby' && addrx[i] == '95.179.141.77:27015' && LobbyUp == 0) {
LobbyUp = 1;
messageQuickPlay = '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**';
playersinlobby = playersx[i];
if (playersx[i] == 0) {
messageServerOn = '```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```' + '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
messageComePlayNotifLobby = '```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```' + '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
QuickPlayLink = ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
}
if (playersx[i] > 0) {
messageServerOn = '**```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```**' + ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
messageComePlayNotifLobby = '**```yaml\n' + namex[i] + ' [' + playersx[i] + '/' + maxplayersx[i] + ']' + '\n' + mapx[i] + ' [XP ' + xpmessage[i] + ']' + '\n' + addrx[i] + '```**' + ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
QuickPlayLink = ' ***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**\n';
}
}
if (namex[i] == 'Empires Backup Lobby' && addrx[i] == '185.165.242.40:27015' && LobbyUp == 0) {
LobbyUp = 1;
messageQuickPlay = '***`' + 'Quick play ---> `*** **steam://connect/' + addrx[i] + '**';
playersinlobby = playersx[i];
......@@ -606,8 +636,8 @@ function RefreshSQL() {
let HighestCurPopulation = 0;
let HighestPopServer;
for (i = 0; i < numberofservers; i++) {
if (namex[i] != 'Empires Lobby' && addrx[i] != '185.165.242.40:27015') {
if (namex[i] != 'Empires Backup Lobby' && addrx[i] != '80.112.155.100:27015') {
if ((namex[i] != 'Empires Lobby' && addrx[i] != '95.179.141.77:27015') || (namex[i] != 'Empires Lobby' && addrx[i] != '185.165.242.40:27015')) {
if ((namex[i] != 'Empires Backup Lobby' && addrx[i] != '95.179.141.77:27015') || (namex[i] != 'Empires Backup Lobby' && addrx[i] != '185.165.242.40:27015')) {
if (HighestCurPopulation <= playersx[i]) {
HighestCurPopulation = playersx[i];
HighestPopServer = i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment