Killaura 1x-100x | SwordMaster.io

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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

})();