Killaura 1x-100x | SwordMaster.io

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);

})();