// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: purple; icon-glyph: user-astronaut;
let password = "90%";
async function promptPassword() {
let alert = new Alert();
alert.title = "HEADTRICK FIXXA";
alert.message = "HEADTRICK FIXXA:";
alert.addTextField("FIXXA");
alert.addAction("OK");
return alert.present().then(result => alert.textFieldValue(0));
}
promptPassword().then(input => {
if (input === password) {
Safari.open("freefire://");
$notification.post("Regedit Activo en el Free Fire");
aimbot();
} else {
let alert = new Alert();
alert.message = "ERROR";
alert.addAction("OK");
alert.present();
}
});
async function aimbot() {
const gameProcess = $process.find("Free Fire");
const gameModule1 = $module.find("libil2cpp.so)");
const gameModule2 = $module.find("libunity.so");
const gameModule3 = $module.find("libgame.so");
const playerAddress = gameModule1.baseAddress + 0x10F8C0;
const headOffset = 0x14;
const enemyAddress = gameModule2.baseAddress + 0x123456;
const precision = 1;
const speed = 100;
const fov = 150;
const recoilReduction = 1;
const fijación = 0;
const dispersión = 0;
const precisiónCabeza = 1;
const dispersiónCabeza = 0;
const seguimientoCabeza = 0.1;
while (true) {
const gameRunning = $process.find("Free Fire") !== null;
if (!gameRunning) break;
const playerPosition = $ptr.readFloat(playerAddress);
const enemyPosition = $ptr.readFloat(enemyAddress);
const distance = Math.sqrt(Math.pow(enemyPosition.x - playerPosition.x, 2) +
Math.pow(enemyPosition.y - playerPosition.y, 2));
if (distance < fov) {
const headPosition = enemyPosition + headOffset;