# MercanRey6.js — estimateProfile() (satır 280) [← MercanRey6.js](index.md) · [← Master](../../wiki.md) ```javascript function estimateProfile(c, profile, db) { var entity = c.getServer().getEntity(String(profile.uuid)); var online = entity != null; var connections = findKnownConnections(profile, db, c.getServer()); var confidence = confidenceFor(profile, connections, online); var action = classifyCurrentAction(entity, profile); var place = "son konum " + profile.lastX + ", " + profile.lastY + ", " + profile.lastZ + " / dim " + profile.lastDimension; if (online) { var pos = entity.getPosition(); place = "canli konum " + Math.round(pos.x) + ", " + Math.round(pos.y) + ", " + Math.round(pos.z) + " / dim " + entity.getDimension(); } return { name: String(profile.name), uuid: String(profile.uuid), className: String(profile.className || "bilinmeyen"), group: String(profile.group || "bilinmeyen"), online: online, action: action, place: place, confidence: confidence, connections: connections, possible: possibleMoves(profile), enemies: listToText(profile.enemies, "belirsiz"), access: listToText(profile.access, "belirsiz"), itemWarnings: listToText(profile.itemWarnings, "yok") }; } ```