☰

Sword Masters.io Speed Hack 10x

Tăng tốc độ di chuyển của nhân vật lên 10x trong Sword Masters.io.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Sword Masters.io Speed Hack 10x
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Tăng tốc độ di chuyển của nhân vật lên 10x trong Sword Masters.io.
// @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';

    // Đặt hệ số nhân tốc độ
    const SPEED_MULTIPLIER = 10;

    // Danh sách các biến thường dùng để quản lý tốc độ trong game logic
    const speedProperties = ['speed', 'moveSpeed', 'maxSpeed', 'movementSpeed', 'baseSpeed', 'walkSpeed'];

    // Kỹ thuật Hooking để ghi đè giá trị tốc độ trong bộ nhớ
    speedProperties.forEach(prop => {
        let originalValue;
        Object.defineProperty(Object.prototype, prop, {
            set(val) {
                originalValue = val;
            },
            get() {
                // Nếu giá trị là số và lớn hơn 0, nhân lên theo hệ số
                if (typeof originalValue === 'number' && originalValue > 0) {
                    return originalValue * SPEED_MULTIPLIER;
                }
                return originalValue;
            }
        });
    });

    console.log(`[Sword Masters.io] Speed script injected thành công. Chạy với tốc độ: ${SPEED_MULTIPLIER}x`);
})();