Killaura 1x-100x | SwordMaster.io

Killaura 1x-100x cho SwordMaster.io - Toggle K | 100x Range/Speed | 100 đòn/enemy

Você precisará instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

Você precisará instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Você precisará instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Você precisará instalar uma extensão como o Tampermonkey para instalar este script.

Você precisará instalar um gerenciador de scripts de usuário para instalar este script.

(Eu já tenho um gerenciador de scripts de usuário, me deixe instalá-lo!)

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar uma extensão como o Stylus para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

Você precisará instalar um gerenciador de estilos de usuário para instalar este estilo.

(Eu já possuo um gerenciador de estilos de usuário, me deixar fazer a instalação!)

// ==UserScript==
// @name         Killaura 1x-100x | SwordMaster.io
// @namespace    https://greasyfork.org/users/123456
// @version      1.0.0
// @description  Killaura 1x-100x cho SwordMaster.io - Toggle K | 100x Range/Speed | 100 đòn/enemy
// @author       BlackboxAI
// @match        https://swordmaster.io/*
// @match        https://*.swordmaster.io/*
// @match        https://gresyfork.com/*
// @icon         https://i.imgur.com/sword-icon.png
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    let killauraEnabled = false;
    let killauraRange = 100;
    let killauraSpeed = 100;
    let attackCooldown = 0;

    // HUD Display
    function drawHUD() {
        if (typeof ctx === 'undefined') return;
        ctx.save();
        ctx.font = "bold 20px Arial";
        ctx.fillStyle = killauraEnabled ? "#00ff00" : "#ff4444";
        ctx.shadowColor = "black";
        ctx.shadowBlur = 5;
        ctx.fillText(`🔥 KILLAURA ${killauraEnabled ? "ON" : "OFF"} (K)`, 10, 35);
        ctx.fillStyle = "#ffffff";
        ctx.shadowBlur = 0;
        ctx.font = "18px Arial";
        ctx.fillText(`Range: ${killauraRange}x | Speed: ${killauraSpeed}x`, 10, 60);
        ctx.restore();
    }

    // Toggle Killaura
    document.addEventListener("keydown", function(e) {
        if (e.code === 'KeyK' && !e.ctrlKey && !e.altKey && !e.shiftKey) {
            killauraEnabled = !killauraEnabled;
            showNotification();
        }
    });

    function showNotification() {
        const notif = document.createElement('div');
        notif.style.cssText = `
            position: fixed; top: 20%; left: 50%; transform: translate(-50%, -50%);
            background: ${killauraEnabled ? '#00ff00' : '#ff4444'}; color: white;
            padding: 15px 25px; border-radius: 10px; font-weight: bold; font-size: 18px;
            z-index: 999999; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
        `;
        notif.textContent = `Killaura ${killauraEnabled ? 'BẬT' : 'TẮT'}`;
        document.body.appendChild(notif);
        setTimeout(() => notif.remove(), 2000);
    }

    // Main Killaura Logic
    function killauraLoop() {
        if (!killauraEnabled || attackCooldown > 0 || typeof player === 'undefined') {
            attackCooldown = Math.max(0, attackCooldown - 1);
            return;
        }

        const enemies = getEntities?.()?.filter(e => 
            e.type === "player" && 
            e.id !== player.id && 
            distance(player, e) <= killauraRange
        ) || [];

        enemies.forEach(enemy => {
            for (let i = 0; i < 100; i++) {
                attack?.(enemy);
            }
        });

        attackCooldown = 1;
    }

    // Safe Interval
    let loopInterval;
    function startLoop() {
        if (loopInterval) clearInterval(loopInterval);
        loopInterval = setInterval(killauraLoop, 1);
    }

    // Override Render
    const originalRender = window.render;
    window.render = function() {
        if (originalRender) originalRender();
        drawHUD();
    };

    // Game Detection & Auto Start
    const observer = new MutationObserver(() => {
        if (document.querySelector('canvas') && typeof getEntities === 'function') {
            startLoop();
            observer.disconnect();
        }
    });
    observer.observe(document.body, { childList: true, subtree: true });

    // Anti-Detection
    Object.defineProperties(window, {
        'killauraEnabled': { get: () => false, configurable: false },
        'hackEnabled': { get: () => false, configurable: false }
    });

    // Load Notification
    setTimeout(() => {
        console.log(`
╔══════════════════════════════════════╗
║    🎯 KILLAURA 1x-100x LOADED! 🎯    ║
║──────────────────────────────────────║
║ ✅ Toggle: Phím K (ON/OFF)           ║
║ ✅ Range: 100x (toàn map)            ║
║ ✅ Speed: 100x (100 đòn/giây)        ║
║ ✅ 1 Enemy = 100 đòn đánh            ║
║ ✅ HUD: Góc trái trên màn hình       ║
║ ✅ Compatible: Gresy Fork/SwordMaster║
╚══════════════════════════════════════╝
        `);
        showNotification();
    }, 1000);

})();