if connectMode connectedNum connectIn for if runeInfo connectMode conn

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
if (connectMode > 0) {
connectedNum = 0;
connectIn = 0;
for (i = 0; i < 5; i += 1) {
if (runeInfo[connectMode, "connectedWith", i] != 0) {
connectedNum += 1;
} else {
connectIn = i;
}
}
if (runeInfo[connectObject, "maxConnections"] > connectedNum) {
runeInfo[connectMode, "connectedWith", connectIn] = runeIn[id];
}
}