taming.io

ngu

Bu script direkt olarak kurulamaz. Başka scriptler için bir kütüphanedir ve meta yönergeleri içerir // @require https://update.sleazyfork.org/scripts/593576/1916878/tamingio.js

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu betiği yüklemek için bir betik yöneticisi eklentisi yüklemeniz gerekecektir.

(Zaten bir betik yöneticim var, hadi yükleyelim!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Taming.io Auto Farm
// @match        https://taming.io/*
// @grant        none
// ==UserScript==

(function() {
    'use strict';

    let autoFarm = true;
    let autoHeal = true;

    function pressKey(key) {
        document.dispatchEvent(new KeyboardEvent('keydown', { key: key }));
        setTimeout(() => {
            document.dispatchEvent(new KeyboardEvent('keyup', { key: key }));
        }, 100);
    }

    // Auto-farm resources every 500ms
    setInterval(() => {
        if (autoFarm) pressKey("e"); // Default hit/gather key
    }, 500);

    // Auto-heal when HP drops
    setInterval(() => {
        let hpElement = document.querySelector("#health-bar");
        if (hpElement && autoHeal) {
            let hp = parseInt(hpElement.style.width.replace("%", ""));
            if (hp < 30) pressKey("q"); // Consumes gapples/food
        }
    }, 1000);

    // Toggle controls
    document.addEventListener("keydown", (e) => {
        if (e.key === "f") autoFarm = !autoFarm;
        if (e.key === "h") autoHeal = !autoHeal;
    });
})();