Sword Masters.io Ultimate Speed & Attack Hack

Hack tăng tốc độ di chuyển và tốc độ đánh cho Sword Masters.io với menu điều chỉnh trực tiếp.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name         Sword Masters.io Ultimate Speed & Attack Hack
// @namespace    http://tampermonkey.net/
// @version      6.0
// @description  Hack tăng tốc độ di chuyển và tốc độ đánh cho Sword Masters.io với menu điều chỉnh trực tiếp.
// @author       Developer
// @match        *://swordmasters.io/*
// @match        *://*.swordmasters.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=swordmasters.io
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // Mặc định ban đầu để 25000x theo yêu cầu của bạn
    let SPEED_MULTIPLIER = 25000;

    // Lưu lại các hàm đếm thời gian gốc của trình duyệt
    const originalNow = window.performance.now.bind(window.performance);
    const originalDateNow = Date.now;
    const OriginalDate = window.Date;

    // Mốc thời gian bắt đầu hack
    const startPerformanceTime = originalNow();
    const startDatePercent = originalDateNow();

    // 1. Hack bộ đếm performance
    window.performance.now = function() {
        return startPerformanceTime + (originalNow() - startPerformanceTime) * SPEED_MULTIPLIER;
    };

    // 2. Hack bộ đếm Date.now() 
    Date.now = function() {
        return startDatePercent + (originalDateNow() - startDatePercent) * SPEED_MULTIPLIER;
    };

    // 3. Hack đối tượng new Date()
    function HookedDate(...args) {
        if (args.length === 0) {
            return new OriginalDate(startDatePercent + (originalDateNow() - startDatePercent) * SPEED_MULTIPLIER);
        }
        return new OriginalDate(...args);
    }
    HookedDate.prototype = OriginalDate.prototype;
    HookedDate.now = Date.now;
    HookedDate.UTC = OriginalDate.UTC;
    HookedDate.parse = OriginalDate.parse;
    window.Date = HookedDate;

    // --- TẠO MENU ĐIỀU CHỈNH TRÊN MÀN HÌNH GAME ---
    function createHackMenu() {
        const menu = document.createElement('div');
        menu.style.position = 'fixed';
        menu.style.top = '10px';
        menu.style.right = '10px';
        menu.style.zIndex = '99999';
        menu.style.backgroundColor = 'rgba(0, 0, 0, 0.8)';
        menu.style.color = '#fff';
        menu.style.padding = '12px';
        menu.style.borderRadius = '8px';
        menu.style.fontFamily = 'Arial, sans-serif';
        menu.style.border = '2px solid #ff0055';
        menu.style.boxShadow = '0 0 10px #ff0055';

        // Tiêu đề
        const title = document.createElement('div');
        title.innerText = '⚔️ SWORD MASTERS MENU ⚔️';
        title.style.fontWeight = 'bold';
        title.style.textAlign = 'center';
        title.style.marginBottom = '8px';
        title.style.color = '#ff0055';
        menu.appendChild(title);

        // Hiển thị tốc độ hiện tại
        const speedDisplay = document.createElement('div');
        speedDisplay.id = 'speed-display';
        speedDisplay.innerText = `Tốc độ hiện tại: ${SPEED_MULTIPLIER}x`;
        speedDisplay.style.fontSize = '13px';
        speedDisplay.style.marginBottom = '8px';
        speedDisplay.style.textAlign = 'center';
        menu.appendChild(speedDisplay);

        // Hàm cập nhật tốc độ nhanh
        function setSpeed(value) {
            SPEED_MULTIPLIER = value;
            speedDisplay.innerText = `Tốc độ hiện tại: ${SPEED_MULTIPLIER}x`;
            console.log(`[Sword Masters] Đã chuyển tốc độ sang: ${value}x`);
        }

        // Nút chỉnh nhanh các mức tốc độ
        const btnContainer = document.createElement('div');
        btnContainer.style.display = 'flex';
        btnContainer.style.gap = '5px';

        const speeds = [1500, 5000, 25000];
        speeds.forEach(s => {
            const btn = document.createElement('button');
            btn.innerText = `${s}x`;
            btn.style.flex = '1';
            btn.style.background = '#222';
            btn.style.color = '#fff';
            btn.style.border = '1px solid #ff0055';
            btn.style.padding = '5px';
            btn.style.cursor = 'pointer';
            btn.style.borderRadius = '4px';
            btn.onclick = () => setSpeed(s);
            btnContainer.appendChild(btn);
        });

        menu.appendChild(btnContainer);
        document.body.appendChild(menu);
    }

    // Đợi game tải xong giao diện rồi hiện Menu điều khiển
    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', createHackMenu);
    } else {
        createHackMenu();
    }

    console.log("%c[Sword Masters Hack] Đã kích hoạt siêu tốc độ 25000x thành công!", "color: #ff0055; font-size: 16px; font-weight: bold;");
})();