List of ObjectTypes and StatTypes (NodeJs Clientless)
Hello again all, I am trying to find portals in the area of my bots and get the IP of the realm portal, is there a list of ObjectTypes/StatTypes or what are the ones for IP under
I want realmIP to be the IP of the realm portal that is within maxPortalOffsetSqrt tiles of the player (client)
Later upon reciving a GUI command it will call:
Code:
for(let l = 0; l < updatePacket.newObjects.length; l++) {
if (squareDistanceTo(updatePacket.newObjects[i].WorldPosData) <= maxPortalOffsetSqrt) {
if (updatePacket.newObjects[i].objectType == ){ //Insert Portal type (number)
for(let k = 0; k < updatePacket.newObjects[i].StatData.length; k++){
if (updatePacket.newObjects[i].StatData[k].statType == ){// Insert IP type (number)
realmIP = updatePacket.newObjects[i].StatData[k].stringStatValue;
}
}
}
}
}
Later upon reciving a GUI command it will call:
Code:
client.connect(realmIP)
