Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TRIBALS.IO SPEEDHACK
- // @namespace http://tampermonkey.net/
- // @version 2.3
- // @description Aumenta a velocidade do jogo e melhora a cadência de tiro da Shotgun no Tribals.io (com menu móvel) e captura dados de sessão para enviar ao Discord
- // @author ExplodIng_Andrey
- // @match https://tribals.io/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=tribals.io
- // @grant none
- // @run-at document-start
- // ==/UserScript==
- (function() {
- 'use strict';
- // Tribals.io Speedhack and Shotgun Boost Menu
- let menuVisible = true;
- let isDragging = false;
- let offsetX, offsetY;
- function createMenu() {
- window.UI = document.createElement("div");
- UI.innerHTML = `
- <div id="menu-header">[ TRIBALS HACK MENU ]</div>
- <div class="menu-item">
- <label>Game Speed</label>
- <input type="range" min="0.1" max="300" value="1" class="slider" id="speed" step="0.1">
- <div id="value">100%</div>
- </div>
- <div class="menu-item">
- <label>Shotgun Fire Rate</label>
- <input type="range" min="0.01" max="2" value="1" class="slider" id="fireRate" step="0.01">
- <div id="fireRateValue">100%</div>
- </div>
- `;
- UI.style = `
- left: 20px;
- top: 50px;
- position: fixed;
- border-radius: 15px;
- padding: 20px;
- background: rgba(0, 0, 0, 0.85);
- color: lime;
- font-family: "Courier New", monospace;
- z-index: 9999;
- width: 300px;
- height: 350px;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: space-evenly;
- box-shadow: 0px 0px 20px rgba(0, 255, 0, 0.8);
- border: 2px solid lime;
- animation: fadeIn 0.5s ease-out;
- cursor: default;
- user-select: none;
- `;
- document.body.appendChild(UI);
- const header = UI.querySelector("#menu-header");
- header.style = `
- font-size: 16px;
- font-weight: bold;
- width: 100%;
- text-align: center;
- padding-bottom: 10px;
- border-bottom: 2px solid lime;
- text-shadow: 0 0 5px lime, 0 0 10px lime;
- cursor: move;
- `;
- let items = UI.querySelectorAll(".menu-item");
- items.forEach(item => {
- item.style = `
- width: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 5px 0;
- `;
- });
- let sliders = UI.querySelectorAll(".slider");
- sliders.forEach(slider => {
- slider.style.width = "90%";
- slider.style.accentColor = "lime";
- });
- const speedInput = UI.querySelector("#speed");
- const speedValue = UI.querySelector("#value");
- speedInput.addEventListener("input", () => {
- let speed = Number(speedInput.value);
- speedValue.innerText = speed + "X";
- pc.app.timeScale = speed;
- });
- const fireRateInput = UI.querySelector("#fireRate");
- ... (117 lines left)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement